8000 Run linkcheck on doc build. · matplotlib/matplotlib@7616f8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7616f8e

Browse files
committed
Run linkcheck on doc build.
1 parent fc413b3 commit 7616f8e

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

.circleci/config.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,13 @@ mpl-run: &mpl-install
7575

7676
doc-run: &doc-build
7777
name: Build documentation
78-
command: |
79-
make html O=-T
80-
rm -r build/html/_sources
81-
working_directory: doc
78+
command: make -Cdoc html O=-T
8279

8380
doc-bundle-run: &doc-bundle
8481
name: Bundle sphinx-gallery documentation artifacts
85-
command: tar cf doc/build/sphinx-gallery-files.tar.gz doc/api/_as_gen doc/gallery doc/tutorials
82+
command: |
83+
rm -r doc/build/html/_sources
84+
tar cf doc/build/sphinx-gallery-files.tar.gz doc/api/_as_gen doc/gallery doc/tutorials
8685
when: always
8786

8887

@@ -159,6 +158,9 @@ jobs:
159158
- run: *mpl-install
160159

161160
- run: *doc-build
161+
- run:
162+
name: "linkcheck"
163+
command: make -Cdoc linkcheck
162164

163165
- run: *doc-bundle
164166
- store_artifacts:

doc/devel/release_guide.rst

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,7 @@ In both cases step 3 will have to be un-done right after the release.
9797

9898
Finally, make sure that the docs build cleanly ::
9999

100-
make -Cdoc O=-j$(nproc) html latexpdf
101-
102-
After the docs are built, check that all of the links, internal and external, are still
103-
valid. We use ``linkchecker`` for this, which has not been ported to python3 yet. You will
104-
need to create a python2 environment with ``requests==2.9.0`` and linkchecker ::
105-
106-
conda create -p /tmp/lnkchk python=2 requests==2.9.0
107-
source activate /tmp/lnkchk
108-
pip install linkchecker
109-
pushd doc/build/html
110-
linkchecker index.html --check-extern
111-
popd
112-
113-
Address any issues which may arise. The internal links are checked on travis, this should only
114-
flag failed external links.
100+
make -Cdoc O=-j$(nproc) html latexpdf linkcheck
115101

116102
.. _release_tag:
117103

0 commit comments

Comments
 (0)
0