Skip to content

Commit 2056b92

Browse files
author
Jonathan Corbet
committed
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>
1 parent d5389d3 commit 2056b92

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Documentation/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ def get_cline_version():
345345
else:
346346
html_theme_options = {
347347
'description': get_cline_version(),
348+
'font_size': '10pt',
349+
'page_width': '65em',
350+
'sidebar_width': '15em',
348351
}
349352

350353
sys.stderr.write("Using %s theme\n" % html_theme)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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; }

0 commit comments

Comments
 (0)