Skip to content

Commit

Permalink
Add link checker and upgrade Hugo version (#115)
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <[email protected]>
  • Loading branch information
austinlparker authored Mar 5, 2020
1 parent a989391 commit 0e37222
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ themes/

# ignore generated data
data/progress_generated.yaml

# Link checker
bin/
tmp/
4 changes: 4 additions & 0 deletions .htmltest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DirectoryPath: public
IgnoreDirectoryMissingTrailingSlash: true
CheckExternal: false
IgnoreAltMissing: true
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
clean:
rm -rf public

setup:
npm install

Expand All @@ -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
4 changes: 2 additions & 2 deletions assets/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0e37222

Please sign in to comment.