]> git.street.me.uk Git - andy/viking.git/commitdiff
Add configuration to generate help in HTML format
authorRob Norris <rw_norris@hotmail.com>
Wed, 7 Nov 2012 18:32:46 +0000 (18:32 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sun, 11 Nov 2012 21:16:58 +0000 (21:16 +0000)
This uses the docbook xml source.
ATM writes it all to a single html page.

.gitignore
help/C/README.txt [new file with mode: 0644]
help/C/config.xsl [new file with mode: 0644]
help/C/viking.css [new file with mode: 0644]

index ea1271a85f3463abdb781804d7e9700599782d19..31723849bd6c74540d6bb3a3f46552aeac9ad0c5 100644 (file)
@@ -61,6 +61,7 @@ doc/reference/*stamp
 
 # help/C/
 help/C/viking.pdf
+help/C/*html
 
 # /src/
 /src/.deps
diff --git a/help/C/README.txt b/help/C/README.txt
new file mode 100644 (file)
index 0000000..6031400
--- /dev/null
@@ -0,0 +1,3 @@
+# How to generate HTML from the xml:
+xmlto xhtml -m config.xsl viking.xml
+# ATM config is setup for a single page - index.html
diff --git a/help/C/config.xsl b/help/C/config.xsl
new file mode 100644 (file)
index 0000000..d40a18a
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version='1.0'?>\r
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"\r
+                version="1.0">\r
+  <xsl:param name="use.id.as.filename" select="'1'"/>\r
+  <xsl:param name="admon.graphics" select="'1'"/>\r
+  <xsl:param name="admon.graphics.path"></xsl:param>\r
+  <xsl:param name="chunk.section.depth" select="0"/>\r
+  <xsl:param name="html.stylesheet" select="'viking.css'"/>\r
+  <xsl:param name="generate.section.toc.level" select="1"/>\r
+  <xsl:param name="section.autolabel" select="1"/>\r
+  <xsl:param name="section.autolabel.maxdepth" select="1"/>\r
+</xsl:stylesheet>\r
diff --git a/help/C/viking.css b/help/C/viking.css
new file mode 100644 (file)
index 0000000..823b85c
--- /dev/null
@@ -0,0 +1,36 @@
+body {\r
+         font-family: luxi sans,sans-serif;\r
+}\r
+\r
+.programlisting, .screen {\r
+        font-family: monospace;\r
+        font-size: 1em;\r
+        display: block;\r
+        padding: 10px;\r
+        border: 1px solid #bbb;\r
+        background-color: #eee;\r
+        color: #000;   \r
+        overflow: auto;\r
+        border-radius: 2.5px;\r
+        -moz-border-radius: 2.5px;\r
+        margin: 0.5em 2em;\r
\r
+}\r
+\r
+.note {\r
+       border: 1px solid #00f;\r
+}\r
+\r
+.warning {\r
+       border: 1px solid #f00;\r
+}\r
+\r
+.caution {\r
+       border: 1px solid #0f0;\r
+}\r
+\r
+/* Author listing seems stupidly large so downsize it a bit */\r
+/* <div class="authorgroup"><div class="author"><h3 */\r
+div.authorgroup div.author h3 {\r
+       font-size: 75%;\r
+}\r