Skip to content
Merged
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
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Semantic Version: v0.0.3
# Semantic Version: v0.0.4
.PHONY: all build audit test contrast validate seo compress prune clean help

all: build
Expand Down Expand Up @@ -27,6 +27,12 @@ build:
@echo alienstudio.com > docs/CNAME
@# ssg's build caches and sidecars are not part of the site.
@rm -rf docs/.meta docs/.ssg docs/.ssg-cache docs/.ssg-plugin-cache.json
@# Cloudflare applies _headers, and ssg's CSP there allows only 'self'
@# scripts. This zone injects Cloudflare's inline bot-detection script
@# into every page, so that policy blocks it and each page logs a CSP
@# error (a Lighthouse Best Practices failure). Ship without it; the
@# pages' meta CSP, which allows it, stays in force (ssg plan F46).
@rm -f docs/_headers

audit: contrast validate seo
@if pa11y-ci --version >/dev/null 2>&1; then \
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ assets (`wrangler.jsonc`, `.github/workflows/deploy-cloudflare.yml`):
- a push to `main` deploys production at alienstudio.com.

`worker/notFound.js` answers unknown paths with the 404 page and a 404
status, and `docs/_headers` (written by ssg) adds the security headers.
status. ssg's `_headers` is not published: Cloudflare injects an inline
bot-detection script that its CSP would block, so each page's meta CSP
governs.
CI fails when the ssg pin is not the latest release or did not build
`docs/` (`scripts/check-ssg-pin.py`), and runs axe-core on every page.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4
76 changes: 0 additions & 76 deletions docs/_headers

This file was deleted.