Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sphinx_rtd_dark_mode extension. #522

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions _static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ body {

.sphinx-tabs-panel {
padding: 1em 1em 0 1em;
background: inherit !important;
}

.sphinx-tabs-tab {
background: inherit !important;
}

.rst-content section ol.arabic, .rst-content section ol.arabic > li {
Expand Down
7 changes: 5 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"sphinx_rtd_theme",
"sphinx_tabs.tabs",
"myst_parser",
"sphinx_rtd_dark_mode",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -55,7 +56,7 @@

# Toc options
'includehidden': True,
'titles_only': False
'titles_only': False,
}
html_favicon = '_static/favicon.ico'
html_logo = 'cyberduck-icon-64.png'
Expand Down Expand Up @@ -83,4 +84,6 @@
myst_enable_extensions = [
"html_image",
"colon_fence"
]
]

default_dark_mode = False
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
myst-parser
sphinx-tabs
sphinx_rtd_theme
sphinx_rtd_dark_mode

# Pin docutils
docutils~=0.18.0
Loading