From 517762043eb9c1f41602b2e4f36026deadb4bc4d Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 19 May 2014 20:21:17 +0200 Subject: [PATCH] doc: Added a minimalistic custom CSS for manpages. --- doc/Makefile.am | 7 ++++--- doc/sysdb-man.css | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 doc/sysdb-man.css diff --git a/doc/Makefile.am b/doc/Makefile.am index feae549..5b3127a 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -62,6 +62,7 @@ html_DATA = \ ADOC_ATTRS = -apackage_version=$(PACKAGE_VERSION) \ -abuild_date="$$( date --utc '+%F' )" \ -alocalstatedir=$(localstatedir) +HTML_ATTRS = --stylesheet=$(srcdir)/sysdb-man.css sysdb.1: sysdb.1.txt ../version sysdbd.1: sysdbd.1.txt ../version @@ -92,15 +93,15 @@ docbook-xsl.css: .1.txt.1: @A2X@ -d manpage -f manpage $(ADOC_ATTRS) $< .1.txt.1.html: - @A2X@ -d manpage -f xhtml $(ADOC_ATTRS) $< + @A2X@ -d manpage -f xhtml $(HTML_ATTRS) $(ADOC_ATTRS) $< .5.txt.5: @A2X@ -d manpage -f manpage $(ADOC_ATTRS) $< .5.txt.5.html: - @A2X@ -d manpage -f xhtml $(ADOC_ATTRS) $< + @A2X@ -d manpage -f xhtml $(HTML_ATTRS) $(ADOC_ATTRS) $< .7.txt.7: @A2X@ -d manpage -f manpage $(ADOC_ATTRS) $< .7.txt.7.html: - @A2X@ -d manpage -f xhtml $(ADOC_ATTRS) $< + @A2X@ -d manpage -f xhtml $(HTML_ATTRS) $(ADOC_ATTRS) $< diff --git a/doc/sysdb-man.css b/doc/sysdb-man.css new file mode 100644 index 0000000..b9ee322 --- /dev/null +++ b/doc/sysdb-man.css @@ -0,0 +1,30 @@ +/* + * SysDB - CSS stylesheet for manpages + */ + +body { + margin: 1em 5% 1em 5%; + line-height: 1.2; +} + +h1, h2, h3, h4, h5, h6 { + color: #527bbd; + font-family: sans-serif; +} + +body h1 { + border-bottom: 2px solid silver; +} + +body h2 { + border-bottom: 2px solid silver; +} + +body pre { + margin: 0.5em 10% 0.5em 1em; + line-height: 1.0; + color: navy; +} + +/* vim: set tw=78 sw=4 ts=4 noexpandtab : */ + -- 2.30.2