diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..f86b9cb --- /dev/null +++ b/.browserslistrc @@ -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 diff --git a/.hintrc b/.hintrc index a8a6e61..d4847c6 100644 --- a/.hintrc +++ b/.hintrc @@ -9,17 +9,10 @@ "browser": "Chromium" } }, - "browserslist": [ - ">0%", - "last 8 versions", - "not dead", - "dead" - ], "hints": { "axe/other": "error", "https-only": "error", "doctype": "error", - "no-broken-links": "error", "performance-budget": "error", "compat-api/css": "error", "compat-api/html": [ diff --git a/Makefile b/Makefile index c28ac09..148ded4 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ GEMINI_ROOT = /srv/gemini/seirdy.one WWW_RSYNC_DEST = $(USER):$(WWW_ROOT) GEMINI_RSYNC_DEST = $(USER):$(GEMINI_ROOT) -OUTPUT_DIR = public/ +OUTPUT_DIR = public RSYNCFLAGS += -rlvz --zc=zstd @@ -26,6 +26,11 @@ lint-css: lint: lint-css build .hintrc-local 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 @@ -45,4 +50,4 @@ deploy: build all: clean lint deploy -.PHONY: clean lint-css lint build deploy all +.PHONY: clean lint-css test lint build deploy all diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 0000000..88e64e6 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,7 @@ +insecure = true +method = "get" +exclude = [ + "^gemini://.*", + "mailto:.*", + "git@git.*", +]