Skip to content

Commit a3176a3

Browse files
Jon Wayne ParrottMariatta
authored andcommitted
Use python-docs-theme (pythonGH-355)
1 parent d50897e commit a3176a3

File tree

8 files changed

+10
-471
lines changed

8 files changed

+10
-471
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: python
22
python: 3.6
33
cache: pip
44

5-
install: python3 -m pip install sphinx
5+
install: python3 -m pip install -r requirements.txt
66

77
script:
88
# TODO: add -b linkcheck

conf.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@
9595

9696
# -- Options for HTML output ---------------------------------------------------
9797

98-
# Use our custom theme. Previously used builtin 'nature' theme.
99-
#html_theme = 'nature'
100-
html_theme = 'pydoctheme'
101-
html_theme_path = ['tools']
102-
html_theme_options = {'collapsiblesidebar': True}
98+
# Use the upstream python-docs-theme
99+
html_theme = 'python_docs_theme'
100+
html_theme_options = {
101+
'collapsiblesidebar': True,
102+
'issues_url': 'https://github.com/python/devguide/issues/new',
103+
}
103104

104105

105106
# The name for this set of Sphinx documents. If None, it defaults to
@@ -113,16 +114,11 @@
113114
html_sidebars = {
114115
# Defaults taken from http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars
115116
# Removes the quick search block
116-
'**': [
117-
'localtoc.html',
118-
'globaltoc.html',
119-
'relations.html',
120-
'customsourcelink.html'
121-
]
117+
'**': ['localtoc.html', 'globaltoc.html', 'relations.html', 'customsourcelink.html'],
122118
}
123119

124120
# Additional static files.
125-
html_static_path = ['tools/static']
121+
#html_static_path = ['tools/static']
126122

127123
# A shorter title for the navigation bar. Default is the same as html_title.
128124
#html_short_title = None

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Sphinx
2+
python-docs-theme

tools/pydoctheme/static/pydoctheme.css

Lines changed: 0 additions & 189 deletions
This file was deleted.

tools/pydoctheme/theme.conf

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)