Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@
# RFC 9116 §3 requires security.txt to be served as text/plain with charset utf-8.
/.well-known/security.txt
Content-Type: text/plain; charset=utf-8

# Uptime probe: Blackbox fetches /offgrid every minute and expects "runner".
# A small fixed file, so the check does not change when pages are edited, and
# an exact body match proves this site answered rather than a parked page or
# an error page. Typed and uncached so every probe reaches the asset store.
/offgrid
Content-Type: text/plain; charset=utf-8
Cache-Control: no-cache, max-age=0, must-revalidate
X-Robots-Tag: noindex
1 change: 1 addition & 0 deletions offgrid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
runner
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"repository": "https://github.com/privacykey/docs-privacycommand",
"scripts": {
"dev": "npx --yes mint dev",
"build": "rm -rf dist export.zip && npx --yes mint@latest export && mkdir -p dist && (unzip -q -o export.zip -d dist || python3 -m zipfile -e export.zip dist) && cp .assetsignore dist/.assetsignore && cp _headers dist/_headers && mkdir -p dist/.well-known && cp -R .well-known/. dist/.well-known/ && node scripts/build-llms.mjs --dist dist",
"build": "rm -rf dist export.zip && npx --yes mint@latest export && mkdir -p dist && (unzip -q -o export.zip -d dist || python3 -m zipfile -e export.zip dist) && cp .assetsignore dist/.assetsignore && cp _headers dist/_headers && cp offgrid dist/offgrid && mkdir -p dist/.well-known && cp -R .well-known/. dist/.well-known/ && node scripts/build-llms.mjs --dist dist",
"check": "node scripts/check-docs.mjs && node scripts/build-llms.mjs --check",
"llms": "node scripts/build-llms.mjs",
"linkcheck": "lychee --no-progress --accept-timeouts --accept '100..=103,200..=299,429' --root-dir \"$PWD\" --scheme https --scheme http --exclude-loopback --exclude 'localhost' --exclude 'dash\\.cloudflare\\.com' --exclude 'docs\\.([a-z0-9-]+\\.)?privacykey\\.org' --exclude-path images --exclude-path .github './**/*.mdx' './**/*.md'"
Expand Down
Loading