docs: make html output have a fixed width, hide footer It's hard to read text which stretches indefinitely. The footer is not adding much. Signed-off-by: Ran Benita <ran234@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
diff --git a/Makefile.am b/Makefile.am
index b2bdbe7..cd2dfab 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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)"' \
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in
index 8ef97b6..5881ff9 100644
--- a/doc/Doxyfile.in
+++ b/doc/Doxyfile.in
@@ -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
index 0000000..632ebad
--- /dev/null
+++ b/doc/doxygen-extra.css
@@ -0,0 +1,9 @@
+div#top, div.header, div.contents {
+ margin-left: auto;
+ margin-right: auto;
+ width: 960px;
+}
+
+.footer {
+ display: none;
+}