From d3fe1642bcdd56d478d88c9141695a4aeaa163a4 Mon Sep 17 00:00:00 2001 From: Julien EMMANUEL Date: Wed, 5 Feb 2020 14:47:23 +0100 Subject: [PATCH] Fix 'TOC' image size in doc --- docs/source/_static/css/custom.css | 3 +++ docs/source/conf.py | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 0000000000..f796de4775 --- /dev/null +++ b/docs/source/_static/css/custom.css @@ -0,0 +1,3 @@ +object#TOC { + max-width: 100%; +} \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index b287522edd..e8de0fb671 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -117,7 +117,7 @@ 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 = ['_static'] # Custom sidebar templates, must be a dictionary that maps document names # to template names. @@ -145,6 +145,10 @@ html_context = { "conf_py_path": "/docs/source/", # Path in the checkout to the docs root } +html_css_files = [ + 'css/custom.css', +] + # -- Other options nitpicky = True # Generate a warning for all a cross-reference (such as :func:`myfunc`) that cannot be found -- 2.20.1