refactor(tests): use `hyperlink` rather than `htmltest` for link checking

It's very fast, only checks internal links, and it's easy to use.
This commit is contained in:
Jeff Dairiki 2024-08-18 19:03:34 -07:00
parent 98c614ca0c
commit e7e029c04f
2 changed files with 3 additions and 6 deletions

View File

@ -39,12 +39,7 @@ jobs:
run: pdm run build
- name: Check for broken internal links
uses: wjdp/htmltest-action@master
with:
path: _htdocs
config: .htmltest.yml
skip_external: true
log_level: 1
run: pdm run check-links
- name: Deploy lektor website
if: env.DEPLOY == 'true'

View File

@ -35,3 +35,5 @@ _.env = {LEKTOR_OUTPUT_PATH = "_htdocs"}
build = "lektor build -f webpack"
server = "lektor server -f webpack"
deploy = "lektor deploy ghpages-https"
check-links = "npx --yes @untitaker/hyperlink@~0.1.32 --check-anchors _htdocs"