summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-09-22 22:06:51 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-09-22 22:06:51 -0500
commit6c515197f0792bace16a4b08679ba82f454d53f0 (patch)
tree5beb938012eadc567d2852e37eb69472c38da685 /devel
parent5ed47ef7ae6ed64d361e1c8945eacc59923467fc (diff)
downloadhorizon-6c515197f0792bace16a4b08679ba82f454d53f0.tar.gz
horizon-6c515197f0792bace16a4b08679ba82f454d53f0.tar.bz2
horizon-6c515197f0792bace16a4b08679ba82f454d53f0.tar.xz
horizon-6c515197f0792bace16a4b08679ba82f454d53f0.zip
Put build system in Git
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile17
-rw-r--r--devel/master.xsl86
-rw-r--r--devel/pretty.css100
-rw-r--r--devel/requirements/Makefile12
-rw-r--r--devel/script/Makefile12
-rw-r--r--devel/vision/Makefile12
-rw-r--r--devel/xsl/LICENSE1
-rw-r--r--devel/xsl/permalinks.xsl26
-rw-r--r--devel/xsl/section.title.xsl55
9 files changed, 321 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
new file mode 100644
index 0000000..789b350
--- /dev/null
+++ b/devel/Makefile
@@ -0,0 +1,17 @@
+.POSIX:
+
+all: requirements/html/index.html script/html/index.html vision/html/index.html
+
+requirements/html/index.html: requirements/*.xml master.xsl pretty.css
+ @make -C requirements
+
+script/html/index.html: script/*.xml master.xsl pretty.css
+ @make -C script
+
+vision/html/index.html: vision/*.xml master.xsl pretty.css
+ @make -C vision
+
+upload-all:
+ @make -C requirements upload
+ @make -C script upload
+ @make -C vision upload
diff --git a/devel/master.xsl b/devel/master.xsl
new file mode 100644
index 0000000..56aa37b
--- /dev/null
+++ b/devel/master.xsl
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+ <xsl:param name="use.id.as.filename" select="1"/>
+ <xsl:param name="admon.graphics" select="1"/>
+ <xsl:param name="admon.graphics.path"/>
+ <xsl:param name="callout.graphics" select="0"/>
+ <xsl:param name="chunk.section.depth" select="0"/>
+ <xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
+ <xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/html4/loose.dtd'"/>
+ <xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
+ <xsl:param name="chunker.output.indent" select="'yes'"/>
+ <xsl:param name="html.stylesheet" select="'pretty.css'"/>
+ <xsl:param name="page.height" select="'9in'"/>
+ <xsl:param name="page.width" select="'6.75in'"/>
+ <xsl:param name="page.margin.inner" select="'1.5cm'"/>
+ <xsl:param name="page.margin.bottom" select="'9mm'"/>
+ <xsl:param name="page.margin.outer" select="'1cm'"/>
+ <xsl:param name="page.margin.top" select="'18mm'"/>
+ <xsl:template match="section[@role = 'NotInToc']" mode="toc"/>
+ <xsl:variable name="adelie.book.title">
+ <xsl:call-template name="get.doc.title"/>
+ </xsl:variable>
+ <xsl:include href="xsl/permalinks.xsl"/>
+ <xsl:include href="xsl/section.title.xsl"/>
+ <xsl:template name="head.content">
+ <xsl:param name="node" select="."/>
+ <xsl:param name="title">
+ <xsl:value-of select="$adelie.book.title"/>
+ <xsl:text> - </xsl:text>
+ <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
+ </xsl:param>
+
+ <xsl:call-template name="user.head.title">
+ <xsl:with-param name="title" select="$title"/>
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+
+ <xsl:if test="$html.base != ''">
+ <xsl:call-template name="head.content.base">
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <!-- Insert links to CSS files or insert literal style elements -->
+ <xsl:call-template name="generate.css"/>
+
+ <xsl:if test="$html.stylesheet != ''">
+ <xsl:call-template name="output.html.stylesheets">
+ <xsl:with-param name="stylesheets" select="normalize-space($html.stylesheet)"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <xsl:if test="$html.script != ''">
+ <xsl:call-template name="output.html.scripts">
+ <xsl:with-param name="scripts" select="normalize-space($html.script)"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <xsl:if test="$link.mailto.url != ''">
+ <xsl:call-template name="head.content.link.made">
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <xsl:call-template name="head.content.generator">
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+
+ <xsl:if test="$generate.meta.abstract != 0">
+ <xsl:call-template name="head.content.abstract">
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <xsl:if test="($draft.mode = 'yes' or
+ ($draft.mode = 'maybe' and
+ ancestor-or-self::*[@status][1]/@status = 'draft'))
+ and $draft.watermark.image != ''">
+ <xsl:call-template name="head.content.style">
+ <xsl:with-param name="node" select="$node"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:template>
+</xsl:stylesheet>
diff --git a/devel/pretty.css b/devel/pretty.css
new file mode 100644
index 0000000..a39b2c6
--- /dev/null
+++ b/devel/pretty.css
@@ -0,0 +1,100 @@
+@import url("https://static.adelielinux.org/font/font-amal.css");
+
+html {
+ background: #eee;
+}
+
+body {
+ background: white;
+ box-shadow: 2px 2px 10px 2px rgba(0,0,0,.2);
+ font-family: 'Frank Ruhl Libre', Times, serif;
+ padding: 1em;
+}
+
+@media screen and (min-width: 1280px) {
+ body { margin: 0 18%; }
+}
+
+h1,h2,h3,h4,h5,h6,
+div.navheader,div.navfooter,
+div.toc,div.list-of-tables,div.list-of-examples {
+ font-family: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, sans-serif;
+}
+
+div.othercredit {
+ font-size: smaller;
+}
+
+span.permalink {
+ font-size: smaller;
+ margin-left: 0.5em;
+}
+
+span.permalink>a {
+ color: #444;
+ text-decoration: none;
+}
+
+h2 {
+ margin-top: 3em;
+ margin-bottom: 0.2em;
+}
+
+h3 {
+ margin-top: 2.5em;
+ margin-bottom: 0.2em;
+}
+
+h4 {
+ margin-top: 2em;
+ margin-bottom: 0.2em;
+}
+
+h5 {
+ margin-top: 1.5em;
+ margin-bottom: 0.2em;
+}
+
+.command {
+ font-family: 'Liberation Mono',monospace;
+ font-size: 14px;
+}
+
+/* normalise size with command */
+p>code {
+ font-size: 14px;
+}
+
+.userinput {
+ font-style: italic;
+}
+
+code.prompt {
+ color: green;
+}
+
+em.parameter {
+ font-style: normal;
+}
+
+div.authorgroup {
+ padding-bottom: 2em;
+}
+
+div.authorgroup h3 {
+ margin-top: 0.5em;
+}
+
+h3.author { font-size: 1.1em; margin-bottom: 0; }
+
+div.section {
+ margin-top: -0.5em;
+}
+
+div.section div.titlepage {
+ margin-left: 0.5em;
+}
+
+div.section > * {
+ margin-left: 1.5em;
+}
diff --git a/devel/requirements/Makefile b/devel/requirements/Makefile
new file mode 100644
index 0000000..063e104
--- /dev/null
+++ b/devel/requirements/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+
+all: html/index.html
+
+html/index.html: *.xml ../pretty.css
+ @printf 'Requirements Specification: Generating HTML...\n'
+ @xmlto html -m ../master.xsl -o html requirements.xml
+ @cp ../pretty.css html/
+
+upload: html/index.html
+ @printf 'Uploading Requirements Specification...\n'
+ @scp html/* awilcox@www.adelielinux.org:/srv/www/adelie/www/horizon-requirements/
diff --git a/devel/script/Makefile b/devel/script/Makefile
new file mode 100644
index 0000000..95720e8
--- /dev/null
+++ b/devel/script/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+
+all: html/index.html
+
+html/index.html: *.xml ../pretty.css
+ @printf 'HorizonScript Specification: Generating HTML...\n'
+ @xmlto html -m ../master.xsl -o html script.xml
+ @cp ../pretty.css html/
+
+upload: html/index.html
+ @printf 'Uploading HorizonScript Specification...\n'
+ @scp html/* awilcox@www.adelielinux.org:/srv/www/adelie/www/horizon-script/
diff --git a/devel/vision/Makefile b/devel/vision/Makefile
new file mode 100644
index 0000000..47f4031
--- /dev/null
+++ b/devel/vision/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+
+all: html/index.html
+
+html/index.html: *.xml ../pretty.css
+ @printf 'Vision: Generating HTML...\n'
+ @xmlto html -m ../master.xsl -o html vision.xml
+ @cp ../pretty.css html/
+
+upload: html/index.html
+ @printf 'Uploading Vision...\n'
+ @scp html/* awilcox@www.adelielinux.org:/srv/www/adelie/www/horizon-vision/
diff --git a/devel/xsl/LICENSE b/devel/xsl/LICENSE
new file mode 100644
index 0000000..08339a9
--- /dev/null
+++ b/devel/xsl/LICENSE
@@ -0,0 +1 @@
+Taken from http://doccookbook.sourceforge.net/html/en/ which is licensed CC BY-NC-SA 3.0.
diff --git a/devel/xsl/permalinks.xsl b/devel/xsl/permalinks.xsl
new file mode 100644
index 0000000..f6a74fc
--- /dev/null
+++ b/devel/xsl/permalinks.xsl
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-Identifier: CC-BY-NC-SA-3.0 -->
+<xsl:stylesheet version="1.0"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:param name="generate.permalink" select="1"/>
+ <xsl:param name="permalink.text">ΒΆ</xsl:param>
+
+ <xsl:template name="permalink">
+ <xsl:param name="node" select="."/>
+
+ <xsl:if test="$generate.permalink != '0'">
+ <span class="permalink">
+ <a alt="Permalink" title="Permalink">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$node"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:copy-of select="$permalink.text"/>
+ </a>
+ </span>
+ </xsl:if>
+ </xsl:template>
+</xsl:stylesheet>
diff --git a/devel/xsl/section.title.xsl b/devel/xsl/section.title.xsl
new file mode 100644
index 0000000..8edfb6e
--- /dev/null
+++ b/devel/xsl/section.title.xsl
@@ -0,0 +1,55 @@
+<!-- SPDX-Identifier: CC-BY-NC-SA-3.0 -->
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:d="http://docbook.org/ns/docbook"
+ xmlns="http://www.w3.org/1999/xhtml">
+
+ <xsl:template name="section.title">
+ <xsl:variable name="section"
+ select="(ancestor::section |
+ ancestor::simplesect|
+ ancestor::sect1|
+ ancestor::sect2|
+ ancestor::sect3|
+ ancestor::sect4|
+ ancestor::sect5)[last()]"/>
+
+ <xsl:variable name="renderas">
+ <xsl:choose>
+ <xsl:when test="$section/@renderas = 'sect1'">1</xsl:when>
+ <xsl:when test="$section/@renderas = 'sect2'">2</xsl:when>
+ <xsl:when test="$section/@renderas = 'sect3'">3</xsl:when>
+ <xsl:when test="$section/@renderas = 'sect4'">4</xsl:when>
+ <xsl:when test="$section/@renderas = 'sect5'">5</xsl:when>
+ <xsl:otherwise><xsl:value-of select="''"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="level">
+ <xsl:choose>
+ <xsl:when test="$renderas != ''">
+ <xsl:value-of select="$renderas"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="section.level">
+ <xsl:with-param name="node" select="$section"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:call-template name="section.heading">
+ <xsl:with-param name="section" select="$section"/>
+ <xsl:with-param name="level" select="$level"/>
+ <xsl:with-param name="title">
+ <xsl:apply-templates select="$section" mode="object.title.markup">
+ <xsl:with-param name="allow-anchors" select="1"/>
+ </xsl:apply-templates>
+ <xsl:if test="$level = 1">
+ <xsl:call-template name="permalink">
+ <xsl:with-param name="node" select="$section"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:template>
+</xsl:stylesheet>