Add a css file so that the manual looks a bit better.
authorTim Mayberry <mojofunk@gmail.com>
Sat, 3 Feb 2007 01:05:03 +0000 (01:05 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Sat, 3 Feb 2007 01:05:03 +0000 (01:05 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1411 d708f5d6-7413-0410-9779-e7cbd77b26cf

manual/Makefile
manual/css/ardour_manual.css [new file with mode: 0644]
manual/images/title-bg.png [new file with mode: 0644]
manual/xsl/html.xsl [new file with mode: 0644]

index e3bcbadd378ebac0b3d2eada911a7ec1b7b21041..584d8962e97e2e03b06faa36bed198d9f2f2486b 100644 (file)
@@ -3,8 +3,8 @@ DOCNAME         = ardour_manual
 
 # Default values, only set if not set in book Makefile
 XMLFILE                ?= tmp/xml/$(DOCNAME).xml
-#XSLFILE               ?= tmp/xsl/ardour.xsl
-#CSSFILE               ?= tmp/$(DOCNAME).css
+XSLFILE                ?= tmp/xsl/html.xsl
+CSSFILE                ?= tmp/$(DOCNAME).css
 XMLTO          ?= xmlto
 XSLTPROC       ?= xsltproc
 PWD            = $(shell pwd)
@@ -20,10 +20,9 @@ xml:: clean
 
 html:: xml
        # generate html
-       LANG=en_US.UTF-8 $(XMLTO) -o tmp/ html $(XMLFILE)
-#      LANG=en_US.UTF-8 $(XMLTO) -x $(XSLFILE) -o tmp/ html $(XMLFILE)
+       LANG=en_US.UTF-8 $(XMLTO) -x $(XSLFILE) -o tmp/ html $(XMLFILE)
        # copy css file to html directory
-#      -@cp -f css/$(DOCNAME).css $(CSSFILE)
+       -@cp -f css/$(DOCNAME).css $(CSSFILE)
 
 .PHONY : html
 
diff --git a/manual/css/ardour_manual.css b/manual/css/ardour_manual.css
new file mode 100644 (file)
index 0000000..03e04e5
--- /dev/null
@@ -0,0 +1,63 @@
+
+body {
+       background-color: white;
+       margin:0 auto;
+       font-family: "Bitstream Vera Sans","Lucida Grande", verdana, "Luxi Sans","Trebuchet MS", helvetica,verdana,arial,sans-serif;
+       font-size:12px;
+       max-width:55em;
+       padding:2em;
+       color:#333;
+       line-height:150%;
+}
+
+/* Links */
+
+a:link {
+       color:#7f83a4;
+}
+
+a:visited {
+       color:#adabc8;
+}
+
+div.longdesc-link {
+       color:#999;
+       float:right;
+}
+
+/* Headings */
+
+h1,h2,h3,h4,h5,h6 {
+       color:#565690;
+       line-height:130%;
+       margin-top:0em;
+       font-family:"Luxi Sans","Bitstream Vera Sans","Lucida Grande","Trebuchet MS",helvetica,verdana,arial,sans-serif;
+       background-color:transparent;
+       }
+
+h1 {
+       background: #555555 url(images/title-bg.png) top left repeat;
+       line-height:1.6em;
+       color:#eff3f0;
+       font-size:2em;
+       padding:1.5em;
+}
+
+h2 {
+       font-size:1.6em;
+}
+
+h3 {
+       font-size:1.1em;
+       padding-top:1em;
+}
+
+h5.formalpara {
+       font-size:1em;
+       margin-top:2em;
+}
+
+/* Element rules*/
+hr{border-collapse: collapse;border-style:none;border-top: 1px dotted #ccc;width:100% !important;}
+sup{color:#999;}
+
diff --git a/manual/images/title-bg.png b/manual/images/title-bg.png
new file mode 100644 (file)
index 0000000..00fc7ed
Binary files /dev/null and b/manual/images/title-bg.png differ
diff --git a/manual/xsl/html.xsl b/manual/xsl/html.xsl
new file mode 100644 (file)
index 0000000..c456c74
--- /dev/null
@@ -0,0 +1,87 @@
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                               xmlns:exsl="http://exslt.org/common"
+                               version="1.0"
+                               exclude-result-prefixes="exsl">
+
+<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl"/>
+<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/chunk-common.xsl"/>
+<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/chunk-code.xsl"/>
+<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/manifest.xsl"/>
+
+<xsl:param name="html.stylesheet" select="'ardour_manual.css'"/>
+<xsl:param name="html.stylesheet.type" select="'text/css'"/>
+<xsl:param name="html.cleanup" select="1"/>
+<xsl:param name="html.ext" select="'.html'"/>
+<xsl:output method="html" indent="yes"/>
+
+<!-- titles after all elements -->
+<xsl:param name="formal.title.placement">
+figure after
+example after
+equation after
+table after
+procedure before 
+</xsl:param>
+
+<!-- This sets the filename based on the ID. -->
+<xsl:param name="use.id.as.filename" select="'1'"/>
+
+<xsl:template match="command">
+       <xsl:call-template name="inline.monoseq"/>
+</xsl:template>
+
+<xsl:template match="application">
+       <xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guibutton">
+       <xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guiicon">
+       <xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guilabel">
+       <xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guimenu">
+       <xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guimenuitem">
+       <xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="guisubmenu">
+       <xsl:call-template name="inline.boldseq"/>
+</xsl:template>
+
+<xsl:template match="filename">
+       <xsl:call-template name="inline.monoseq"/>
+</xsl:template>
+
+<!-- TOC -->
+<xsl:param name="section.autolabel" select="1"/>
+<xsl:param name="section.label.includes.component.label" select="1"/>
+<xsl:param name="generate.legalnotice.link" select="1"/>
+<xsl:param name="generate.revhistory.link" select="1"/>
+<xsl:param name="generate.toc">
+set toc
+book toc
+article toc
+chapter toc
+qandadiv toc
+qandaset toc
+sect1 nop
+sect2 nop
+sect3 nop
+sect4 nop
+sect5 nop
+section toc
+part toc
+</xsl:param>
+
+</xsl:stylesheet>