ci: switch to linkchecker (#246)

pull/248/head
Robert Kaussow 3 months ago committed by GitHub
parent 9f2be9e741
commit 6da6ced08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .drone.yml
  2. 2
      .linkcheckignore
  3. 4
      exampleSite/content/posts/usage/getting-started.md
  4. 6
      layouts/partials/head/favicons.html

@ -29,7 +29,7 @@ steps:
image: thegeeklab/hugo:0.97.3
commands:
- 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
image: thegeeklab/vnu
@ -39,7 +39,7 @@ steps:
- name: link-validation
image: thegeeklab/link-validator
commands:
- link-validator -ro
- link-validator --nice --external --skip-file .linkcheckignore
environment:
LINK_VALIDATOR_BASE_DIR: exampleSite/public
@ -285,6 +285,6 @@ depends_on:
---
kind: signature
hmac: ce5c4b48ef6ba2d81c094a1db7da5361a6e11859abac77c751a87cd588563dfa
hmac: 3e780b3be08ae7123cf388b2f513f528966b7774a32d1e8ed7d70831efc709fe
...

@ -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).
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
baseURL = "http://localhost"
@ -190,7 +190,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]

@ -1,10 +1,4 @@
<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
rel="icon"
type="image/png"

Loading…
Cancel
Save