Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
52ee213
Update messages.pot as of version cc488ec
github-actions[bot] Aug 26, 2021
0ef3d3f
Merge branch 'pypa:main' into main
dukecat0 Aug 27, 2021
e6fe0b6
Update messages.pot as of version 0ef3d3f
github-actions[bot] Aug 27, 2021
99c992f
Add linkcheck session
dukecat0 Aug 27, 2021
91cb166
Merge branch 'linkcheck' of https://github.com/meowmeowmeowcat/packag…
dukecat0 Aug 27, 2021
e80e570
Add linkcheck session
dukecat0 Aug 27, 2021
609ebd7
Ignore `check/`
dukecat0 Aug 27, 2021
74df8b1
Reuse the dir used by other session
dukecat0 Aug 27, 2021
44b0017
Revoke changes
dukecat0 Aug 27, 2021
9df2f58
Revoke changes
dukecat0 Aug 27, 2021
25f60d8
Put the output in `build/`
dukecat0 Aug 28, 2021
3137527
Merge branch 'main' into linkcheck
dukecat0 Aug 28, 2021
931f5a4
Merge branch 'main' into linkcheck
webknjaz Aug 28, 2021
78207dd
Use the same options as other sessions
dukecat0 Aug 28, 2021
834c801
Add a step for linkcheck
dukecat0 Aug 29, 2021
a1c5395
Move `linkcheck` to new workflow
dukecat0 Aug 29, 2021
cdf6955
Add a new line
dukecat0 Aug 29, 2021
01190e5
Rename `build` to `check`
dukecat0 Aug 29, 2021
d384faf
Ignore a link in linkcheck
dukecat0 Aug 29, 2021
c3269d6
Use matrix
dukecat0 Aug 30, 2021
13340c3
Delete linkcheck.yml
dukecat0 Aug 30, 2021
d84c721
Use regular expression
dukecat0 Aug 30, 2021
dbe51ac
Clean up
dukecat0 Aug 30, 2021
f9f6cf3
Merge branch 'main' into linkcheck
dukecat0 Aug 30, 2021
8e7e3f7
FIx syntax error
dukecat0 Aug 30, 2021
48a7e5b
Update .github/workflows/test.yml
webknjaz Aug 30, 2021
13b3beb
Update .github/workflows/test.yml
webknjaz Aug 30, 2021
e5307b5
Update .github/workflows/test.yml
webknjaz Aug 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on: [push, pull_request]

jobs:
build:
name: ${{ matrix.noxenv }}
runs-on: ubuntu-latest
Comment thread
webknjaz marked this conversation as resolved.
strategy:
matrix:
noxenv:
- build
- linkcheck

steps:
- uses: actions/checkout@v2
Expand All @@ -27,6 +33,6 @@ jobs:
run: |
python -m pip install --upgrade nox virtualenv

- name: Nox build
- name: Nox ${{ matrix.noxenv }}
run: |
python -m nox -s build
python -m nox -s ${{ matrix.noxenv }}
13 changes: 13 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ def build(session, autobuild=False):
def preview(session):
session.install("sphinx-autobuild")
build(session, autobuild=True)


@nox.session(py="3")
def linkcheck(session):
Comment thread
dukecat0 marked this conversation as resolved.
session.install("-r", "requirements.txt")
session.run(
"sphinx-build",
"-b", "linkcheck", # use linkcheck builder
Comment thread
dukecat0 marked this conversation as resolved.
"--color",
"-n", "-W", "--keep-going", # be strict
"source", # where the rst files are located
"build", # where to put the check output
)
4 changes: 4 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
}

linkcheck_ignore = [
"http://localhost:\d+",
]

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
Expand Down