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

Move link-checking and browserslist out of hintrc

- Use lychee for link-checking
- Move browserslist to own file
This commit is contained in:
rohan kumar 2020-12-14 22:12:06 -08:00
parent 19520825bb
commit 337e34739f
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
4 changed files with 27 additions and 9 deletions

13
.browserslistrc Normal file
View file

@ -0,0 +1,13 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# You can see what browsers were selected by your queries by running:
# npx browserslist
> 0.1%
last 5 versions
Firefox ESR
not dead
dead
IE 9-11

View file

@ -9,17 +9,10 @@
"browser": "Chromium" "browser": "Chromium"
} }
}, },
"browserslist": [
">0%",
"last 8 versions",
"not dead",
"dead"
],
"hints": { "hints": {
"axe/other": "error", "axe/other": "error",
"https-only": "error", "https-only": "error",
"doctype": "error", "doctype": "error",
"no-broken-links": "error",
"performance-budget": "error", "performance-budget": "error",
"compat-api/css": "error", "compat-api/css": "error",
"compat-api/html": [ "compat-api/html": [

View file

@ -7,7 +7,7 @@ GEMINI_ROOT = /srv/gemini/seirdy.one
WWW_RSYNC_DEST = $(USER):$(WWW_ROOT) WWW_RSYNC_DEST = $(USER):$(WWW_ROOT)
GEMINI_RSYNC_DEST = $(USER):$(GEMINI_ROOT) GEMINI_RSYNC_DEST = $(USER):$(GEMINI_ROOT)
OUTPUT_DIR = public/ OUTPUT_DIR = public
RSYNCFLAGS += -rlvz --zc=zstd RSYNCFLAGS += -rlvz --zc=zstd
@ -26,6 +26,11 @@ lint-css:
lint: lint-css build .hintrc-local lint: lint-css build .hintrc-local
hint --config .hintrc-local -f codeframe $(OUTPUT_DIR) hint --config .hintrc-local -f codeframe $(OUTPUT_DIR)
check-links: build
lychee --verbose $(find public -type f -name '*.html' -o -name '*.gmi' -o -name '*.txt')
test: lint
hugo: hugo:
hugo hugo
@ -45,4 +50,4 @@ deploy: build
all: clean lint deploy all: clean lint deploy
.PHONY: clean lint-css lint build deploy all .PHONY: clean lint-css test lint build deploy all

7
lychee.toml Normal file
View file

@ -0,0 +1,7 @@
insecure = true
method = "get"
exclude = [
"^gemini://.*",
"mailto:.*",
"git@git.*",
]