Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: tweak some Alabaster style parameters

This is just the beginning: tighten up the layout a bit to improve the
information density in the browser. Also reconfigure the page width in
terms of character units (em) rather than pixels, making it more
display-independent. To that end, add a custom.css file to
tweak Alabaster CSS settings.

Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

+17
+3
Documentation/conf.py
··· 345 345 else: 346 346 html_theme_options = { 347 347 'description': get_cline_version(), 348 + 'font_size': '10pt', 349 + 'page_width': '65em', 350 + 'sidebar_width': '15em', 348 351 } 349 352 350 353 sys.stderr.write("Using %s theme\n" % html_theme)
+14
Documentation/sphinx-static/custom.css
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* 3 + * CSS tweaks for the Alabaster theme 4 + */ 5 + 6 + /* Shrink the headers a bit */ 7 + div.body h1 { font-size: 180%; } 8 + div.body h2 { font-size: 150%; } 9 + div.body h3 { font-size: 130%; } 10 + 11 + /* Tighten up the layout slightly */ 12 + div.body { padding: 0 15px 0 10px; } 13 + div.document { margin: 20px 10px 0 10px; } 14 + div.sphinxsidebarwrapper { padding: 1em 0.4em; }