From f39407fd3946c5f3aa7883a1f3cc774ad5f7dd8a Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 14 Jul 2014 20:41:42 +0200 Subject: Initial commit of basic generator structure * including example data and current "/home/adrian" layout --- datasource.xsl | 38 +++++++++++++++++++++++++++++ datasource/entry.xsl | 33 +++++++++++++++++++++++++ generate.xsl | 42 ++++++++++++++++++++++++++++++++ meta.xml | 12 ++++++++++ result.xsl | 48 +++++++++++++++++++++++++++++++++++++ source/pages/about.md | 9 +++++++ source/pages/contact.md | 5 ++++ template/master.xsl | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ template/page.xsl | 23 ++++++++++++++++++ utility/formatter.xsl | 20 ++++++++++++++++ utility/generator.xsl | 22 +++++++++++++++++ utility/reader.xsl | 16 +++++++++++++ utility/transformer.xsl | 20 ++++++++++++++++ utility/writer.xsl | 20 ++++++++++++++++ 14 files changed, 372 insertions(+) create mode 100644 datasource.xsl create mode 100644 datasource/entry.xsl create mode 100644 generate.xsl create mode 100644 meta.xml create mode 100644 result.xsl create mode 100644 source/pages/about.md create mode 100644 source/pages/contact.md create mode 100644 template/master.xsl create mode 100644 template/page.xsl create mode 100644 utility/formatter.xsl create mode 100644 utility/generator.xsl create mode 100644 utility/reader.xsl create mode 100644 utility/transformer.xsl create mode 100644 utility/writer.xsl diff --git a/datasource.xsl b/datasource.xsl new file mode 100644 index 0000000..698ca67 --- /dev/null +++ b/datasource.xsl @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/datasource/entry.xsl b/datasource/entry.xsl new file mode 100644 index 0000000..4ea6162 --- /dev/null +++ b/datasource/entry.xsl @@ -0,0 +1,33 @@ + + + + + + + + + + + + + /usr/bin/markdown + + + + + + + + + + + + + + diff --git a/generate.xsl b/generate.xsl new file mode 100644 index 0000000..cba8bea --- /dev/null +++ b/generate.xsl @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + [source.xsl] + + + + [datasource.xsl] + + + + [result.xsl] + + + + diff --git a/meta.xml b/meta.xml new file mode 100644 index 0000000..3d6fcbc --- /dev/null +++ b/meta.xml @@ -0,0 +1,12 @@ + + + /home/adrian + /home/common/projects/dev/static_site_generator + + /home/common/projects/dev/static_site_generator/result + /home/common/projects/dev/static_site_generator/result + + + /home/common/projects/dev/static_site_generator/source + + diff --git a/result.xsl b/result.xsl new file mode 100644 index 0000000..1597664 --- /dev/null +++ b/result.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [template/page.xsl] + + /pages/ + + + + + diff --git a/source/pages/about.md b/source/pages/about.md new file mode 100644 index 0000000..827b612 --- /dev/null +++ b/source/pages/about.md @@ -0,0 +1,9 @@ +# About + +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. + +* Lorem ipsum dolor sit amet +* consetetur sadipscing elitr +* sed diam nonumy eirmod tempor + +Invidunt ut *labore* et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. diff --git a/source/pages/contact.md b/source/pages/contact.md new file mode 100644 index 0000000..a9d8be1 --- /dev/null +++ b/source/pages/contact.md @@ -0,0 +1,5 @@ +# Contact + +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. + +Invidunt ut *labore* et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. diff --git a/template/master.xsl b/template/master.xsl new file mode 100644 index 0000000..e2b77b4 --- /dev/null +++ b/template/master.xsl @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + <xsl:call-template name="title-text"/> + + + + + +
+
+ +
+ +
+ + +
+
+ + +
+ +
+ diff --git a/template/page.xsl b/template/page.xsl new file mode 100644 index 0000000..a271e4a --- /dev/null +++ b/template/page.xsl @@ -0,0 +1,23 @@ + + + + + + + + @ /home/adrian + + + +
+ +
+
+ +
diff --git a/utility/formatter.xsl b/utility/formatter.xsl new file mode 100644 index 0000000..49d8630 --- /dev/null +++ b/utility/formatter.xsl @@ -0,0 +1,20 @@ + + + + + + + + + + + diff --git a/utility/generator.xsl b/utility/generator.xsl new file mode 100644 index 0000000..ca6f0c3 --- /dev/null +++ b/utility/generator.xsl @@ -0,0 +1,22 @@ + + + + + + + + + + + + diff --git a/utility/reader.xsl b/utility/reader.xsl new file mode 100644 index 0000000..31d6fcc --- /dev/null +++ b/utility/reader.xsl @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/utility/transformer.xsl b/utility/transformer.xsl new file mode 100644 index 0000000..6c85a4e --- /dev/null +++ b/utility/transformer.xsl @@ -0,0 +1,20 @@ + + + + + + + + + + + diff --git a/utility/writer.xsl b/utility/writer.xsl new file mode 100644 index 0000000..42e9502 --- /dev/null +++ b/utility/writer.xsl @@ -0,0 +1,20 @@ + + + + + + + + + + + -- cgit v1.2.3