[icinga-checkins] icinga.org: icinga-core/mfriedrich/style: draft of new docs style, requires special procedure from git submodule

git at icinga.org git at icinga.org
Thu Aug 23 17:33:55 CEST 2012


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

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

draft of new docs style, requires special procedure from git submodule

1. get the special docbook revision
cd docbook ; git fetch --all ; git checkout mfriedrich/style

2. generate new makefiles
./configure ...

3. create new docs
make create-docs

3. install it like normal
make install-html

---

 Makefile.in                           |    5 +-
 docbook                               |    2 +-
 html/Makefile.in                      |    3 +
 html/docs/stylesheets/icinga-docs.css |  117 +++++++++++++++++++++++++++++++++
 4 files changed, 125 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 41a286e..61cc6ab 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -297,7 +297,10 @@ test-perl: icinga cgis
 # Package
 ###############################
 
-create-docs:
+copy-docs-style:
+	cp ${SRC_DOCBOOK}/stylesheets/icinga-docs.css ${SRC_DOCS}/stylesheets/icinga-docs.css
+
+create-docs: copy-docs-style
 	#${MAKE} submodule-init
 	#${MAKE} submodule-update
 	#${MAKE} submodule-update-latest
diff --git a/docbook b/docbook
index 8a79d4c..dfcf1dc 160000
--- a/docbook
+++ b/docbook
@@ -1 +1 @@
-Subproject commit 8a79d4cbf77865a783c8bee04cab7517619737c7
+Subproject commit dfcf1dc9a072aaa1a28c1bdec2b43ed55d257543
diff --git a/html/Makefile.in b/html/Makefile.in
index cb28903..7788842 100644
--- a/html/Makefile.in
+++ b/html/Makefile.in
@@ -40,6 +40,7 @@ install:
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets/interface
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
+	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/stylesheets
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/en
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/de
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
@@ -64,6 +65,8 @@ install:
 	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets/interface; done
 	for file in docs/*.html; \
 	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
+	for file in docs/stylesheets/*.css; \
+	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/stylesheets; done
 	for file in docs/en/*.html; \
 	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/en; done
 	for file in docs/de/*.html; \
diff --git a/html/docs/stylesheets/.gitignore b/html/docs/stylesheets/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/html/docs/stylesheets/icinga-docs.css b/html/docs/stylesheets/icinga-docs.css
new file mode 100644
index 0000000..8515068
--- /dev/null
+++ b/html/docs/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; }





More information about the icinga-checkins mailing list