8000 GitHub - bitcoinix/bitcoinix.net: Official bitcoinix.net website files. · GitHub
[go: up one dir, main page]

Skip to content

Repository files navigation

bitcoinix.net

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.

Checks and deployment

Run the checks before opening a pull request:

nix flake check

They check the site as it is published (nix build builds it into result/):

  • html: HTML and CSS validity, with the Nu Html Checker
  • links: that links and resources on the site point to published files, with lychee, offline
  • javascript: 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 links

The 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.

Security

See SECURITY.md.

0