From c13db75469d6d39778049930431f3496c1e2c4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Thu, 10 Nov 2022 06:31:25 -0800 Subject: [PATCH] Fix documentation build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- .pre-commit-config.yaml | 2 +- docs/changelog.rst | 2 +- docs/conf.py | 8 ++++---- tox.ini | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cb7fe89bd..53340d6d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v3.1.0 + rev: v3.2.1 hooks: - id: pyupgrade args: ["--py36-plus"] diff --git a/docs/changelog.rst b/docs/changelog.rst index a8008662e..aecd5600b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -122,7 +122,7 @@ Bugfixes - 20.14.0 v20.13.4 (2022-03-18) --------------------- -Bugfixes - 20.14.0 +Bugfixes - 20.13.4 ~~~~~~~~~~~~~~~~~~ - Improve performance of python startup inside created virtualenvs - by :user:`asottile`. (`#2317 `_) - Upgrade embedded setuptools to ``60.10.0`` from ``60.9.3`` - by :user:`gaborbernat`. (`#2320 `_) diff --git a/docs/conf.py b/docs/conf.py index 455dc1c63..0f3933108 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -50,10 +50,10 @@ autosectionlabel_prefix_document = True extlinks = { - "issue": ("https://github.com/pypa/virtualenv/issues/%s", "#"), - "pull": ("https://github.com/pypa/virtualenv/pull/%s", "PR #"), - "user": ("https://github.com/%s", "@"), - "pypi": ("https://pypi.org/project/%s", ""), + "issue": ("https://github.com/pypa/virtualenv/issues/%s", "#%s"), + "pull": ("https://github.com/pypa/virtualenv/pull/%s", "PR #%s"), + "user": ("https://github.com/%s", "@%s"), + "pypi": ("https://pypi.org/project/%s", "%s"), } diff --git a/tox.ini b/tox.ini index 0bdbeaf46..3d14359fc 100644 --- a/tox.ini +++ b/tox.ini @@ -104,7 +104,7 @@ extras = docs commands = python -c 'import glob; import subprocess; subprocess.call(["proselint"] + glob.glob("docs/*.rst") + glob.glob("docs/**/*.rst"))' - sphinx-build -d "{envtmpdir}/doctree" docs "{toxworkdir}/docs_out" --color -b html {posargs} + sphinx-build -d "{envtmpdir}/doctree" docs "{toxworkdir}/docs_out" --color -b html {posargs:-W} python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))' [testenv:upgrade]