Skip to content

Commit

Permalink
docs: customize sphinx doc theme (Unstructured-IO#192)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sparkbrains authored Feb 6, 2023
1 parent 782b435 commit 2b88890
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/source/_static/unstructured.css
Original file line number Diff line number Diff line change
@@ -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;
}
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@
# 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"]

0 comments on commit 2b88890

Please sign in to comment.