Skip to content

Commit

Permalink
ci: replace vnu html validator by html-validate (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Jan 7, 2024
1 parent c396971 commit e11f0c8
Show file tree
Hide file tree
Showing 8 changed files with 315 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .htmlvalidate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["html-validate:standard"],
"rules": {
"element-required-content": "off",
"element-permitted-content": "off",
"no-raw-characters": "off"
}
}
3 changes: 2 additions & 1 deletion .tarignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
.prettier*
.eslintrc*
.chglog
.vnuignore
.htmlvalidate*
.lycheeignore*
example*
webpack*
svgsprite*
Expand Down
2 changes: 0 additions & 2 deletions .vnuignore

This file was deleted.

9 changes: 6 additions & 3 deletions .woodpecker/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
image: docker.io/library/node:lts
commands:
- npm install --quiet --no-progress
- npm run lint
- npm run lint:js
environment:
FORCE_COLOR: "true"

Expand All @@ -29,10 +29,13 @@ steps:
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/

- name: html-validation
image: quay.io/thegeeklab/vnu
image: docker.io/library/node:lts
group: test
commands:
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
- npm install --quiet --no-progress
- npm run lint:html
environment:
FORCE_COLOR: "true"

- name: link-validation
image: docker.io/lycheeverse/lychee
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/menu-bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<svg class="gdoc-icon {{ .icon }}"><use xlink:href="#{{ .icon }}"></use></svg>
{{ end }}
<a
href="{{ if .external }}
href="{{ if .external -}}
{{ .ref }}
{{- else -}}
{{ path.Join $this.RelPermalink $anchor }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/menu-extra.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
{{ if eq $target "header" }}
<span>
<a
href="{{ if .external }}
href="{{ if .external -}}
{{ .ref }}
{{ else }}
{{- else -}}
{{ relref $current .ref }}
{{ end }}"
{{- end }}"
class="gdoc-header__link"
>
<svg class="gdoc-icon {{ .icon }}">
Expand Down

0 comments on commit e11f0c8

Please sign in to comment.