diff --git a/README.md b/README.md
index 64b6aea..62f03df 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,17 @@ npm run test:e2e # Playwright end-to-end tests against the production build
SSH commit signing through the host agent). It follows the gitops-reverser devcontainer; see
[`.devcontainer/README.md`](.devcontainer/README.md).
+## GitOps Reverser docs
+
+`/reverser` renders Markdown from the [gitops-reverser](https://github.com/ConfigButler/gitops-reverser)
+submodule at build time, unedited. The operator repo is the single source of truth; fix content there.
+
+- Which files get a route: `docs` in [`src/lib/reverser.ts`](src/lib/reverser.ts). Links to any
+ other file open on GitHub at the pinned commit.
+- Clone with `--recurse-submodules`, or run `git submodule update --init`. The build fails without it.
+
+To move to a new release, see [gitops-reverser submodule](#gitops-reverser-submodule).
+
## Container image
[`.github/workflows/image.yml`](.github/workflows/image.yml) builds the site into an nginx image
@@ -56,8 +67,11 @@ To move to a new gitops-reverser release:
git -C external/gitops-reverser fetch --tags
git -C external/gitops-reverser checkout vX.Y.Z
git diff --submodule=log # what changed upstream since the last pin
+npm run reverser:pin # records the commit in src/lib/reverser-pin.json (for builds without .git)
+npm run build # prebuild fails if the pin and the submodule disagree
# review whether docs or concepts the site relies on changed, then:
-git add external/gitops-reverser && git commit -m "chore: Bump gitops-reverser to vX.Y.Z"
+git add external/gitops-reverser src/lib/reverser-pin.json
+git commit -m "chore: Bump gitops-reverser to vX.Y.Z"
```
## Structure
diff --git a/astro.config.mjs b/astro.config.mjs
index eaf2e24..843f4c0 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -3,4 +3,6 @@ import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
site: 'https://configbutler.ai',
+ // Listen on all interfaces: "localhost" can bind ::1 only, which the devcontainer port forward misses.
+ server: { host: true },
});
diff --git a/external/gitops-reverser b/external/gitops-reverser
index 2686da2..e09a9f5 160000
--- a/external/gitops-reverser
+++ b/external/gitops-reverser
@@ -1 +1 @@
-Subproject commit 2686da2698792e7af8bb29c8d37a4df641e77357
+Subproject commit e09a9f5987bb53b4587a88327a5fe286e7ba5660
diff --git a/package-lock.json b/package-lock.json
index 046cb7a..66edf68 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,7 @@
"name": "simple-astro-website",
"version": "0.0.1",
"dependencies": {
+ "@astrojs/markdown-remark": "^7.2.0",
"astro": "^6.4.8"
},
"devDependencies": {
diff --git a/package.json b/package.json
index 703de6d..70ad509 100644
--- a/package.json
+++ b/package.json
@@ -5,12 +5,15 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
+ "prebuild": "node scripts/reverser-pin.mjs check",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
+ "reverser:pin": "node scripts/reverser-pin.mjs write",
"test:e2e": "playwright test"
},
"dependencies": {
+ "@astrojs/markdown-remark": "^7.2.0",
"astro": "^6.4.8"
},
"devDependencies": {
diff --git a/public/llms.txt b/public/llms.txt
index 3e953c9..f51ed53 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -13,6 +13,7 @@ partnerships are available; contact runs through the about page.
- [For Applications](https://configbutler.ai/applications/): Give an application a typed configuration API without building and operating a configuration backend yourself.
- [For GitOps](https://configbutler.ai/gitops/): A realtime API in front of an existing Git repository, where writes become reviewable pull requests and existing workflows are preserved.
- [Technology](https://configbutler.ai/technology/): Architecture — a managed Kubernetes-style control plane as operational truth, synchronized to a customer-owned Git repository.
+- [GitOps Reverser](https://configbutler.ai/reverser/): The open-source Kubernetes operator that turns cluster activity into YAML commits. Its README, quick start, and configuration guide, rendered from the operator repository.
- [Open source](https://configbutler.ai/open-source/): The work developed in public — GitOps Reverser, KRM Stream, and the Reverse GitOps operating model.
- [About](https://configbutler.ai/about/): The company, the founder, and how to get in touch.
diff --git a/scripts/reverser-pin.mjs b/scripts/reverser-pin.mjs
new file mode 100644
index 0000000..f362275
--- /dev/null
+++ b/scripts/reverser-pin.mjs
@@ -0,0 +1,42 @@
+// The submodule is the pin; src/lib/reverser-pin.json carries it into builds without .git (Docker).
+// node scripts/reverser-pin.mjs write record the submodule's current commit
+// node scripts/reverser-pin.mjs check fail if the submodule is missing or disagrees (prebuild)
+import { execFileSync } from 'node:child_process';
+import { existsSync, readFileSync, writeFileSync } from 'node:fs';
+
+const dir = 'external/gitops-reverser';
+const file = 'src/lib/reverser-pin.json';
+const git = (...args) => execFileSync('git', ['-C', dir, ...args], { encoding: 'utf8' }).trim();
+
+if (!existsSync(`${dir}/README.md`)) {
+ console.error(`${dir} is empty. Run: git submodule update --init`);
+ process.exit(1);
+}
+
+const mode = process.argv[2];
+let sha;
+try {
+ sha = git('rev-parse', 'HEAD');
+} catch {
+ if (mode === 'check') {
+ console.log('reverser-pin: no git metadata, trusting', file);
+ process.exit(0);
+ }
+ throw new Error('reverser-pin: cannot read the submodule commit');
+}
+
+if (mode === 'write') {
+ let tag = null;
+ try { tag = git('describe', '--tags', '--exact-match', 'HEAD'); } catch {}
+ writeFileSync(file, JSON.stringify({ sha, tag }, null, '\t') + '\n');
+ console.log(`reverser-pin: ${tag ?? sha}`);
+} else if (mode === 'check') {
+ const pin = JSON.parse(readFileSync(file, 'utf8'));
+ if (pin.sha !== sha) {
+ console.error(`reverser-pin: ${file} has ${pin.sha}, submodule is at ${sha}. Run: npm run reverser:pin`);
+ process.exit(1);
+ }
+} else {
+ console.error('usage: reverser-pin.mjs write|check');
+ process.exit(2);
+}
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 4354137..461c4c5 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -33,7 +33,7 @@ const year = 2026;