ci: switch to linkchecker (#410)

This commit is contained in:
Robert Kaussow 2022-05-18 18:21:11 +02:00 committed by GitHub
parent 512968329c
commit cb68d35c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -29,7 +29,7 @@ steps:
image: thegeeklab/hugo:0.97.3 image: thegeeklab/hugo:0.97.3
commands: commands:
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc - mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
- hugo --panicOnWarning -s exampleSite/ -b http://localhost/ - hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
- name: html-validation - name: html-validation
image: thegeeklab/vnu image: thegeeklab/vnu
@ -39,7 +39,7 @@ steps:
- name: link-validation - name: link-validation
image: thegeeklab/link-validator image: thegeeklab/link-validator
commands: commands:
- link-validator -ro --exclude "https://github.com/thegeeklab/hugo-geekdoc/edit/main/*" - link-validator --nice --external --skip-file .linkcheckignore
environment: environment:
LINK_VALIDATOR_BASE_DIR: exampleSite/public LINK_VALIDATOR_BASE_DIR: exampleSite/public
@ -284,6 +284,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 78d66315bf7cbdff3c4400545f9a4fb7958d9b7c4b254dec24abe3f53326ab87 hmac: b78e05487435826d7285f2cd03cad603315861af89131f8f9d87ccd85cc3ca4f
... ...

2
.linkcheckignore Normal file
View File

@ -0,0 +1,2 @@
.*/fonts/KaTeX_.*.ttf
https://github.com/thegeeklab/hugo-geekdoc/edit/main/.*

View File

@ -144,7 +144,7 @@ clean:
rm -rf $(BASEDIR)/public rm -rf $(BASEDIR)/public
``` ```
This Makefile can be used in your `netlify.toml`, take a look at the Netlify [example](https://docs.netlify.com/configure-builds/file-based-configuration/#sample-file) for more information: This Makefile can be used in your `netlify.toml`, take a look at the Netlify [example](https://docs.netlify.com/configure-builds/file-based-configuration/#sample-netlify-toml-file) for more information:
```toml ```toml
[build] [build]