Skip to content

Commit 6da6ced

Browse files
authored
ci: switch to linkchecker (thegeeklab#246)
1 parent 9f2be9e commit 6da6ced

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ steps:
2929
image: thegeeklab/hugo:0.97.3
3030
commands:
3131
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekblog
32-
- hugo --panicOnWarning -s exampleSite/ -b http://localhost/
32+
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
3333

3434
- name: html-validation
3535
image: thegeeklab/vnu
@@ -39,7 +39,7 @@ steps:
3939
- name: link-validation
4040
image: thegeeklab/link-validator
4141
commands:
42-
- link-validator -ro
42+
- link-validator --nice --external --skip-file .linkcheckignore
4343
environment:
4444
LINK_VALIDATOR_BASE_DIR: exampleSite/public
4545

@@ -285,6 +285,6 @@ depends_on:
285285

286286
---
287287
kind: signature
288-
hmac: ce5c4b48ef6ba2d81c094a1db7da5361a6e11859abac77c751a87cd588563dfa
288+
hmac: 3e780b3be08ae7123cf388b2f513f528966b7774a32d1e8ed7d70831efc709fe
289289

290290
...

.linkcheckignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.*/fonts/KaTeX_.*.ttf
2+
https://github.com/thegeeklab/hugo-geekdoc/edit/main/.*

exampleSite/content/posts/usage/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ To prepare your new site environment just a few steps are required:
6666

6767
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).
6868

69-
4. Create the minimal required Hugo configuration `config.toml`. For all configuration options see [here](#configuration).
69+
4. Create the minimal required Hugo configuration `config.toml`. For all configuration options see [here](/posts/usage/configuration/#site-configuration).
7070

7171
```Toml
7272
baseURL = "http://localhost"
@@ -190,7 +190,7 @@ clean:
190190
rm -rf $(BASEDIR)/public
191191
```
192192

193-
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:
193+
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:
194194

195195
```toml
196196
[build]

layouts/partials/head/favicons.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}" />
2-
<link
3-
rel="icon"
4-
type="image/png"
5-
sizes="48x48"
6-
href="{{ "favicon/favicon-32x32.png" | relURL }}"
7-
/>
82
<link
93
rel="icon"
104
type="image/png"

0 commit comments

Comments
 (0)