feat: add dark mode toggle

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz
2023-08-16 09:44:32 +02:00
parent 4ac3d53e5a
commit d244c624d7
2 changed files with 5 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.abspath(dir_path + '/_ext'))
now = datetime.datetime.now()
extensions = ['sphinx_rtd_theme']
extensions = ['sphinx_rtd_theme', 'sphinx_rtd_dark_mode']
# General information about the project.
copyright = str(now.year) + ' Nextcloud GmbH'
@@ -70,3 +70,6 @@ html_context = {
edit_on_github_project = 'nextcloud/documentation'
edit_on_github_branch = 'master'
# user starts in light mode
default_dark_mode = False

View File

@@ -19,6 +19,7 @@ smartypants==2.0.1
snowballstemmer==2.2.0
Sphinx==4.5.0
sphinx-rtd-theme==1.2.2
sphinx-rtd-dark-mode==1.2.4
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1