mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 22:10:39 +00:00
ci: switch to linkchecker (#246)
This commit is contained in:
parent
9f2be9e741
commit
6da6ced08d
@ -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-geekblog
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekblog
|
||||||
- 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
|
- link-validator --nice --external --skip-file .linkcheckignore
|
||||||
environment:
|
environment:
|
||||||
LINK_VALIDATOR_BASE_DIR: exampleSite/public
|
LINK_VALIDATOR_BASE_DIR: exampleSite/public
|
||||||
|
|
||||||
@ -285,6 +285,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: ce5c4b48ef6ba2d81c094a1db7da5361a6e11859abac77c751a87cd588563dfa
|
hmac: 3e780b3be08ae7123cf388b2f513f528966b7774a32d1e8ed7d70831efc709fe
|
||||||
|
|
||||||
...
|
...
|
||||||
|
2
.linkcheckignore
Normal file
2
.linkcheckignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.*/fonts/KaTeX_.*.ttf
|
||||||
|
https://github.com/thegeeklab/hugo-geekdoc/edit/main/.*
|
@ -66,7 +66,7 @@ To prepare your new site environment just a few steps are required:
|
|||||||
|
|
||||||
3. Install the Geekblog theme from a [release bundle](#option-1-download-pre-build-release-bundle) (recommended) or form [Git branch](#option-2-clone-the-github-repository).
|
3. Install the Geekblog theme from a [release bundle](#option-1-download-pre-build-release-bundle) (recommended) or form [Git branch](#option-2-clone-the-github-repository).
|
||||||
|
|
||||||
4. Create the minimal required Hugo configuration `config.toml`. For all configuration options see [here](#configuration).
|
4. Create the minimal required Hugo configuration `config.toml`. For all configuration options see [here](/posts/usage/configuration/#site-configuration).
|
||||||
|
|
||||||
```Toml
|
```Toml
|
||||||
baseURL = "http://localhost"
|
baseURL = "http://localhost"
|
||||||
@ -190,7 +190,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]
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}" />
|
<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}" />
|
||||||
<link
|
|
||||||
rel="icon"
|
|
||||||
type="image/png"
|
|
||||||
sizes="48x48"
|
|
||||||
href="{{ "favicon/favicon-32x32.png" | relURL }}"
|
|
||||||
/>
|
|
||||||
<link
|
<link
|
||||||
rel="icon"
|
rel="icon"
|
||||||
type="image/png"
|
type="image/png"
|
||||||
|
Loading…
Reference in New Issue
Block a user