mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-24 13:50:40 +00:00
ci: switch to linkchecker (#410)
This commit is contained in:
parent
512968329c
commit
cb68d35c24
@ -29,7 +29,7 @@ steps:
|
||||
image: thegeeklab/hugo:0.97.3
|
||||
commands:
|
||||
- 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
|
||||
image: thegeeklab/vnu
|
||||
@ -39,7 +39,7 @@ steps:
|
||||
- name: link-validation
|
||||
image: thegeeklab/link-validator
|
||||
commands:
|
||||
- link-validator -ro --exclude "https://github.com/thegeeklab/hugo-geekdoc/edit/main/*"
|
||||
- link-validator --nice --external --skip-file .linkcheckignore
|
||||
environment:
|
||||
LINK_VALIDATOR_BASE_DIR: exampleSite/public
|
||||
|
||||
@ -284,6 +284,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 78d66315bf7cbdff3c4400545f9a4fb7958d9b7c4b254dec24abe3f53326ab87
|
||||
hmac: b78e05487435826d7285f2cd03cad603315861af89131f8f9d87ccd85cc3ca4f
|
||||
|
||||
...
|
||||
|
2
.linkcheckignore
Normal file
2
.linkcheckignore
Normal file
@ -0,0 +1,2 @@
|
||||
.*/fonts/KaTeX_.*.ttf
|
||||
https://github.com/thegeeklab/hugo-geekdoc/edit/main/.*
|
@ -144,7 +144,7 @@ clean:
|
||||
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
|
||||
[build]
|
||||
|
Loading…
Reference in New Issue
Block a user