Skip to content

Commit 6c26ea2

Browse files
authored
Merge pull request #9012 from pradyunsg/switch-to-furo
2 parents a88c84d + 321163f commit 6c26ea2

25 files changed

+53
-98
lines changed

docs/docs_feedback_sphinxext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ def setup(app: Sphinx) -> Dict[str, Union[bool, str]]:
155155
rebuild=rebuild_trigger,
156156
)
157157

158-
app.add_css_file('important-admonition.css')
159158
app.connect('source-read', _modify_rst_document_source_on_read)
160159

161160
return {

docs/html/_static/important-admonition.css

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

docs/html/conf.py

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
# We have this here because readthedocs plays tricks sometimes and there seems
9595
# to be a heisenbug, related to the version of pip discovered. This is here to
9696
# help debug that if someone decides to do that in the future.
97-
print(version)
97+
print("pip version:", version)
98+
print("pip release:", release)
9899

99100
# The language for content autogenerated by Sphinx. Refer to documentation
100101
# for a list of supported languages.
@@ -127,9 +128,6 @@
127128
# output. They are ignored by default.
128129
# show_authors = False
129130

130-
# The name of the Pygments (syntax highlighting) style to use.
131-
pygments_style = 'sphinx'
132-
133131
# A list of ignored prefixes for module index sorting.
134132
# modindex_common_prefix = []
135133

@@ -146,25 +144,18 @@
146144

147145
# The theme to use for HTML and HTML Help pages. Major themes that come with
148146
# Sphinx are currently 'default' and 'sphinxdoc'.
149-
html_theme = "pypa_theme"
147+
html_theme = "furo"
150148

151149
# Theme options are theme-specific and customize the look and feel of a theme
152150
# further. For a list of options available for each theme, see the
153151
# documentation.
154-
html_theme_options = {
155-
'collapsiblesidebar': True,
156-
'externalrefs': True,
157-
'navigation_depth': 3,
158-
'issues_url': 'https://github.com/pypa/pip/issues',
159-
'codebgcolor': '#eeffcc',
160-
'codetextcolor': '#333333',
161-
}
152+
html_theme_options = {}
162153

163154
# Add any paths that contain custom themes here, relative to this directory.
164155

165156
# The name for this set of Sphinx documents. If None, it defaults to
166157
# "<project> v<release> documentation".
167-
# html_title = None
158+
html_title = f"{project} documentation v{release}"
168159

169160
# A shorter title for the navigation bar. Default is the same as html_title.
170161
# html_short_title = None
@@ -181,7 +172,7 @@
181172
# Add any paths that contain custom static files (such as style sheets) here,
182173
# relative to this directory. They are copied after the builtin static files,
183174
# so a file named "default.css" will overwrite the builtin "default.css".
184-
html_static_path = ['_static']
175+
html_static_path = []
185176

186177
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
187178
# using the given strftime format.
@@ -204,10 +195,7 @@
204195
smartquotes_action = "qe"
205196

206197
# Custom sidebar templates, maps document names to template names.
207-
html_sidebars = {
208-
'**': ['localtoc.html', 'relations.html'],
209-
'index': ['localtoc.html']
210-
}
198+
html_sidebars = {}
211199

212200
# Additional templates that should be rendered to pages, maps page names to
213201
# template names.
@@ -321,7 +309,7 @@ def to_document_name(path, base_dir):
321309
docs_feedback_big_doc_lines = 50 # bigger docs will have a banner on top
322310
docs_feedback_email = 'Docs UX Team <docs-feedback+ux/[email protected]>'
323311
docs_feedback_excluded_documents = { # these won't have any banners
324-
'news',
312+
'news', 'reference/index',
325313
}
326314
docs_feedback_questions_list = (
327315
'What problem were you trying to solve when you came to this page?',

docs/html/development/architecture/overview.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
developers welcome your help to complete this documentation. If you're
55
interested in helping out, please let us know in the `tracking issue`_.
66

7-
.. contents::
87

98
****************************
109
Broad functionality overview

docs/html/development/architecture/upgrade-options.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ relevant if ``--upgrade`` is specified. The base behaviour is to allow
3434
packages specified on pip's command line to be upgraded. This option controls
3535
what *other* packages can be upgraded:
3636

37-
* ``eager`` - all packages will be upgraded to the latest possible version.
38-
It should be noted here that pip's current resolution algorithm isn't even
39-
aware of packages other than those specified on the command line, and
40-
those identified as dependencies. This may or may not be true of the new
41-
resolver.
42-
* ``only-if-needed`` - packages are only upgraded if they are named in the
43-
pip command or a requirement file (i.e, they are direct requirements), or
44-
an upgraded parent needs a later version of the dependency than is
45-
currently installed.
46-
* ``to-satisfy-only`` (**undocumented**) - packages are not upgraded (not
47-
even direct requirements) unless the currently installed version fails to
48-
satisfy a requirement (either explicitly specified or a dependency).
37+
* ``eager`` - all packages will be upgraded to the latest possible version.
38+
It should be noted here that pip's current resolution algorithm isn't even
39+
aware of packages other than those specified on the command line, and
40+
those identified as dependencies. This may or may not be true of the new
41+
resolver.
42+
* ``only-if-needed`` - packages are only upgraded if they are named in the
43+
pip command or a requirement file (i.e, they are direct requirements), or
44+
an upgraded parent needs a later version of the dependency than is
45+
currently installed.
46+
* ``to-satisfy-only`` (**undocumented**) - packages are not upgraded (not
47+
even direct requirements) unless the currently installed version fails to
48+
satisfy a requirement (either explicitly specified or a dependency).
4949

5050
``--force-reinstall``
5151

docs/html/development/ci.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ Supported interpreters
1717

1818
pip support a variety of Python interpreters:
1919

20-
- CPython 2.7
21-
- CPython 3.5
22-
- CPython 3.6
23-
- CPython 3.7
24-
- CPython 3.8
25-
- Latest PyPy
26-
- Latest PyPy3
20+
- CPython 2.7
21+
- CPython 3.5
22+
- CPython 3.6
23+
- CPython 3.7
24+
- CPython 3.8
25+
- Latest PyPy
26+
- Latest PyPy3
2727

2828
on different operating systems:
2929

30-
- Linux
31-
- Windows
32-
- MacOS
30+
- Linux
31+
- Windows
32+
- MacOS
3333

3434
and on different architectures:
3535

36-
- x64
37-
- x86
36+
- x64
37+
- x86
3838

3939
so 42 hypothetical interpreters.
4040

@@ -66,9 +66,9 @@ Services
6666
pip test suite and checks are distributed on three different platforms that
6767
provides free executors for open source packages:
6868

69-
- `GitHub Actions`_ (Used for code quality and development tasks)
70-
- `Azure DevOps CI`_ (Used for tests)
71-
- `Travis CI`_ (Used for PyPy tests)
69+
- `GitHub Actions`_ (Used for code quality and development tasks)
70+
- `Azure DevOps CI`_ (Used for tests)
71+
- `Travis CI`_ (Used for PyPy tests)
7272

7373
.. _`Travis CI`: https://travis-ci.org/
7474
.. _`Azure DevOps CI`: https://azure.microsoft.com/en-us/services/devops/

docs/html/development/getting-started.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ in order to start contributing.
157157
* A guide on `triaging issues`_ for issue tracker
158158
* Getting started with Git
159159

160-
- `Hello World for Git`_
161-
- `Understanding the GitHub flow`_
162-
- `Start using Git on the command line`_
160+
- `Hello World for Git`_
161+
- `Understanding the GitHub flow`_
162+
- `Start using Git on the command line`_
163163

164164

165165
.. _`open an issue`: https://github.com/pypa/pip/issues/new?title=Trouble+with+pip+development+environment

docs/html/development/issue-triage.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,16 @@ An issue may be considered resolved and closed when:
276276
- for each possible improvement or problem represented in the issue
277277
discussion:
278278

279-
- Consensus has been reached on a specific action and the actions
280-
appear to be external to the project, with no follow up needed
281-
in the project afterwards.
279+
- Consensus has been reached on a specific action and the actions
280+
appear to be external to the project, with no follow up needed
281+
in the project afterwards.
282282

283-
- PEP updates (with a corresponding issue in
284-
`python/peps <https://github.com/python/peps>`__)
285-
- already tracked by another issue
283+
- PEP updates (with a corresponding issue in
284+
`python/peps <https://github.com/python/peps>`__)
285+
- already tracked by another issue
286286

287-
- A project-specific issue has been identified and the issue no
288-
longer occurs as of the latest commit on the master branch.
287+
- A project-specific issue has been identified and the issue no
288+
longer occurs as of the latest commit on the master branch.
289289

290290
- An enhancement or feature request no longer has a proponent and the maintainers
291291
don't think it's worth keeping open.
@@ -305,8 +305,8 @@ Common issues
305305
manager-managed pip/python installation (specifically with Debian/Ubuntu).
306306
These typically present themselves as:
307307

308-
#. Not being able to find installed packages
309-
#. basic libraries not able to be found, fundamental OS components missing
310-
#. In these situations you will want to make sure that we know how they got
311-
their Python and pip. Knowing the relevant package manager commands can
312-
help, e.g. ``dpkg -S``.
308+
#. Not being able to find installed packages
309+
#. basic libraries not able to be found, fundamental OS components missing
310+
#. In these situations you will want to make sure that we know how they got
311+
their Python and pip. Knowing the relevant package manager commands can
312+
help, e.g. ``dpkg -S``.

docs/html/reference/pip.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
pip
33
===
44

5-
.. contents::
65

76
Usage
87
*****

docs/html/reference/pip_cache.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
pip cache
55
---------
66

7-
.. contents::
87

98
Usage
109
*****

docs/html/reference/pip_check.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
pip check
55
=========
66

7-
.. contents::
8-
97

108
Usage
119
=====

docs/html/reference/pip_config.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
pip config
66
==========
77

8-
.. contents::
9-
108

119
Usage
1210
=====

docs/html/reference/pip_debug.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
pip debug
55
=========
66

7-
.. contents::
8-
97

108
Usage
119
=====

docs/html/reference/pip_download.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
pip download
66
============
77

8-
.. contents::
9-
108

119
Usage
1210
=====

docs/html/reference/pip_freeze.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
pip freeze
66
==========
77

8-
.. contents::
9-
108

119
Usage
1210
=====

docs/html/reference/pip_hash.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
pip hash
55
========
66

7-
.. contents::
8-
97

108
Usage
119
=====

docs/html/reference/pip_install.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
pip install
55
===========
66

7-
.. contents::
87

98

109
Usage

docs/html/reference/pip_list.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
pip list
55
========
66

7-
.. contents::
87

98

109
Usage

docs/html/reference/pip_search.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
pip search
55
==========
66

7-
.. contents::
87

98

109
Usage

docs/html/reference/pip_show.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
pip show
55
========
66

7-
.. contents::
87

98

109
Usage

docs/html/reference/pip_uninstall.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
pip uninstall
55
=============
66

7-
.. contents::
87

98

109
Usage

docs/html/reference/pip_wheel.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
pip wheel
66
=========
77

8-
.. contents::
98

109

1110
Usage

docs/html/user_guide.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
User Guide
33
==========
44

5-
.. contents::
6-
75

86
Running pip
97
===========

docs/pip_sphinxext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def process_options(self):
143143
prefix = '{}_'.format(self.determine_opt_prefix(opt_name))
144144

145145
self.view_list.append(
146-
' * :ref:`{short}{long}<{prefix}{opt_name}>`'.format(
146+
'* :ref:`{short}{long}<{prefix}{opt_name}>`'.format(
147147
short=short_opt_name,
148148
long=opt_name,
149149
prefix=prefix,

tools/requirements/docs.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
sphinx == 3.2.1
2-
git+https://github.com/python/python-docs-theme.git#egg=python-docs-theme
3-
git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme
2+
furo
43
sphinx-inline-tabs
54

65
# `docs.pipext` uses pip's internals to generate documentation. So, we install

0 commit comments

Comments
 (0)