Skip to content

Commit 7e73a53

Browse files
Copilotjason810496
andauthored
Add dark theme support to documentation (#47)
* Initial plan * Add dark theme support to documentation using Furo theme Co-authored-by: jason810496 <[email protected]> * Add Furo theme for dark mode support in documentation --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jason810496 <[email protected]> Co-authored-by: LIU ZHE YOU <[email protected]>
1 parent bc70597 commit 7e73a53

4 files changed

Lines changed: 77 additions & 31 deletions

File tree

doc/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,17 @@
3535
"sphinx.ext.napoleon",
3636
]
3737

38-
html_theme = "sphinx_rtd_theme"
38+
html_theme = "furo"
39+
html_theme_options = {
40+
"light_css_variables": {
41+
"color-brand-primary": "#2980b9",
42+
"color-brand-content": "#2980b9",
43+
},
44+
"dark_css_variables": {
45+
"color-brand-primary": "#4c9aff",
46+
"color-brand-content": "#4c9aff",
47+
},
48+
}
3949
project = "pgmq-sqlalchemy"
4050
copyright = f'2024-{time.strftime("%Y")}, the pgmq-sqlalchemy developers'
4151

doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sphinx
2-
sphinx-rtd-theme
2+
furo
33
sphinx-copybutton
44
SQLAlchemy
55
tomli; python_version < "3.11"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ test = [
6969
docs = [
7070
"sphinx>=7.3.7",
7171
"sphinx-autobuild>=2024.4.16",
72-
"sphinx-rtd-theme>=2.0.0",
7372
"sphinx-copybutton>=0.5.2",
73+
"furo>=2025.12.19",
7474
]
7575
fastapi-pub-sub-example = [
7676
"fastapi>=0.104.0",

uv.lock

Lines changed: 64 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)