Snapshot of https://codeberg.org/notplants/infrastructures.us; full Git branches and tags, copied 2026-09-06.
README.md

infrastructures.us #

This repo contains two websites:

Source Site Served at
src/ Solidarity Infrastructures main site (Lichen-Markdown) infrastructures.us, infra.commoninternet.net
solidarity.commoninternet.net/ Tutorials book (mdbook) solidarity.commoninternet.net

See lichen-readme.md for general Lichen-Markdown documentation (the CMS the main site is built with).

Requirements #

php (main site), mdbook (tutorials book). With nix, nix develop provides both, plus python with the dependencies used by the helper scripts in scripts/.

Building and serving locally #

Main site:

cd src
php -S 127.0.0.1:8000 cms/router.php    # serve at http://127.0.0.1:8000
                                        # admin interface at /cms/edit.php
php cms/build.php                       # or: build static site into src/dist

Tutorials book:

cd solidarity.commoninternet.net
mdbook serve                            # serve at http://localhost:3000
mdbook build                            # or: build static site into book/

Deploying #

./deploy.sh             # build both sites, commit, push
./deploy.sh --no-push   # build and commit only

Each built site is committed as a single squashed snapshot and force-pushed. git-pages only deploys a branch named pages, so the two sites deploy via two repos:

  • main site -> pages branch of this repo
  • tutorials book -> pages branch of the soli-mdbook repo (built locally as the solidarity-pages branch here)

Both sites are hosted by Codeberg Pages (git-pages). Pushing to a pages branch fires a Forgejo webhook (Settings -> Webhooks on the repo that owns the branch, one webhook per domain, branch filter pages), which triggers git-pages to deploy it to the webhook's target URL. Note: the webhook "Test delivery" button always fails by design — only real pushes deploy.

Each domain needs DNS records pointing at Codeberg Pages:

  • CNAME to codeberg.page. (or A/AAAA records for apex domains)
  • TXT on _git-pages-repository.<domain> containing the repo that owns the domain's pages branch: https://codeberg.org/notplants/infrastructures.us.git for the main site, https://codeberg.org/notplants/soli-mdbook.git for the tutorials book

See the custom domain docs for details.