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:
parent
19520825bb
commit
337e34739f
4 changed files with 27 additions and 9 deletions
13
.browserslistrc
Normal file
13
.browserslistrc
Normal 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
|
7
.hintrc
7
.hintrc
|
@ -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": [
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -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
7
lychee.toml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
insecure = true
|
||||||
|
method = "get"
|
||||||
|
exclude = [
|
||||||
|
"^gemini://.*",
|
||||||
|
"mailto:.*",
|
||||||
|
"git@git.*",
|
||||||
|
]
|
Loading…
Reference in a new issue