Fix issue with Sphinx 6 and extlinks

This commit is contained in:
Simon Conseil
2023-01-02 17:24:08 +01:00
parent 0d70f3a1d0
commit 03418f5a90
4 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ sys.path.append(os.path.abspath('..'))
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.extlinks', 'alabaster']
extlinks = {'issue': ('https://github.com/saimn/sigal/issues/%s', '#')}
extlinks = {'issue': ('https://github.com/saimn/sigal/issues/%s', '#%s')}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

View File

@@ -8,5 +8,5 @@ explanations on the settings is available in ``sigal/templates/sigal.conf.py``
and is shown below. This file is copied to the current directory with the
``sigal init`` commmand.
.. literalinclude:: ../sigal/templates/sigal.conf.py
.. literalinclude:: ../src/sigal/templates/sigal.conf.py
:language: python

View File

@@ -37,7 +37,7 @@ need. See an example with the copyright plugin:
.. _blinker: http://pythonhosted.org/blinker/
.. literalinclude:: ../sigal/plugins/copyright.py
.. literalinclude:: ../src/sigal/plugins/copyright.py
:language: python
Signals

View File

@@ -40,7 +40,7 @@ install_requires =
[options.extras_require]
all = boto; brotli; feedgenerator; zopfli; cryptography
tests = pytest; pytest-cov
docs = Sphinx; alabaster; cryptography
docs = Sphinx>=4.1.0; alabaster; cryptography
[options.packages.find]
where = src