Skip to content

Commit 265a45f

Browse files
committed
docs: use sphinx_rtd_theme
It is more modern than "flask", and handles the long marker names better.
1 parent 0cc49d0 commit 265a45f

File tree

4 files changed

+4
-26
lines changed

4 files changed

+4
-26
lines changed

docs/_templates/sidebarintro.html

-5
This file was deleted.

docs/conf.py

+2-19
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,8 @@
3434
exclude_patterns = ['_build']
3535

3636
pygments_style = 'sphinx'
37-
html_theme = 'flask'
38-
html_theme_options = {
39-
# 'index_logo': '',
40-
'github_fork': 'pytest-dev/pytest-django',
41-
}
42-
html_sidebars = {
43-
'index': [
44-
'sidebarintro.html',
45-
'globaltoc.html',
46-
'searchbox.html'
47-
],
48-
'**': [
49-
'globaltoc.html',
50-
'relations.html',
51-
'searchbox.html'
52-
]
53-
}
54-
# html_style = 'rtd.css'
55-
# RTD_NEW_THEME = True
37+
38+
html_theme = 'sphinx_rtd_theme'
5639

5740
# Add any paths that contain custom static files (such as style sheets) here,
5841
# relative to this directory. They are copied after the builtin static files,

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ tox
77
wheel
88
twine
99
flake8
10-
Flask-Sphinx-Themes
10+
sphinx_rtd_theme

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def read(fname):
3434
extras_require={
3535
'docs': [
3636
'sphinx',
37-
'Flask-Sphinx-Themes',
37+
'sphinx_rtd_theme',
3838
]
3939
},
4040
classifiers=['Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)