Page MenuHomePhabricator

(ERROR/3) Undefined substitution referenced:
Closed, ResolvedPublic

Description

Sphinx provides three default substitutions |release|, |version| and |today|
see: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#default-substitutions

but their usage fails with (ERROR/3) Undefined substitution referenced:"release"
see: https://integration.wikimedia.org/ci/job/pywikibot-core-tox-doc-docker/14497/console

See also: https://stackoverflow.com/questions/41269319/why-the-substitution-version-is-not-working-on-sphinx

As found out in https://github.com/sphinx-doc/sphinx/issues/9045 this is a rstcheck issue

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as Medium priority.Apr 2 2021, 7:19 PM

Change 676659 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [WIP] (Bug: T279179)

https://gerrit.wikimedia.org/r/676659

Change 676659 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [doc] Use predefined substitutions

https://gerrit.wikimedia.org/r/676659

Xqt claimed this task.

Change 676659 merged by jenkins-bot:

[pywikibot/core@master] [doc] Use predefined substitutions

https://gerrit.wikimedia.org/r/676659