From ad9defab0f562b246f4e16c8695b2188a0504b82 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 21 Jan 2021 08:41:17 +0100 Subject: [PATCH] changed doc html layout to alabaster - make page width 100% of the window - decrease code font size (seems to big compared to other text) Change-Id: Id36dffea22163dcbd77303b0aab8c852371ef017 --- doc/source/_static/custom.css | 31 +++++++++++++++++++++++++++++++ doc/source/conf.py | 10 +++++++--- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/doc/source/_static/custom.css b/doc/source/_static/custom.css index b21f55c..60a9232 100644 --- a/doc/source/_static/custom.css +++ b/doc/source/_static/custom.css @@ -1,4 +1,35 @@ +/* this is for the sphinx_rtd_theme div.wy-nav-content { max-width: 100% !important; } +*/ +div.body { + max-width: 100%; +} + +div.bodywrapper { + margin: 0 0 0 26%; +} + +div.sphinxsidebar { + width: 25%; +} + +pre, tt, code { + font-size: 0.75em; +} + +@media screen and (max-width: 875px) { + div.bodywrapper { + margin: 0; + } + div.sphinxsidebar { + width: 102.5%; + } + div.document { + width: 100%; + } +} + + diff --git a/doc/source/conf.py b/doc/source/conf.py index 273fc13..70be1b6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -99,8 +99,9 @@ default_role = 'any' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -import sphinx_rtd_theme -html_theme = 'sphinx_rtd_theme' +#import sphinx_rtd_theme +#html_theme = 'sphinx_rtd_theme' +html_theme = 'alabaster' # If not None, a 'Last updated on:' timestamp is inserted at every page # bottom, using the given strftime format. @@ -113,7 +114,10 @@ html_last_updated_fmt = '%Y-%m-%d %H:%M' # further. For a list of options available for each theme, see the # documentation. # -# html_theme_options = {} +html_theme_options = { + 'page_width': '100%', + 'fixed_sidebar': True, +} # 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,