Skip to content

Commit 30c1f18

Browse files
ned-deilyMaciej OlkoErlend Egeberg Aasland
authored
[3.9] bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-29230) (GH-29241)
Co-authored-by: Maciej Olko <maciej.olko@yougov.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
1 parent 269bf56 commit 30c1f18

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.azure-pipelines/docs-steps.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ steps:
1212
inputs:
1313
versionSpec: '>=3.6'
1414

15-
- script: python -m pip install sphinx==2.2.0 blurb python-docs-theme
15+
- script: python -m pip install -r requirements.txt
16+
workingDirectory: '$(build.sourcesDirectory)/Doc'
1617
displayName: 'Install build dependencies'
1718

1819
- ${{ if ne(parameters.latex, 'true') }}:
19-
- script: make check suspicious html PYTHON=python
20+
- script: make check html PYTHON=python
2021
workingDirectory: '$(build.sourcesDirectory)/Doc'
2122
displayName: 'Build documentation'
2223

@@ -31,7 +32,7 @@ steps:
3132
- ${{ if eq(parameters.upload, 'true') }}:
3233
- task: PublishBuildArtifacts@1
3334
displayName: 'Publish docs'
34-
35+
3536
inputs:
3637
PathToPublish: '$(build.sourcesDirectory)/Doc/build'
3738
ArtifactName: docs

Doc/requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# won't suddenly cause build failures. Updating the version is fine as long
55
# as no warnings are raised by doing so.
66
sphinx==2.4.4
7+
# Docutils version is pinned to a version compatible with Sphinx
8+
# version 2.4.4. It can be removed after bumping Sphinx version to at
9+
# least 3.5.4.
10+
docutils==0.17.1
711

812
blurb
913

0 commit comments

Comments
 (0)