summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-10-06 14:04:59 +0000
committerTom Rini <trini@ti.com>2012-10-15 11:54:15 -0700
commit8d5d89e21dee6c4a4ec3613ea1550b9f5b74ac19 (patch)
treecf693442dec571b730e97f0a11e0c2279cfe5bd3 /doc
parent30ff89189ba111268cfcde508ac4cc9f83eb9bcd (diff)
kerneldoc: Add nicer CSS stylesheet for HTML docs
Import basic CSS stylesheet for the HTML documentation. The base for the stylesheet is taken from: http://ds9a.nl/docbook/minimal-page.html I customized the CSS a bit further, for example to add curvy corners to example section and change the tint of gray. The HTML documentation does not look that crude anymore. Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/DocBook/docbook.css16
-rw-r--r--doc/DocBook/stylesheet.xsl1
2 files changed, 17 insertions, 0 deletions
diff --git a/doc/DocBook/docbook.css b/doc/DocBook/docbook.css
new file mode 100644
index 00000000000..7a79ec54bd2
--- /dev/null
+++ b/doc/DocBook/docbook.css
@@ -0,0 +1,16 @@
+body {
+ font-family: sans-serif;
+}
+
+.programlisting {
+ font-family: monospace;
+ font-size: 1em;
+ display: block;
+ padding: 10px;
+ border: 1px solid #aaa;
+ color: #000;
+ background-color: #eee;
+ overflow: auto;
+ margin: 1em 0em;
+ border-radius: 6px;
+}
diff --git a/doc/DocBook/stylesheet.xsl b/doc/DocBook/stylesheet.xsl
index 85b25275196..8adce568b60 100644
--- a/doc/DocBook/stylesheet.xsl
+++ b/doc/DocBook/stylesheet.xsl
@@ -7,4 +7,5 @@
<!-- <param name="paper.type">A4</param> -->
<param name="generate.section.toc.level">2</param>
<param name="use.id.as.filename">1</param>
+<param name="html.stylesheet">../docbook.css</param>
</stylesheet>