1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

Make feedvalidator run offline

This is possible thanks to a feedvalidator bug being fixed:
<d4ee1132eb>
This commit is contained in:
Rohan Kumar 2023-11-17 15:25:31 -08:00
parent 02635dab8e
commit 66c4c62888
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 10 additions and 10 deletions

View file

@ -87,8 +87,17 @@ hint: hugo .hintrc-local
html-validate:
pnpm -s dlx html-validate --ext=html -c linter-configs/htmlvalidate.json $(OUTPUT_DIR)
.validate-feed-main:
scripts/bin/validate-feed file://$(PWD)/$(OUTPUT_DIR)/atom.xml
.validate-feed-posts:
scripts/bin/validate-feed file://$(PWD)/$(OUTPUT_DIR)/posts/atom.xml
.validate-feed-notes:
scripts/bin/validate-feed file://$(PWD)/$(OUTPUT_DIR)/notes/atom.xml
validate-feeds: .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: validate-feeds .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: lint-local
lint-local: html-validate validate-html validate-json lint-css htmlproofer
lint-local: html-validate validate-html validate-json lint-css htmlproofer validate-feeds
# dev server, includes future and draft posts
.PHONY: serve

View file

@ -42,15 +42,6 @@ axe-ff:
.PHONY: axe axe-ff
.validate-feed-main:
scripts/bin/validate-feed $(HUGO_BASEURL)atom.xml
.validate-feed-posts:
scripts/bin/validate-feed $(HUGO_BASEURL)posts/atom.xml
.validate-feed-notes:
scripts/bin/validate-feed $(HUGO_BASEURL)notes/atom.xml
validate-feeds: .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: validate-feeds .validate-feed-main .validate-feed-posts .validate-feed-notes
.PHONY: all-extra
all-extra: axe-ff validate-json equal-access htmlproofer lint-css validate-feeds