From 57bbc5d6da9ea259d14529c896712e2d5420340a Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Sat, 14 Jan 2023 07:39:29 -0800 Subject: [PATCH] improve css (#615) --- docs/_static/css/custom.css | 3 +++ docs/conf.py | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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..a3912f1e --- /dev/null +++ b/docs/_static/css/custom.css @@ -0,0 +1,3 @@ +pre { + white-space: break-spaces; +} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index fe0ff5be..3185df76 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -94,6 +94,12 @@ html_context = { # 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: list = [] +html_static_path = ["_static"] + +# These paths are either relative to html_static_path +# or fully qualified paths (eg. https://...) +html_css_files = [ + "css/custom.css", +] nb_execution_mode = "off" myst_enable_extensions = ["colon_fence"]