From d2642eb206e8a4d8207f7d9b2eea5195035851aa Mon Sep 17 00:00:00 2001 From: Vincent Davis Jr Date: Sun, 31 Mar 2024 12:20:02 -0400 Subject: [PATCH] docs: expand wy-nav-content width to edge of screen 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 Signed-off-by: Vincent Davis Jr --- docs/source/conf.py | 6 +++++- docs/source/sphinx-static/theme_overrides.css | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 docs/source/sphinx-static/theme_overrides.css diff --git a/docs/source/conf.py b/docs/source/conf.py index bf1251e..f0bc903 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -91,6 +91,7 @@ todo_include_todos = False # a list of builtin themes. # 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 @@ -111,8 +112,11 @@ html_theme_options = { # 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 = ['sphinx-static'] +# Add customm CSS and JS files +html_css_files = ['theme_overrides.css'] +html_js_files = [] # -- Options for HTMLHelp output ------------------------------------------ diff --git a/docs/source/sphinx-static/theme_overrides.css b/docs/source/sphinx-static/theme_overrides.css new file mode 100644 index 0000000..0952e2c --- /dev/null +++ b/docs/source/sphinx-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; } + +}