This repository contains the files for the official bitcoinix.net website, served by GitHub Pages.
The site is static HTML without a build step and without third-party resources. Its only external request is to the GitHub API, for the latest release number.
| File | Purpose |
|---|---|
index.html, style.css |
The page |
release.js |
Shows the latest release in the footer (optional; the page works without it) |
og-image.png |
Social media preview image (1200×630) |
robots.txt, sitemap.xml |
Search engine hints |
.well-known/security.txt |
Security contact (RFC 9116). Update Expires before it passes. |
.nojekyll |
Turns off Jekyll, so .well-known/ is published. Only needed while Pages deploys from the branch |
flake.nix, ci/ |
The checks, see below |
The Content Security Policy is set in a <meta> tag in index.html.
If you add a resource from another origin, add the origin to the policy.
Run the checks before opening a pull request:
nix flake checkThey check the site as it is published (nix build builds it into result/):
html: HTML and CSS validity, with the Nu Html Checkerlinks: that links and resources on the site point to published files, with lychee, offlinejavascript: JavaScript syntax
The checks don't cover the Content Security Policy. After changing the page, open it in a browser and look for blocked resources in the console.
Everything in the repository is published except the files excluded by
siteFiles in flake.nix (this README, the checks, CNAME, ...). Add a
new file that must not be published there.
Two checks depend on the current date or on other sites, so they run as apps, weekly in CI:
nix run .#security-txt-expiry # fails 30 days before security.txt expires
nix run .#link-check # checks the external linksThe workflow runs the checks on every pull
request and push. A push to main is deployed to GitHub Pages only after the
checks pass, and the workflow then checks that the site serves the checked
files.