Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add dark mode toggle in documentation.
Signed-off-by: swastik <swastkk@gmail.com>
  • Loading branch information
swastkk authored and TG1999 committed Apr 21, 2023
commit d98aac9e4b1ce08b38948b34b5a5f563cb4aca3c
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release notes
=============

Next Release
-------------

- We added dark mode toggle in the documentation.

Next release
-------------
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Sphinx>=3.3.1
sphinx-rtd-theme>=0.5.0
doc8>=0.8.1
sphinx-rtd-dark-mode
6 changes: 5 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
extensions = ["sphinx_rtd_dark_mode"] # For the dark mode

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand All @@ -63,3 +63,7 @@
html_static_path = []

master_doc = "index"

# user starts in light mode

default_dark_mode = False

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is what we want, light stays as default, as that is the case without this plugin.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is what we want, light stays as default, as that is the case without this plugin.

Yep ✨

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ snowballstemmer==2.2.0
soupsieve==2.3.2
Sphinx==4.5.0
sphinx-rtd-theme==1.0.0
sphinx-rtd-dark-mode==1.2.4
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-django2==1.5
Expand Down