bpo-30607: Use external python-doc-theme by theacodes · Pull Request #2017 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
2 changes: 1 addition & 1 deletion Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ clean:

venv:
$(PYTHON) -m venv $(VENVDIR)
$(VENVDIR)/bin/python3 -m pip install -U Sphinx blurb
$(VENVDIR)/bin/python3 -m pip install -U Sphinx blurb python-docs-theme
@echo "The venv has been created in the $(VENVDIR) directory"

dist:
Expand Down
2 changes: 1 addition & 1 deletion Doc/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ tree but are maintained separately and are available from

* `Sphinx <https://pypi.org/project/Sphinx/>`_
* `blurb <https://pypi.org/project/blurb/>`_
* `python-docs-theme <https://pypi.org/project/python-docs-theme/>`_

The easiest way to install these tools is to create a virtual environment and
install the tools into there.


Using make
----------

Expand Down
8 changes: 6 additions & 2 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@
# -----------------------

# Use our custom theme.
html_theme = 'pydoctheme'
html_theme = 'python_docs_theme'
html_theme_path = ['tools']
html_theme_options = {'collapsiblesidebar': True}
html_theme_options = {
'collapsiblesidebar': True,
'issues_url': 'https://docs.python.org/3/bugs.html',
'root_include_title': False # We use the version switcher instead.
}

# Short title used e.g. for <title> HTML tags.
html_short_title = '%s Documentation' % release
Expand Down
194 changes: 0 additions & 194 deletions Doc/tools/pydoctheme/static/pydoctheme.css

This file was deleted.

23 changes: 0 additions & 23 deletions Doc/tools/pydoctheme/theme.conf

This file was deleted.

53 changes: 53 additions & 0 deletions Doc/tools/static/changelog_search.js
62 changes: 0 additions & 62 deletions Doc/tools/static/copybutton.js

This file was deleted.

Binary file removed Doc/tools/static/py.png
Binary file not shown.
Loading