Skip to content

Commit

Permalink
Merge pull request #3 from ru-fu/add-linkcheck
Browse files Browse the repository at this point in the history
add a link checking action
  • Loading branch information
ru-fu authored Mar 3, 2023
2 parents 1bc483f + e085735 commit cae1768
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Link check

on:
- push
- pull_request

jobs:
linkcheck:
name: Check links
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install the doc framework
run: |
make install
- name: Run linkchecker
run: |
make linkcheck
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ clean-doc:
spelling: html
. $(VENV) ; python3 -m pyspelling -c .sphinx/spellingcheck.yaml

linkcheck:
. $(VENV) ; $(SPHINXBUILD) -c . -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)"

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
Expand Down
4 changes: 4 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@

exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.sphinx']

# Links to ignore when checking links

linkcheck_ignore = [
'http://127.0.0.1:8000'
]

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down

0 comments on commit cae1768

Please sign in to comment.