From ffcc83b99efab643ab320ea0a217e43cd5a0da5c Mon Sep 17 00:00:00 2001 From: Matthew Bourque Date: Wed, 25 Sep 2024 10:47:28 -0600 Subject: [PATCH] Now using no max-width on sphinx_rtd_theme (#34) --- docs/source/_static/css/custom.css | 10 ++++++++++ docs/source/conf.py | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 docs/source/_static/css/custom.css diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css new file mode 100644 index 0000000..b652183 --- /dev/null +++ b/docs/source/_static/css/custom.css @@ -0,0 +1,10 @@ +/* Increase the width of the content area */ +.wy-nav-content { + max-width: none; +} + +/* Center the content */ +.wy-nav-content { + margin-left: auto; + margin-right: auto; +} diff --git a/docs/source/conf.py b/docs/source/conf.py index 341e7ab..f1956bc 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -35,3 +35,8 @@ html_theme = 'sphinx_rtd_theme' html_static_path = ['_static'] + + +# Add the custom CSS file to the list of stylesheets +def setup(app): + app.add_css_file('css/custom.css') \ No newline at end of file