[icinga-checkins] icinga.org: icinga-doc/mfriedrich/style: add a new stylesheet and include it; set encoding to utf-8 again

git at icinga.org git at icinga.org
Thu Aug 23 17:08:49 CEST 2012


Module: icinga-doc
Branch: mfriedrich/style
Commit: dfcf1dc9a072aaa1a28c1bdec2b43ed55d257543
URL:    https://git.icinga.org/?p=icinga-doc.git;a=commit;h=dfcf1dc9a072aaa1a28c1bdec2b43ed55d257543

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Thu Aug 23 17:07:52 2012 +0200

add a new stylesheet and include it; set encoding to utf-8 again

---

 de/Makefile                 |    8 +--
 en/Makefile                 |    8 +--
 stylesheets/icinga-docs.css |  117 +++++++++++++++++++++++++++++++++++++++++++
 xsl/html-chunked.xsl        |    6 +--
 4 files changed, 123 insertions(+), 16 deletions(-)

diff --git a/de/Makefile b/de/Makefile
index 574cc4c..3b71244 100644
--- a/de/Makefile
+++ b/de/Makefile
@@ -1,11 +1,7 @@
 
-all:
-	@echo ""
-	@echo "Please type what you want"
-	@echo "make de"
-	@echo ""
+all: de
 
 de:
-	xsltproc --xinclude ../xsl/html-chunked.xsl Icinga.xml 
+	xsltproc --xinclude ../xsl/html-chunked.xsl Icinga.xml
 
 
diff --git a/en/Makefile b/en/Makefile
index 0b9b650..c8959d7 100644
--- a/en/Makefile
+++ b/en/Makefile
@@ -1,11 +1,7 @@
 
-all:
-	@echo ""
-	@echo "Please type what you want"
-	@echo "make en"
-	@echo ""
+all: en
 
 en:
-	xsltproc --xinclude ../xsl/html-chunked.xsl Icinga.xml 
+	xsltproc --xinclude ../xsl/html-chunked.xsl Icinga.xml
 
 
diff --git a/stylesheets/icinga-docs.css b/stylesheets/icinga-docs.css
new file mode 100644
index 0000000..8515068
--- /dev/null
+++ b/stylesheets/icinga-docs.css
@@ -0,0 +1,117 @@
+/* color scheme similar to www.icinga.org */
+
+
+body {
+	margin: 0;
+	padding: 0;
+	font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Helvetica, Arial, sans-serif;
+	font-size: 0.72em;
+	color: #262625;
+	/*background: #EFEFEF;*/
+	background: #FFFFFF;
+	font-family: verdana, sans-serif;
+}
+
+a:link, a:visited, a:active {
+	color: #1F1F1F;
+	font-weight: normal;
+	text-decoration: underline;
+	}
+
+a:hover {
+	color: #FFB600;
+	font-weight: normal;
+	text-decoration: underline;
+	}
+ul, ol, dl, p, h1, h2, h3, h4, h5, h6 {
+	margin-top: 10px;
+	margin-bottom: 10px;
+	padding-top: 0;
+	padding-bottom: 0;
+	}
+/* remove margins on sub-lists */
+ul ul, ul ol, ol ul, ol ol {
+	margin-top: 0;
+	margin-bottom: 0;
+	}
+
+code, pre {
+	font-family: "Courier New", Courier, monospace;
+	font-size: 1em;
+	}
+pre {
+	overflow: auto;
+	word-wrap: normal;
+	padding-bottom: 1.5em;
+	overflow-y: hidden;
+	width: 99%;
+	}
+abbr[title], acronym[title] {
+	border-bottom: 1px dotted;
+	}
+
+hr {
+	display: block;
+	height: 2px;
+	border: none;
+	margin: 0.5em auto;
+	color: #cccccc;
+	background-color: #cccccc;
+	}
+/* use the body's font size in tables, too: */
+table {
+	font-size: 1em;
+	margin: 0;
+	padding: 0;
+	background: none;
+	border: 0;
+	}
+
+
+h1 { font-size: 34px; line-height: 1.2; margin: 0.3em 0 10px; }
+h2 { font-size: 28px; line-height: 1.3; margin: 1em 0 .2em; }
+h3 { font-size: 24px; line-height: 1.3; margin: 1em 0 .2em; }
+h4 { font-size: 19px; margin: 1.33em 0 .2em; }
+h5 { font-size: 1.3em; margin: 1.67em 0; font-weight: bold; }
+h6 { font-size: 1.15em; margin: 1.67em 0; font-weight: bold; }
+
+/* center some titles */
+
+.BOOK .TITLE, .BOOK .CORPAUTHOR, .BOOK .COPYRIGHT {
+	text-align: center;
+}
+
+/* decoration for formal examples */
+
+DIV.EXAMPLE {
+	padding-left: 15px;
+	border-style: solid;
+	border-width: 0px;
+	border-left-width: 2px;
+	border-color: black;
+	margin: 0.5ex;
+}
+
+/* less dense spacing of TOC */
+
+.BOOK .TOC DL DT {
+	padding-top: 1.5ex;
+	padding-bottom: 1.5ex;
+}
+
+.BOOK .TOC DL DL DT {
+	padding-top: 0ex;
+	padding-bottom: 0ex;
+}
+
+/* miscellaneous */
+
+PRE.LITERALLAYOUT, .SCREEN, .SYNOPSIS, .PROGRAMLISTING {
+	margin-left: 4ex;
+}
+
+.COMMENT	{ color: red; }
+
+VAR		{ font-family: monospace; font-style: italic; }
+/* Konqueror's standard style for ACRONYM is italic. */
+ACRONYM		{ font-style: inherit; }
diff --git a/xsl/html-chunked.xsl b/xsl/html-chunked.xsl
index 923d0f6..8d62598 100644
--- a/xsl/html-chunked.xsl
+++ b/xsl/html-chunked.xsl
@@ -11,7 +11,7 @@
 
 <!-- Due to problems with german umlauts while creating PDF output
      changed from utf-8 to old fashioned iso-8859-1 (Wolfgang) -->
-<xsl:param name="chunker.output.encoding" select="'iso-8859-1'"/>
+<xsl:param name="chunker.output.encoding" select="'utf-8'"/>
 
 <xsl:param name="chunk.first.sections" select="'1'"/>
 
@@ -31,9 +31,7 @@
 <xsl:param name="chunker.output.indent" select="'yes'"/>
 
 <!-- Hendrik: Here we get our CSS Stylesheet -->
-<!--
-<xsl:param name="html.stylesheet" select="'nagios.css'" />
--->
+<xsl:param name="html.stylesheet" select="'../stylesheets/icinga-docs.css'" />
 
 <!-- Hendrik: Copyright Information on each page -->
 





More information about the icinga-checkins mailing list