]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docs: prevent build error by rolling back Sphinx version
authorDaniel Axtens <dja@axtens.net>
Mon, 23 Aug 2021 06:48:59 +0000 (16:48 +1000)
committerStephen Finucane <stephen@that.guru>
Mon, 23 Aug 2021 16:36:25 +0000 (17:36 +0100)
We're hitting a sphinxcontrib-httpdomain vs sphinx issue that was
causing the openapi part of doc builds to error out with:

<openapi>:1:Problem in http domain: field is supposed to use role 'obj', but that role is not in the domain.

See https://github.com/sphinx-contrib/httpdomain/pull/51

Until it's fixed, hold back the Sphinx version to < 4.1.0

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
docs/requirements.txt

index e2641c8fb996926ebf6803cc793a6bac9706a34e..b60bca53215fce3f21c1844877fcb9ea98f556ec 100644 (file)
@@ -1,4 +1,6 @@
-sphinx>=2.0
+# sphinx 4.1.x breaks sphinxcontrib-httpdomain which sphinxcontrib-openapi depends on
+# see https://github.com/sphinx-contrib/httpdomain/pull/51
+sphinx>=2.0,<4.1
 reno>=2.2
 sphinx_rtd_theme~=0.5.0
 jinja2~=2.11.2