Skip to content

Commit 05309b1

Browse files
committed
Use Flask theme for docs (same as pytest project)
1 parent 7e1bf50 commit 05309b1

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

docs/_templates/sidebarintro.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<h3>About pytest-django</h3>
2+
<p>
3+
pytest-django is a plugin for <a href="http://pytest.org/">pytest</a>.
4+
Better testing for your <a href="https://www.djangoproject.com/">Django</a> project!
5+
</p>

docs/conf.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,25 @@
3333
exclude_patterns = ['_build']
3434

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

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

0 commit comments

Comments
 (0)