From 79a4073730a8fe5ba2424f3896a2fd440c17ac9e Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 4 May 2022 22:31:28 +0300 Subject: [PATCH] docs: tune RTD to display lists with disc and left margin RTD default theme removes discs from the section list items which makes design pages look strange. Add them back via small CSS override. Also, add 1em on the left side of the disc to provide visual cue that this is a list item. Signed-off-by: Alexander Bokovoy Reviewed-By: Francisco Trivino Reviewed-By: Sumit Bose --- doc/_static/css/ipa.css | 4 ++++ doc/conf.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 doc/_static/css/ipa.css diff --git a/doc/_static/css/ipa.css b/doc/_static/css/ipa.css new file mode 100644 index 000000000..4cea107b3 --- /dev/null +++ b/doc/_static/css/ipa.css @@ -0,0 +1,4 @@ +section ul.simple li { + list-style: disc; + margin-left: 1em; +} diff --git a/doc/conf.py b/doc/conf.py index ff42334bd..a66c1c10b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -73,7 +73,11 @@ html_theme = 'default' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -# html_static_path = ['_static'] +html_static_path = ['_static'] + +html_css_files = [ + 'css/ipa.css', +] # -- Options for sources -----------------------------------------------------