From 2b88890210ac765f573ed89d7431fe83b04f8e8d Mon Sep 17 00:00:00 2001 From: sparkbrains <73577645+sparkbrains@users.noreply.github.com> Date: Mon, 6 Feb 2023 23:00:55 +0530 Subject: [PATCH] docs: customize sphinx doc theme (#192) * feature: adding a feature for customizing color theme of sphinx docs * fix: adding changelog and comments * Adding css for changing colors of sidebar * fix: removing changelog description --- docs/source/_static/unstructured.css | 9 +++++++++ docs/source/conf.py | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 docs/source/_static/unstructured.css diff --git a/docs/source/_static/unstructured.css b/docs/source/_static/unstructured.css new file mode 100644 index 000000000..f3d9dea85 --- /dev/null +++ b/docs/source/_static/unstructured.css @@ -0,0 +1,9 @@ +/* Css to change color scheme of side navigation search bar */ +.wy-side-nav-search { + background-color: #122540; +} + +/* For changing the color of sidebar */ +.wy-nav-side { + background: #122540; +} \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index a5f412459..c77eec7cf 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -52,3 +52,6 @@ html_theme = "sphinx_rtd_theme" # 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"] + +# Adding a custom css file in order to add custom css file and can change the necessary elements. +html_css_files = ["unstructured.css"]