From bd1c14d2e0806dda1902bd452595beaa951aec36 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Tue, 3 Aug 2021 08:22:15 -0500 Subject: [PATCH] Fix warning from Sphinx 4.1.2. The extlink template needs to include the % formatting character. --- CHANGES.rst | 23 ++++++++--------------- doc/conf.py | 4 ++-- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index bf67caa..e8e3be1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -17,15 +17,14 @@ - Include program output and current working directory in the warning logged when a program returns an unexpected return code. Suggested - by Sorin Sbarnea. See `issue 50 - `_. + by Sorin Sbarnea. See :issue:`50`. + 0.16 (2020-03-23) ================= -- Add ``name`` and ``caption`` options. Added in - `PR 41 `_ +- Add ``name`` and ``caption`` options. Added in :pr:`41`. by Raphaƫl. - Add support for Python 3.8. @@ -36,8 +35,7 @@ - Make the test suite stop assuming the presence of a 'python' executable on the path. Instead it uses ``sys.executable`` (which shouldn't have spaces). Note that it does continue to assume the - presence of other executables, such as 'echo'. Reported in `issue 38 - `_ + presence of other executables, such as 'echo'. Reported in :issue:`38` by John Vandenberg. @@ -52,8 +50,7 @@ - Avoid unicode errors when the program command or output produced non-ASCII output and the configured prompt was a byte string. This was most likely under Python 2, where the default configured prompt - is a byte string. Reported by, and patch inspired by, `issue 33 - `_ + is a byte string. Reported by, and patch inspired by, :issue:`33` by latricewilgus. 0.13 (2018-12-22) @@ -66,8 +63,7 @@ - Restore error message into the document by default from failed program runs on Sphinx >= 1.8.0b1. -- Fix deprecation warnings on Sphinx >= 1.8. Reported in `issue 29 - `_ +- Fix deprecation warnings on Sphinx >= 1.8. Reported in :issue:`29` by miili. @@ -75,8 +71,7 @@ ================= - Explicitly set ``parallel_read_safe`` to true in the extension - metadata. See `issue 25 - `_. + metadata. See :issue:`25` With thanks to Adam J. Stewart and Stephen McDowell. 0.10 (2017-03-17) @@ -97,9 +92,7 @@ - Run the tests on Travis CI. Formatting and style is enforced by pylint. - The oldest supported and tested Sphinx version is now 1.3.5. See - `issue 17 - `_. - + :issue:`17`. - Remove support for Python 2.6, Python 3.2 and 3.3. diff --git a/doc/conf.py b/doc/conf.py index 3be3f81..4de0d97 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -56,9 +56,9 @@ extlinks = { 'issue': ('https://github.com/NextThought/sphinxcontrib-programoutput/issues/%s', - 'issue #'), + 'issue #%s'), 'pr': ('https://github.com/NextThought/sphinxcontrib-programoutput/pull/%s', - 'pull request #') + 'pull request #%s') } def setup(app):