docs: make html output have a fixed width, hide footer
authorRan Benita <ran234@gmail.com>
Sat, 18 Oct 2014 11:50:49 +0000 (14:50 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 18 Oct 2014 12:06:16 +0000 (15:06 +0300)
It's hard to read text which stretches indefinitely.

The footer is not adding much.

Signed-off-by: Ran Benita <ran234@gmail.com>
Makefile.am
doc/Doxyfile.in
doc/doxygen-extra.css [new file with mode: 0644]

index b2bdbe7..cd2dfab 100644 (file)
@@ -11,7 +11,8 @@ EXTRA_DIST = \
        doc/quick-guide.md \
        doc/compat.md \
        doc/keymap-format-text-v1.txt \
-       doc/rules-format.txt
+       doc/rules-format.txt \
+       doc/doxygen-extra.css
 
 AM_CPPFLAGS = \
        -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
index 8ef97b6..5881ff9 100644 (file)
@@ -925,7 +925,7 @@ HTML_STYLESHEET        =
 # robust against future updates. Doxygen will copy the style sheet file to
 # the output directory.
 
-HTML_EXTRA_STYLESHEET  =
+HTML_EXTRA_STYLESHEET  = @abs_top_srcdir@/doc/doxygen-extra.css
 
 # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
 # other source files which should be copied to the HTML output directory. Note
diff --git a/doc/doxygen-extra.css b/doc/doxygen-extra.css
new file mode 100644 (file)
index 0000000..632ebad
--- /dev/null
@@ -0,0 +1,9 @@
+div#top, div.header, div.contents {
+        margin-left: auto;
+        margin-right: auto;
+        width: 960px;
+}
+
+.footer {
+        display: none;
+}