From 490963c1550efffe046179ced9b39573185e3e1d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 11 Feb 2017 22:22:27 +0100 Subject: Initial implementation of a tree-like website generator based on InputXSLT The foundation was forked from `blog.kummerlaender.eu`. Currently generates arbitrarily nested markdown documents in addition to overview pages for branches in the tree. This includes resolution of branch node contents. --- utility/datasource.xsl | 24 +++++ utility/date-time.xsl | 241 +++++++++++++++++++++++++++++++++++++++++++++++++ utility/formatter.xsl | 134 +++++++++++++++++++++++++++ utility/master.xsl | 76 ++++++++++++++++ utility/xhtml.xsl | 28 ++++++ 5 files changed, 503 insertions(+) create mode 100644 utility/datasource.xsl create mode 100644 utility/date-time.xsl create mode 100644 utility/formatter.xsl create mode 100644 utility/master.xsl create mode 100644 utility/xhtml.xsl (limited to 'utility') diff --git a/utility/datasource.xsl b/utility/datasource.xsl new file mode 100644 index 0000000..411086a --- /dev/null +++ b/utility/datasource.xsl @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + diff --git a/utility/date-time.xsl b/utility/date-time.xsl new file mode 100644 index 0000000..1815e06 --- /dev/null +++ b/utility/date-time.xsl @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + Error: format parameter is not correctly set. You have: + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + January + February + March + April + May + June + July + August + September + October + November + December + + + + + + + + + + + + + + + + + + + + + + + + + st + nd + rd + th + + + + + + + + + + + + + + + + + + + + + + + + + + + + 12 + + + + + am + pm + + + + + + + + + + + Monday + Tuesday + Wednesday + Thursday + Friday + Saturday + Sunday + + + + + + + + + + + + + \ No newline at end of file diff --git a/utility/formatter.xsl b/utility/formatter.xsl new file mode 100644 index 0000000..f590d89 --- /dev/null +++ b/utility/formatter.xsl @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + katex + + + + + + + + + + + + + + + + + highlight --out-format=xhtml --inline-css --style=molokai --fragment --enclose-pre --wrap-simple --syntax= + + + + + + +
+		
+	
+
+ + + + + + + + +

+ +

+
+ + +

+ +

+
+ + + + + + + + + + + txt + + + + + + + +

+ +

+
+ + + + + + +

+ + + + --display-mode + + +

+
+ + + + + + + +
+
+ + + + + + + pandoc -f markdown -t html --katex --no-highlight + + + + + + + +
diff --git a/utility/master.xsl b/utility/master.xsl new file mode 100644 index 0000000..80bfccd --- /dev/null +++ b/utility/master.xsl @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + <xsl:call-template name="title-text"/> @ <xsl:value-of select="$root/meta/title"/> + + + + + +
+ +
+ + + + +
+ + + +
diff --git a/utility/xhtml.xsl b/utility/xhtml.xsl new file mode 100644 index 0000000..00f1ef2 --- /dev/null +++ b/utility/xhtml.xsl @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3