Skip to content

Commit cf2e1b1

Browse files
committed
chore: add dark theme button
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent 8ace490 commit cf2e1b1

5 files changed

Lines changed: 36 additions & 8 deletions

File tree

docs/admin_manual/conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@
77
release = '1.0'
88

99
extensions = [
10-
'sphinxcontrib.openapi',
11-
'sphinxcontrib.redoc',
10+
'sphinx_rtd_theme',
11+
'sphinx_rtd_dark_mode',
1212
]
1313

1414
templates_path = ['_templates']
1515
exclude_patterns = []
1616

1717
html_theme = 'sphinx_rtd_theme'
18+
html_theme_options = {
19+
'logo_only': True,
20+
'navigation_with_keys': True,
21+
'style_external_links': True,
22+
'version_selector': False,
23+
}
1824
html_static_path = ['_static']

docs/developer_manual/conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@
77
release = '1.0'
88

99
extensions = [
10-
'sphinxcontrib.openapi',
11-
'sphinxcontrib.redoc',
10+
'sphinx_rtd_theme',
11+
'sphinx_rtd_dark_mode',
1212
]
1313

1414
templates_path = ['_templates']
1515
exclude_patterns = []
1616

1717
html_theme = 'sphinx_rtd_theme'
18+
html_theme_options = {
19+
'logo_only': True,
20+
'navigation_with_keys': True,
21+
'style_external_links': True,
22+
'version_selector': False,
23+
}
1824
html_static_path = ['_static']
1925
html_extra_path = ['html']

docs/main/conf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@
66

77
release = '1.0'
88

9-
extensions = []
9+
extensions = [
10+
'sphinx_rtd_theme',
11+
'sphinx_rtd_dark_mode',
12+
]
1013

1114
templates_path = ['_templates']
1215
exclude_patterns = []
1316

1417
html_theme = 'sphinx_rtd_theme'
18+
html_theme_options = {
19+
'logo_only': True,
20+
'navigation_with_keys': True,
21+
'style_external_links': True,
22+
'version_selector': False,
23+
}
1524
html_static_path = ['_static']

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Sphinx==8.1.3
1+
Sphinx==8.2.3
22
sphinx-rtd-theme==3.0.2
3+
sphinx-rtd-dark-mode==1.3.0
34
sphinxcontrib-openapi==0.8.4
45
sphinxcontrib-redoc
56
sphinx-autobuild

docs/user_manual/conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@
77
release = '1.0'
88

99
extensions = [
10-
'sphinxcontrib.openapi',
11-
'sphinxcontrib.redoc',
10+
'sphinx_rtd_theme',
11+
'sphinx_rtd_dark_mode',
1212
]
1313

1414
templates_path = ['_templates']
1515
exclude_patterns = []
1616

1717
html_theme = 'sphinx_rtd_theme'
18+
html_theme_options = {
19+
'logo_only': True,
20+
'navigation_with_keys': True,
21+
'style_external_links': True,
22+
'version_selector': False,
23+
}
1824
html_static_path = ['_static']

0 commit comments

Comments
 (0)