Skip to content

Commit

Permalink
Use mkdocs' builtin link checking
Browse files Browse the repository at this point in the history
  • Loading branch information
waylan committed Oct 1, 2024
1 parent 06c211b commit 0b5e80e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 26 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
tox-env: [flake8, pep517check, checkspelling]
tox-env: [flake8, pep517check, checklinks, checkspelling]

env:
TOXENV: ${{ matrix.tox-env }}
Expand Down
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ nav:
not_in_nav: |
change_log/
validation:
omitted_files: warn
absolute_links: warn
unrecognized_links: warn
anchors: warn

markdown_extensions:
- extra
- admonition
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ testing = [
'pyyaml'
]
docs = [
'mkdocs>=1.5',
'mkdocs>=1.6',
'mkdocs-nature>=0.6',
'mdx_gh_links>=0.2',
"mkdocstrings[python]",
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ skip_install = true
extras = docs
deps = pyspelling
commands =
{envpython} -m mkdocs build --strict --config-file {toxinidir}/mkdocs.yml
{envpython} -m mkdocs build --config-file {toxinidir}/mkdocs.yml
{envpython} -m pyspelling --config {toxinidir}/.pyspelling.yml

[testenv:checklinks]
whitelist_externals = markdown-link-check
extras = docs
deps =
commands = {toxinidir}/checklinks.sh
commands = {envpython} -m mkdocs build --strict --config-file {toxinidir}/mkdocs.yml

[testenv:pep517check]
deps = pep517
Expand Down

0 comments on commit 0b5e80e

Please sign in to comment.