Skip to content

Commit 08c99b6

Browse files
authored
Merge pull request #9008 from pradyunsg/better-tabs
2 parents 4e26bf2 + fb03b6a commit 08c99b6

20 files changed

+1068
-1296
lines changed

docs/html/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'sphinx.ext.extlinks',
3636
'sphinx.ext.intersphinx',
3737
# third-party:
38-
'sphinx_tabs.tabs',
38+
'sphinx_inline_tabs',
3939
# in-tree:
4040
'docs_feedback_sphinxext',
4141
'pip_sphinxext',

docs/html/development/getting-started.rst

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,23 @@ To run the pip executable from your source tree during development, install pip
3838
locally using editable installation (inside a virtualenv).
3939
You can then invoke your local source tree pip normally.
4040

41-
.. tabs::
41+
.. tab:: Unix/macOS
4242

43-
.. group-tab:: Unix/macOS
43+
.. code-block:: shell
4444
45-
.. code-block:: shell
45+
virtualenv venv # You can also use "python -m venv venv" from python3.3+
46+
source venv/bin/activate
47+
python -m pip install -e .
48+
python -m pip --version
4649
47-
virtualenv venv # You can also use "python -m venv venv" from python3.3+
48-
source venv/bin/activate
49-
python -m pip install -e .
50-
python -m pip --version
50+
.. tab:: Windows
5151

52-
.. group-tab:: Windows
52+
.. code-block:: shell
5353
54-
.. code-block:: shell
55-
56-
virtualenv venv # You can also use "py -m venv venv" from python3.3+
57-
venv\Scripts\activate
58-
py -m pip install -e .
59-
py -m pip --version
54+
virtualenv venv # You can also use "py -m venv venv" from python3.3+
55+
venv\Scripts\activate
56+
py -m pip install -e .
57+
py -m pip --version
6058
6159
Running Tests
6260
=============

docs/html/installing.rst

Lines changed: 36 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,17 @@ this link: `get-pip.py
2828
Then run the following command in the folder where you
2929
have downloaded ``get-pip.py``:
3030

31-
.. tabs::
31+
.. tab:: Unix/macOS
3232

33-
.. group-tab:: Unix/macOS
33+
.. code-block:: shell
3434
35-
.. code-block:: shell
35+
python get-pip.py
3636
37-
python get-pip.py
37+
.. tab:: Windows
3838

39-
.. group-tab:: Windows
39+
.. code-block:: shell
4040
41-
.. code-block:: shell
42-
43-
py get-pip.py
41+
py get-pip.py
4442
4543
4644
.. warning::
@@ -81,68 +79,60 @@ some examples:
8179

8280
Install from local copies of pip and setuptools:
8381

84-
.. tabs::
85-
86-
.. group-tab:: Unix/macOS
82+
.. tab:: Unix/macOS
8783

88-
.. code-block:: shell
84+
.. code-block:: shell
8985
90-
python get-pip.py --no-index --find-links=/local/copies
86+
python get-pip.py --no-index --find-links=/local/copies
9187
92-
.. group-tab:: Windows
88+
.. tab:: Windows
9389

94-
.. code-block:: shell
90+
.. code-block:: shell
9591
96-
py get-pip.py --no-index --find-links=/local/copies
92+
py get-pip.py --no-index --find-links=/local/copies
9793
9894
Install to the user site [3]_:
9995

100-
.. tabs::
101-
102-
.. group-tab:: Unix/macOS
96+
.. tab:: Unix/macOS
10397

104-
.. code-block:: shell
98+
.. code-block:: shell
10599
106-
python get-pip.py --user
100+
python get-pip.py --user
107101
108-
.. group-tab:: Windows
102+
.. tab:: Windows
109103

110-
.. code-block:: shell
104+
.. code-block:: shell
111105
112-
py get-pip.py --user
106+
py get-pip.py --user
113107
114108
Install behind a proxy:
115109

116-
.. tabs::
110+
.. tab:: Unix/macOS
117111

118-
.. group-tab:: Unix/macOS
112+
.. code-block:: shell
119113
120-
.. code-block:: shell
114+
python get-pip.py --proxy="http://[user:passwd@]proxy.server:port"
121115
122-
python get-pip.py --proxy="http://[user:passwd@]proxy.server:port"
116+
.. tab:: Windows
123117

124-
.. group-tab:: Windows
118+
.. code-block:: shell
125119
126-
.. code-block:: shell
127-
128-
py get-pip.py --proxy="http://[user:passwd@]proxy.server:port"
120+
py get-pip.py --proxy="http://[user:passwd@]proxy.server:port"
129121
130122
``get-pip.py`` can also be used to install a specified combination of ``pip``,
131123
``setuptools``, and ``wheel`` using the same requirements syntax as pip:
132124

133-
.. tabs::
134-
135-
.. group-tab:: Unix/macOS
125+
.. tab:: Unix/macOS
136126

137-
.. code-block:: shell
127+
.. code-block:: shell
138128
139-
python get-pip.py pip==9.0.2 wheel==0.30.0 setuptools==28.8.0
129+
python get-pip.py pip==9.0.2 wheel==0.30.0 setuptools==28.8.0
140130
141-
.. group-tab:: Windows
131+
.. tab:: Windows
142132

143-
.. code-block:: shell
133+
.. code-block:: shell
144134
145-
py get-pip.py pip==9.0.2 wheel==0.30.0 setuptools==28.8.0
135+
py get-pip.py pip==9.0.2 wheel==0.30.0 setuptools==28.8.0
146136
147137
Using Linux Package Managers
148138
============================
@@ -156,19 +146,17 @@ the `Python Packaging User Guide
156146
Upgrading pip
157147
=============
158148

159-
.. tabs::
160-
161-
.. group-tab:: Unix/macOS
149+
.. tab:: Unix/macOS
162150

163-
.. code-block:: shell
151+
.. code-block:: shell
164152
165-
python -m pip install -U pip
153+
python -m pip install -U pip
166154
167-
.. group-tab:: Windows
155+
.. tab:: Windows
168156

169-
.. code-block:: shell
157+
.. code-block:: shell
170158
171-
py -m pip install -U pip
159+
py -m pip install -U pip
172160
173161
174162
.. _compatibility-requirements:

0 commit comments

Comments
 (0)