From d828abaddec0dce3ec4b4eeddc3a74384e52cf34 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 9 Jun 2020 21:20:07 -0700 Subject: [PATCH] Fix horizontal scrollbar on changelog, refs #828 --- docs/_static/css/custom.css | 3 +++ docs/conf.py | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 docs/_static/css/custom.css diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css new file mode 100644 index 00000000..d7c2f164 --- /dev/null +++ b/docs/_static/css/custom.css @@ -0,0 +1,3 @@ +a.external { + overflow-wrap: anywhere; +} diff --git a/docs/conf.py b/docs/conf.py index 5e0bb328..b273afca 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -99,6 +99,11 @@ html_theme = "sphinx_rtd_theme" # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] +html_css_files = [ + "css/custom.css", +] + + # Custom sidebar templates, must be a dictionary that maps document names # to template names. #