From 34bd4bc6a1b9cd01aa4dc95de2e103262e7c9e76 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Tue, 26 Nov 2019 20:17:14 +0100 Subject: [PATCH] Add default project structure --- onpoint/__init__.py | 1 + structure-draft | 20 +++++++++++--------- test/images/.gitkeep | 0 test/layouts/root.html | 12 ++++++++++++ test/layouts/titlepage.html | 2 ++ test/meta.yml | 6 ++++++ test/slides.yml | 0 test/slides/chapter1.de.md | 10 ++++++++++ test/slides/chapter1.en.md | 10 ++++++++++ test/styles/style.scss | 3 +++ 10 files changed, 55 insertions(+), 9 deletions(-) create mode 100644 onpoint/__init__.py create mode 100644 test/images/.gitkeep create mode 100644 test/layouts/root.html create mode 100644 test/layouts/titlepage.html create mode 100644 test/meta.yml create mode 100644 test/slides.yml create mode 100644 test/slides/chapter1.de.md create mode 100644 test/slides/chapter1.en.md create mode 100644 test/styles/style.scss diff --git a/onpoint/__init__.py b/onpoint/__init__.py new file mode 100644 index 0000000..edc180c --- /dev/null +++ b/onpoint/__init__.py @@ -0,0 +1 @@ +# Our python script goes here. diff --git a/structure-draft b/structure-draft index 92161ec..c01a1b3 100644 --- a/structure-draft +++ b/structure-draft @@ -1,14 +1,16 @@ -- lib - - script.py +- onpoint + - __init__.py - test - - config.yml + - meta.yml + - images - slides - chapter1.en.md - chapter1.de.md - styles - - style.sass + - style.scss - layouts - - + - titlepage.html + - root.html - lib - dist - project @@ -20,16 +22,16 @@ ----------------------------------------- - chapter1: - source: chapter1 - # implizit: chapter1..md, + source: chapter1 + # implizit: chapter1..md, # optional - default_layout: # optional ----------------------------------------- Config ----------------------------------------- -footer: +default_layout: # optional +footer: de: Fußzeile en: footer diff --git a/test/images/.gitkeep b/test/images/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/test/layouts/root.html b/test/layouts/root.html new file mode 100644 index 0000000..b13efde --- /dev/null +++ b/test/layouts/root.html @@ -0,0 +1,12 @@ + + + + + + + @title + + + @slides + + \ No newline at end of file diff --git a/test/layouts/titlepage.html b/test/layouts/titlepage.html new file mode 100644 index 0000000..6e522ff --- /dev/null +++ b/test/layouts/titlepage.html @@ -0,0 +1,2 @@ +

@title(inline)

+
@content
\ No newline at end of file diff --git a/test/meta.yml b/test/meta.yml new file mode 100644 index 0000000..ac5a0c1 --- /dev/null +++ b/test/meta.yml @@ -0,0 +1,6 @@ +language: # available language options and their value for the html lang attribute + de: de + en: en +title: + de: Präsentation zur Demonstration + en: Presentation for Demonstration Purposes \ No newline at end of file diff --git a/test/slides.yml b/test/slides.yml new file mode 100644 index 0000000..e69de29 diff --git a/test/slides/chapter1.de.md b/test/slides/chapter1.de.md new file mode 100644 index 0000000..ae256dc --- /dev/null +++ b/test/slides/chapter1.de.md @@ -0,0 +1,10 @@ +@slide(layout=titlepage) + +@title +Wirklich auf den Punkt! + +@content +* Stichpunkt 1 +* Stichpunkt 2 +* Stichpunkt 3 +* Stichpunkt 4 \ No newline at end of file diff --git a/test/slides/chapter1.en.md b/test/slides/chapter1.en.md new file mode 100644 index 0000000..664f991 --- /dev/null +++ b/test/slides/chapter1.en.md @@ -0,0 +1,10 @@ +@slide(layout=titlepage) + +@title +OnPoint for real! + +@content +* bullet point 1 +* bullet point 2 +* bullet point 3 +* bullet point 4 \ No newline at end of file diff --git a/test/styles/style.scss b/test/styles/style.scss new file mode 100644 index 0000000..f2fe491 --- /dev/null +++ b/test/styles/style.scss @@ -0,0 +1,3 @@ +* { + box-sizing: border-box +} \ No newline at end of file