- JavaScript 46%
- PHP 28%
- CSS 11%
- Python 10%
- HTML 3%
- 2 more languages 2%
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 ->
pagesbranch of this repo - tutorials book ->
pagesbranch of thesoli-mdbookrepo (built locally as thesolidarity-pagesbranch 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:
CNAMEtocodeberg.page.(or A/AAAA records for apex domains)TXTon_git-pages-repository.<domain>containing the repo that owns the domain'spagesbranch:https://codeberg.org/notplants/infrastructures.us.gitfor the main site,https://codeberg.org/notplants/soli-mdbook.gitfor the tutorials book
See the custom domain docs for details.