File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,13 @@ on: [push, pull_request]
44
55jobs :
66 build :
7+ name : ${{ matrix.noxenv }}
78 runs-on : ubuntu-latest
9+ strategy :
10+ matrix :
11+ noxenv :
12+ - build
13+ - linkcheck
814
915 steps :
1016 - uses : actions/checkout@v2
2733 run : |
2834 python -m pip install --upgrade nox virtualenv
2935
30- - name : Nox build
36+ - name : Nox ${{ matrix.noxenv }}
3137 run : |
32- python -m nox -s build
38+ python -m nox -s ${{ matrix.noxenv }}
Original file line number Diff line number Diff line change @@ -52,3 +52,16 @@ def build(session, autobuild=False):
5252def preview (session ):
5353 session .install ("sphinx-autobuild" )
5454 build (session , autobuild = True )
55+
56+
57+ @nox .session (py = "3" )
58+ def linkcheck (session ):
59+ session .install ("-r" , "requirements.txt" )
60+ session .run (
61+ "sphinx-build" ,
62+ "-b" , "linkcheck" , # use linkcheck builder
63+ "--color" ,
64+ "-n" , "-W" , "--keep-going" , # be strict
65+ "source" , # where the rst files are located
66+ "build" , # where to put the check output
67+ )
Original file line number Diff line number Diff line change 381381 'user' : (f'{ github_sponsors_url } /%s' , '@' ), # noqa: WPS323
382382}
383383
384+ linkcheck_ignore = [
385+ "http://localhost:\d+" ,
386+ ]
387+
384388# Example configuration for intersphinx: refer to the Python standard library.
385389intersphinx_mapping = {
386390 'python' : ('https://docs.python.org/3' , None ),
You can’t perform that action at this time.
0 commit comments