Add link checker and upgrade Hugo version (#115)
Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
parent
a989391f83
commit
0e37222193
|
@ -10,3 +10,7 @@ themes/
|
|||
|
||||
# ignore generated data
|
||||
data/progress_generated.yaml
|
||||
|
||||
# Link checker
|
||||
bin/
|
||||
tmp/
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
DirectoryPath: public
|
||||
IgnoreDirectoryMissingTrailingSlash: true
|
||||
CheckExternal: false
|
||||
IgnoreAltMissing: true
|
16
Makefile
16
Makefile
|
@ -1,3 +1,6 @@
|
|||
clean:
|
||||
rm -rf public
|
||||
|
||||
setup:
|
||||
npm install
|
||||
|
||||
|
@ -10,10 +13,23 @@ preview-build: get-milestones
|
|||
hugo \
|
||||
--baseURL $(DEPLOY_PRIME_URL) \
|
||||
--minify
|
||||
make ci-link-check
|
||||
|
||||
production-build: get-milestones
|
||||
hugo \
|
||||
--minify
|
||||
make ci-link-check
|
||||
|
||||
get-milestones: setup
|
||||
node -r esm ./scripts/fetchMilestones.js
|
||||
|
||||
build:
|
||||
hugo --minify
|
||||
|
||||
link-checker-setup:
|
||||
curl https://raw.githubusercontent.com/wjdp/htmltest/master/godownloader.sh | bash
|
||||
|
||||
run-link-checker:
|
||||
bin/htmltest
|
||||
|
||||
ci-link-check: link-checker-setup run-link-checker
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
{{ $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" $fontAwesomeVersion }}
|
||||
|
||||
@charset "utf-8"
|
||||
@import url({{ $fontsUrl }})
|
||||
@import url({{ $fontAwesomeUrl }})
|
||||
@import url("{{ $fontsUrl }}")
|
||||
@import url("{{ $fontAwesomeUrl }}")
|
||||
|
||||
@import "variables"
|
||||
@import "bulma/sass/utilities/initial-variables"
|
||||
|
|
|
@ -28,6 +28,6 @@
|
|||
<meta name="twitter:creator" content="@OpenTelemetry">
|
||||
<meta name="twitter:image" content="{{ $image }}">
|
||||
|
||||
<link rel="canonical" content="{{ .Permalink }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="shortcut icon" href="{{ $favicon }}" type="image/png">
|
||||
{{ hugo.Generator }}
|
||||
|
|
|
@ -3,7 +3,7 @@ publish = "public"
|
|||
command = "make production-build"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.55.3"
|
||||
HUGO_VERSION = "0.65.3"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "make preview-build"
|
||||
|
|
Loading…
Reference in New Issue