From 37b58243fa82fe51512d6dd6812bcd72ccf165cb Mon Sep 17 00:00:00 2001 From: EasyIP2023 Date: Thu, 22 Aug 2024 12:10:19 -0400 Subject: [PATCH] docs: expand wy-nav-content width to edge of screen (#2452) --- docs/_static/theme_overrides.css | 12 ++++++++++++ docs/conf.py | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 docs/_static/theme_overrides.css diff --git a/docs/_static/theme_overrides.css b/docs/_static/theme_overrides.css new file mode 100644 index 0000000000..ce5fd21446 --- /dev/null +++ b/docs/_static/theme_overrides.css @@ -0,0 +1,12 @@ +@media screen { + /* content column + * + * RTD theme's default is 800px as max width for the content, but we have + * tables with tons of columns, which need the full width of the view-port. + * + * Comment from yocto project theme_overrides.css + */ + + .wy-nav-content{ max-width: none; } + +} diff --git a/docs/conf.py b/docs/conf.py index 0454f4fbcb..08a862da29 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,6 +48,7 @@ # #html_theme = 'alabaster' html_theme = 'sphinx_rtd_theme' +pygments_style = 'monokai' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -61,7 +62,11 @@ # so a file named "default.css" will overwrite the builtin "default.css". #html_static_path = ['ystatic'] # Set html_static_path to null on the advice of RTDs: -html_static_path = [] +html_static_path = ['_static'] + +# Add customm CSS and JS files +html_css_files = ['theme_overrides.css'] +html_js_files = [] # Custom sidebar templates, must be a dictionary that maps document names # to template names.