- Fork this repo
- Clone the repo
git clone git@github.com:YOUR_FORK_/docusaurus.git - Preview your changes as you edit:
- Unix or Mac: run
./run-local.sh - Windows (PowerShell): run
.\run-local.ps1 - Either one installs what's needed and starts a dev server that reloads as you save.
- Unix or Mac: run
- Commit your changes to
docs/(orsrc/,static/) and open a Pull Request (PR). Leavebuild/out of your PR: it's generated, and the check fails if a PR changes it. - Every PR is built and checked automatically (see the Checks tab): broken links, broken anchors, unfilled placeholders and bad Reticulum hashes fail the check.
- Once a PR is merged, GitHub Actions builds the site and commits
build/tomaster("Publish build for …"). The server pulls on GitHub's webhook and michmesh.com updates within a few minutes. Nobody needs to build or deploy by hand.
Every publish also builds the docs as NomadNet micron pages, at https://michmesh.com/micron.tgz. https://michmesh.com/version.txt changes with each publish, so a node can poll it to see when to download again. To host them, unpack the archive into a clean NomadNet storage/pages directory and restart the node so it picks up new pages. index.mu is the home page. Nothing in the archive is executable, and it has to stay that way: NomadNet runs executable pages as programs.
michmesh.com is served by nginx from build/ in a checkout of master on the server. The listener in webhooks/ runs git pull when GitHub reports a push, which is why build/ stays in git.
- Commit your changes to
docs/(orsrc/,static/) and open a Pull Request (PR). Don't commitbuild/; it's generated. - Once a PR is merged, GitHub Actions builds the site and commits
build/tomaster("Publish build for …"). The server pulls on GitHub's webhook and michmesh.com updates within a few minutes. Nobody needs to build or deploy by hand.
MichMesh.com is served by nginx from build/ in a checkout of master on the server. The listener in webhooks/ runs git pull when GitHub reports a push, which is why build/ stays in git.