Skip to content

Commit 6ef0b01

Browse files
author
Jon Wayne Parrott
authored
Switch to pypa theme (#305)
1 parent d2e538e commit 6ef0b01

28 files changed

Lines changed: 241 additions & 585 deletions

‎requirements.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
sphinx==1.5.6
2-
sphinx_rtd_theme
1+
sphinx==1.6.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

‎scripts/linkmonitor/inventory.yaml‎

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
appveyor.html#support-script, appveyor.html#support-scripts, appveyor.html#supporting-windows-using-appveyor,
66
appveyor.html#testing-with-tox, contribute.html, contribute.html#audience, contribute.html#contribute-to-this-guide,
77
contribute.html#contributing-style-guide, contribute.html#conventions-and-mechanics,
8-
contribute.html#purpose, contribute.html#rtd-search-form, contribute.html#scope,
8+
contribute.html#purpose, contribute.html#scope,
99
contribute.html#style-guide, contribute.html#voice-and-tone, current.html, current.html#installation-tool-recommendations,
1010
current.html#packaging-tool-recommendations, current.html#tool-recommendations,
1111
deployment.html, deployment.html#application-bundles, deployment.html#application-deployment,
@@ -15,15 +15,14 @@
1515
discussions/deploying-python-applications.html#configuration-management, discussions/deploying-python-applications.html#contents,
1616
discussions/deploying-python-applications.html#deploying-python-applications, discussions/deploying-python-applications.html#os-packaging-installers,
1717
discussions/deploying-python-applications.html#overview, discussions/deploying-python-applications.html#pynsist,
18-
discussions/deploying-python-applications.html#rtd-search-form, discussions/deploying-python-applications.html#supporting-multiple-hardware-platforms,
18+
discussions/deploying-python-applications.html#supporting-multiple-hardware-platforms,
1919
discussions/deploying-python-applications.html#windows, discussions/index.html,
20-
discussions/index.html#discussions, discussions/index.html#rtd-search-form, discussions/install-requires-vs-requirements.html,
20+
discussions/index.html#discussions, discussions/install-requires-vs-requirements.html,
2121
discussions/install-requires-vs-requirements.html#contents, discussions/install-requires-vs-requirements.html#install-requires,
2222
discussions/install-requires-vs-requirements.html#install-requires-vs-requirements-files,
23-
discussions/install-requires-vs-requirements.html#requirements-files, discussions/install-requires-vs-requirements.html#rtd-search-form,
23+
discussions/install-requires-vs-requirements.html#requirements-files,
2424
discussions/pip-vs-easy-install.html, discussions/pip-vs-easy-install.html#pip-vs-easy-install,
25-
discussions/pip-vs-easy-install.html#rtd-search-form, discussions/wheel-vs-egg.html,
26-
discussions/wheel-vs-egg.html#rtd-search-form, discussions/wheel-vs-egg.html#wheel-vs-egg,
25+
discussions/wheel-vs-egg.html, discussions/wheel-vs-egg.html#wheel-vs-egg,
2726
distributing.html, distributing.html#author, distributing.html#choosing-a-versioning-scheme,
2827
distributing.html#classifiers, distributing.html#configuring-your-project, distributing.html#console-scripts,
2928
distributing.html#contents, distributing.html#create-an-account, distributing.html#data-files,
@@ -46,7 +45,7 @@
4645
extensions.html#building-binary-extensions, extensions.html#contents, extensions.html#disadvantages,
4746
extensions.html#implementing-binary-extensions, extensions.html#publishing-binary-extensions,
4847
extensions.html#setting-up-a-build-environment-on-windows, extensions.html#use-cases,
49-
glossary.html, glossary.html#glossary, glossary.html#rtd-search-form, glossary.html#term-binary-distribution,
48+
glossary.html, glossary.html#glossary, glossary.html#term-binary-distribution,
5049
glossary.html#term-built-distribution, glossary.html#term-distribution-package,
5150
glossary.html#term-egg, glossary.html#term-extension-module, glossary.html#term-import-package,
5251
glossary.html#term-known-good-set-kgs, glossary.html#term-module, glossary.html#term-package-index,
@@ -57,59 +56,59 @@
5756
glossary.html#term-source-distribution-or-sdist, glossary.html#term-system-package,
5857
glossary.html#term-version-specifier, glossary.html#term-virtual-environment, glossary.html#term-wheel,
5958
glossary.html#term-working-set, guides/creating-and-discovering-plugins.html, guides/creating-and-discovering-plugins.html#creating-and-discovering-plugins,
60-
guides/creating-and-discovering-plugins.html#rtd-search-form, guides/creating-and-discovering-plugins.html#using-namespace-packages,
59+
guides/creating-and-discovering-plugins.html#using-namespace-packages,
6160
guides/creating-and-discovering-plugins.html#using-naming-convention, guides/creating-and-discovering-plugins.html#using-package-metadata,
6261
guides/hosting-your-own-index.html, guides/hosting-your-own-index.html#hosting-your-own-simple-repository,
63-
guides/hosting-your-own-index.html#manual-repository, guides/hosting-your-own-index.html#rtd-search-form,
62+
guides/hosting-your-own-index.html#manual-repository,
6463
guides/index-mirrors-and-caches.html, guides/index-mirrors-and-caches.html#caching-with-devpi,
6564
guides/index-mirrors-and-caches.html#caching-with-pip, guides/index-mirrors-and-caches.html#complete-mirror-with-bandersnatch,
6665
guides/index-mirrors-and-caches.html#contents, guides/index-mirrors-and-caches.html#package-index-mirrors-and-caches,
67-
guides/index-mirrors-and-caches.html#pypi-mirrors-and-caches, guides/index-mirrors-and-caches.html#rtd-search-form,
68-
guides/index.html, guides/index.html#guides, guides/index.html#rtd-search-form,
66+
guides/index-mirrors-and-caches.html#pypi-mirrors-and-caches,
67+
guides/index.html, guides/index.html#guides,
6968
guides/installing-scientific-packages.html, guides/installing-scientific-packages.html#building-from-source,
7069
guides/installing-scientific-packages.html#contents, guides/installing-scientific-packages.html#installing-scientific-packages,
7170
guides/installing-scientific-packages.html#linux-distribution-packages, guides/installing-scientific-packages.html#mac-os-x-installers-and-package-managers,
72-
guides/installing-scientific-packages.html#numpy-and-the-science-stack, guides/installing-scientific-packages.html#rtd-search-form,
71+
guides/installing-scientific-packages.html#numpy-and-the-science-stack,
7372
guides/installing-scientific-packages.html#scipy-distributions, guides/installing-scientific-packages.html#spack,
7473
guides/installing-scientific-packages.html#the-conda-cross-platform-package-manager,
7574
guides/installing-scientific-packages.html#windows-installers, guides/installing-using-linux-tools.html,
7675
guides/installing-using-linux-tools.html#arch-linux, guides/installing-using-linux-tools.html#centos-rhel,
7776
guides/installing-using-linux-tools.html#debian-ubuntu, guides/installing-using-linux-tools.html#fedora,
7877
guides/installing-using-linux-tools.html#installing-pip-setuptools-wheel-with-linux-package-managers,
79-
guides/installing-using-linux-tools.html#opensuse, guides/installing-using-linux-tools.html#rtd-search-form,
78+
guides/installing-using-linux-tools.html#opensuse,
8079
guides/multi-version-installs.html, guides/multi-version-installs.html#multi-version-installs,
81-
guides/multi-version-installs.html#rtd-search-form, guides/packaging-binary-extensions.html,
80+
guides/packaging-binary-extensions.html,
8281
guides/packaging-binary-extensions.html#alternatives-for-low-level-system-access,
8382
guides/packaging-binary-extensions.html#alternatives-to-handcoded-accelerator-modules,
8483
guides/packaging-binary-extensions.html#alternatives-to-handcoded-wrapper-modules,
8584
guides/packaging-binary-extensions.html#an-overview-of-binary-extensions, guides/packaging-binary-extensions.html#binary-extensions,
8685
guides/packaging-binary-extensions.html#building-binary-extensions, guides/packaging-binary-extensions.html#contents,
8786
guides/packaging-binary-extensions.html#disadvantages, guides/packaging-binary-extensions.html#implementing-binary-extensions,
8887
guides/packaging-binary-extensions.html#packaging-binary-extensions, guides/packaging-binary-extensions.html#publishing-binary-extensions,
89-
guides/packaging-binary-extensions.html#rtd-search-form, guides/packaging-binary-extensions.html#setting-up-a-build-environment-on-windows,
88+
guides/packaging-binary-extensions.html#setting-up-a-build-environment-on-windows,
9089
guides/packaging-binary-extensions.html#use-cases, guides/packaging-namespace-packages.html,
9190
guides/packaging-namespace-packages.html#creating-a-namespace-package, guides/packaging-namespace-packages.html#native-namespace-packages,
9291
guides/packaging-namespace-packages.html#packaging-namespace-packages, guides/packaging-namespace-packages.html#pkg-resources-style-namespace-packages,
93-
guides/packaging-namespace-packages.html#pkgutil-style-namespace-packages, guides/packaging-namespace-packages.html#rtd-search-form,
94-
guides/single-sourcing-package-version.html, guides/single-sourcing-package-version.html#rtd-search-form,
92+
guides/packaging-namespace-packages.html#pkgutil-style-namespace-packages,
93+
guides/single-sourcing-package-version.html,
9594
guides/single-sourcing-package-version.html#single-sourcing-the-package-version,
9695
guides/single-sourcing-package-version.html#single-sourcing-the-version, guides/supporting-multiple-python-versions.html,
9796
guides/supporting-multiple-python-versions.html#automated-testing-and-continuous-integration,
98-
guides/supporting-multiple-python-versions.html#contents, guides/supporting-multiple-python-versions.html#rtd-search-form,
97+
guides/supporting-multiple-python-versions.html#contents,
9998
guides/supporting-multiple-python-versions.html#supporting-multiple-python-versions,
10099
guides/supporting-multiple-python-versions.html#tools-for-single-source-python-packages,
101100
guides/supporting-multiple-python-versions.html#what-s-in-which-python, guides/supporting-windows-using-appveyor.html,
102101
guides/supporting-windows-using-appveyor.html#access-to-the-built-wheels, guides/supporting-windows-using-appveyor.html#adding-appveyor-support-to-your-project,
103102
guides/supporting-windows-using-appveyor.html#additional-notes, guides/supporting-windows-using-appveyor.html#appveyor-yml,
104103
guides/supporting-windows-using-appveyor.html#automatically-uploading-wheels, guides/supporting-windows-using-appveyor.html#background,
105104
guides/supporting-windows-using-appveyor.html#contents, guides/supporting-windows-using-appveyor.html#external-dependencies,
106-
guides/supporting-windows-using-appveyor.html#rtd-search-form, guides/supporting-windows-using-appveyor.html#setting-up,
105+
guides/supporting-windows-using-appveyor.html#setting-up,
107106
guides/supporting-windows-using-appveyor.html#support-script, guides/supporting-windows-using-appveyor.html#support-scripts,
108107
guides/supporting-windows-using-appveyor.html#supporting-windows-using-appveyor,
109108
guides/supporting-windows-using-appveyor.html#testing-with-tox, guides/tool-recommendations.html,
110109
guides/tool-recommendations.html#installation-tool-recommendations, guides/tool-recommendations.html#packaging-tool-recommendations,
111-
guides/tool-recommendations.html#rtd-search-form, guides/tool-recommendations.html#tool-recommendations,
112-
index.html, index.html#python-packaging-user-guide, index.html#rtd-search-form,
110+
guides/tool-recommendations.html#tool-recommendations,
111+
index.html, index.html#python-packaging-user-guide,
113112
install_requirements_linux.html, install_requirements_linux.html#arch-linux, install_requirements_linux.html#centos-rhel,
114113
install_requirements_linux.html#debian-ubuntu, install_requirements_linux.html#fedora,
115114
install_requirements_linux.html#installing-pip-setuptools-wheel-with-linux-package-managers,
@@ -129,7 +128,7 @@
129128
key_projects.html#ensurepip, key_projects.html#hashdist, key_projects.html#non-pypa-projects,
130129
key_projects.html#packaging, key_projects.html#pex, key_projects.html#pip, key_projects.html#project-summaries,
131130
key_projects.html#projects, key_projects.html#pypa-projects, key_projects.html#python-packaging-user-guide,
132-
key_projects.html#rtd-search-form, key_projects.html#setuptools, key_projects.html#spack,
131+
key_projects.html#setuptools, key_projects.html#spack,
133132
key_projects.html#standard-library-projects, key_projects.html#twine, key_projects.html#venv,
134133
key_projects.html#virtualenv, key_projects.html#warehouse, key_projects.html#wheel,
135134
mirrors.html, mirrors.html#caching-with-devpi, mirrors.html#caching-with-pip, mirrors.html#complete-mirror-with-bandersnatch,
@@ -165,10 +164,10 @@
165164
specifications/index.html#description-content-type, specifications/index.html#package-distribution-metadata,
166165
specifications/index.html#package-index-interfaces, specifications/index.html#platform-compatibility-tags,
167166
specifications/index.html#provides-extra-multiple-use, specifications/index.html#pypa-specifications,
168-
specifications/index.html#recording-installed-distributions, specifications/index.html#rtd-search-form,
167+
specifications/index.html#recording-installed-distributions,
169168
specifications/index.html#simple-repository-api, specifications/index.html#source-distribution-format,
170169
specifications/index.html#specifications, specifications/index.html#version-specifiers,
171-
support.html, support.html#how-to-get-support, support.html#rtd-search-form, tutorial.html,
170+
support.html, support.html#how-to-get-support, tutorial.html,
172171
tutorials/distributing-packages.html, tutorials/distributing-packages.html#author,
173172
tutorials/distributing-packages.html#choosing-a-versioning-scheme, tutorials/distributing-packages.html#classifiers,
174173
tutorials/distributing-packages.html#configuring-your-project, tutorials/distributing-packages.html#console-scripts,
@@ -184,7 +183,7 @@
184183
tutorials/distributing-packages.html#platform-wheels, tutorials/distributing-packages.html#pre-release-versioning,
185184
tutorials/distributing-packages.html#pure-python-wheels, tutorials/distributing-packages.html#readme-rst,
186185
tutorials/distributing-packages.html#requirements-for-packaging-and-distributing,
187-
tutorials/distributing-packages.html#rtd-search-form, tutorials/distributing-packages.html#scheme-choices,
186+
tutorials/distributing-packages.html#scheme-choices,
188187
tutorials/distributing-packages.html#scripts, tutorials/distributing-packages.html#semantic-versioning-preferred,
189188
tutorials/distributing-packages.html#serial-versioning, tutorials/distributing-packages.html#setup-args,
190189
tutorials/distributing-packages.html#setup-cfg, tutorials/distributing-packages.html#setup-name,
@@ -194,7 +193,7 @@
194193
tutorials/distributing-packages.html#uploading-your-project-to-pypi, tutorials/distributing-packages.html#url,
195194
tutorials/distributing-packages.html#version, tutorials/distributing-packages.html#wheels,
196195
tutorials/distributing-packages.html#working-in-development-mode, tutorials/distributing-packages.html#your-package,
197-
tutorials/index.html, tutorials/index.html#rtd-search-form, tutorials/index.html#tutorials,
196+
tutorials/index.html, tutorials/index.html#tutorials,
198197
tutorials/installing-packages.html, tutorials/installing-packages.html#contents,
199198
tutorials/installing-packages.html#creating-and-using-virtual-environments, tutorials/installing-packages.html#creating-virtual-environments,
200199
tutorials/installing-packages.html#install-pip-setuptools-and-wheel, tutorials/installing-packages.html#installing-from-a-local-src-tree,
@@ -204,6 +203,6 @@
204203
tutorials/installing-packages.html#installing-prereleases, tutorials/installing-packages.html#installing-requirements,
205204
tutorials/installing-packages.html#installing-setuptools-extras, tutorials/installing-packages.html#installing-to-the-user-site,
206205
tutorials/installing-packages.html#optionally-create-a-virtual-environment, tutorials/installing-packages.html#requirements-files,
207-
tutorials/installing-packages.html#requirements-for-installing-packages, tutorials/installing-packages.html#rtd-search-form,
206+
tutorials/installing-packages.html#requirements-for-installing-packages,
208207
tutorials/installing-packages.html#source-distributions-vs-wheels, tutorials/installing-packages.html#upgrading-packages,
209208
tutorials/installing-packages.html#use-pip-for-installing, wheel_egg.html, wheel_egg.html#wheel-vs-egg]

‎scripts/linkmonitor/linkmonitor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def find_all_named_anchors(filename):
3838
if anchor.startswith('index-'):
3939
continue
4040
# Ignore searchbox anchors
41-
if anchor == 'searchbox':
41+
if anchor in ('searchbox', 'rtd-search-form'):
4242
continue
4343

4444
href = '{}#{}'.format(filename, anchor)

0 commit comments

Comments
 (0)