Skip to content

Commit 42dbfcf

Browse files
committed
Docs: fix RTD Sphinx build, update deps
1 parent 6c5b6b7 commit 42dbfcf

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

docs/_readme/template.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%(head_prefix)s
22
<!--
3-
This approximates PyPI.org project page styling as of 5/2023,
3+
This approximates PyPI.org project page styling as of 8/2023,
44
and loads their compiled CSS that was in use at that time.
55

66
(Styling seems to change more often than basic page structure,
@@ -17,9 +17,9 @@
1717
%(head)s
1818
<!-- template (stylesheet) omitted -->
1919

20-
<link rel="stylesheet" href="/static/css/warehouse-ltr.a42ccb04.css">
21-
<link rel="stylesheet" href="/static/css/fontawesome.d37999f3.css">
22-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,600italic,700,700italic|Source+Code+Pro:500">
20+
<link rel="stylesheet" href="/static/css/warehouse-ltr.1dcaa944.css">
21+
<link rel="stylesheet" href="/static/css/fontawesome.b50b476c.css">
22+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+3:400,400italic,600,600italic,700,700italic|Source+Code+Pro:500">
2323
<noscript>
2424
<link rel="stylesheet" href="/static/css/noscript.0673c9ea.css">
2525
</noscript>

docs/conf.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Add any Sphinx extension module names here, as strings. They can be extensions
3333
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
34-
extensions = ["sphinx.ext.intersphinx", "sphinx.ext.extlinks"]
34+
extensions = ["sphinx.ext.intersphinx", "sphinx.ext.extlinks", "sphinx_rtd_theme"]
3535

3636
# Add any paths that contain templates here, relative to this directory.
3737
templates_path = ["_templates"]
@@ -98,12 +98,7 @@
9898

9999
# The theme to use for HTML and HTML Help pages. See the documentation for
100100
# a list of builtin themes.
101-
if not ON_READTHEDOCS: # only import and set the theme if we're building docs locally
102-
import sphinx_rtd_theme # this seems to come with sphinx; if not, pip install it
103-
104-
html_theme = "sphinx_rtd_theme"
105-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
106-
# else readthedocs.org uses their theme by default (and specifying it here breaks them)
101+
html_theme = "sphinx_rtd_theme"
107102

108103
# Theme options are theme-specific and customize the look and feel of a theme
109104
# further. For a list of options available for each theme, see the
@@ -261,7 +256,7 @@
261256
# -- Options for extlinks ---------------------------------------------------
262257

263258
extlinks = {
264-
"pypi": ("https://pypi.org/project/%s/", ""),
259+
"pypi": ("https://pypi.org/project/%s/", "%s"),
265260
}
266261

267262
# -- Options for Intersphinx ------------------------------------------------

docs/requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Packages required only for building docs
22

3-
# (Pygments defaulted "python" to Python 2 before v2.5.0; it doesn't use semver)
4-
Pygments~=2.9.0
5-
readme-renderer~=37.3
6-
sphinx~=4.0
7-
sphinx-rtd-theme~=0.5.2
3+
Pygments~=2.16.1
4+
readme-renderer~=41.0
5+
sphinx~=7.2
6+
sphinx-rtd-theme~=1.3.0

0 commit comments

Comments
 (0)