| index 7c6458f..5d2d13f 100644 |
| --- a/docs/planet-scale-guide/README.html |
| +++ b/docs/planet-scale-guide/README.html |
| @@ -60,26 +60,18 @@ open docs/planet-scale-guide/index.html # macOS; or any static file s |
| <h2 id="authorship">Authorship marking</h2> |
| <p>Per the repository’s authorship convention (<code>CLAUDE.md</code>), these pages were written by an LLM and carry the visible 🤖 marker in each page’s eyebrow. A human who substantially rewrites a page should remove the marker from that page (or add a person marker to certify it); an LLM editing further keeps it.</p> |
| |
| -<h2 id="publishing">Publishing to home.elevenmessenger.com and elevenmessenger.com</h2> |
| -<p>The guide is reachable in two places, and this directory is the only source for both — nothing is ever hand-copied or edited in place at the destination:</p> |
| -<ul> |
| - <li><strong><code>home.elevenmessenger.com/infrastructure/</code></strong> — served straight from disk by the home server (<code>home/main.go</code>’s <code>serveInfrastructure</code>). A deploy step <code>scp -r</code>s this directory onto the box and sets <code>LCHAT_HOME_INFRASTRUCTURE_DIR</code>; see <code>home/README.md</code> § Optional: serving the planet-scale guide.</li> |
| - <li><strong><code>elevenmessenger.com/infrastructure/</code></strong> — mirrored automatically into the public <code>elevenmessenger/website</code> repo (a separate, Eleventy-built static site) by <code>.github/workflows/sync-guide-to-website.yml</code>: any push to <code>main</code> that touches this directory copies it into that repo’s <code>src/infrastructure/</code> (Eleventy passthrough-copies it unmodified — see its <code>.eleventy.js</code>) and pushes, which triggers that repo’s own existing deploy workflow. No manual step, and no separate copy of the guide to keep in sync by hand.</li> |
| -</ul> |
| -<div class="warn"> |
| - <span class="label">One-time setup: the website repo token</span> |
| - <p>The sync workflow needs write access to the public <code>elevenmessenger/website</code> repo, granted via a fine-grained GitHub personal access token stored as a secret in <strong>this</strong> repo (<code>messenger</code>), named <code>WEBSITE_REPO_TOKEN</code>. To create it:</p> |
| - <ol class="procedure"> |
| - <li><p class="step-title">Mint the token.</p> |
| - <p>GitHub → profile photo → <strong>Settings</strong> → <strong>Developer settings</strong> → <strong>Personal access tokens</strong> → <strong>Fine-grained tokens</strong> → <strong>Generate new token</strong>. Set <strong>Resource owner</strong> to the <code>elevenmessenger</code> organization, <strong>Repository access</strong> to <strong>Only select repositories</strong> → <code>elevenmessenger/website</code> (and no other repository), and under <strong>Permissions → Repository permissions</strong> set <strong>Contents</strong> to <strong>Read and write</strong> — leave every other permission at its default (No access). Give it an expiration and a name that says what it’s for (e.g. “messenger guide sync”).</p></li> |
| - <li><p class="step-title">Add it as a secret on the <code>messenger</code> repo.</p> |
| - <p>On <code>github.com/elevenmessenger/messenger</code>: <strong>Settings</strong> → <strong>Secrets and variables</strong> → <strong>Actions</strong> → <strong>New repository secret</strong>. Name: <code>WEBSITE_REPO_TOKEN</code>. Value: the token from step 1.</p></li> |
| - <li><p class="step-title">Run the sync once by hand.</p> |
| - <p>Actions tab → <strong>Sync planet-scale guide to the website</strong> → <strong>Run workflow</strong> (it also has a <code>workflow_dispatch</code> trigger for exactly this) — seeds <code>website</code>’s <code>src/infrastructure/</code> for the first time. Every subsequent guide change on <code>main</code> syncs automatically.</p></li> |
| - </ol> |
| - <p>Until the secret is set, the workflow runs, logs a warning, and does nothing else — it never fails loudly and never risks a partial or broken sync.</p> |
| +<h2 id="publishing">Publishing to elevenmessenger.com</h2> |
| +<p>The guide is published to <code>elevenmessenger.com/infrastructure/</code>, and this directory is the only source — nothing is ever hand-edited at the destination. Publishing is a <strong>local build</strong>, no GitHub Actions involved, in two steps:</p> |
| +<ol class="procedure"> |
| + <li><p class="step-title">Mirror this directory into the website repo.</p> |
| + <p>Run <code>tools/sync-guide-to-website.sh <path-to-a-local-checkout-of-elevenmessenger/website></code>. It copies this directory into that separate, public repo’s <code>src/infrastructure/</code> (Eleventy passthrough-copies it to <code>/infrastructure/</code> unmodified — see that repo’s <code>.eleventy.js</code>), commits, and pushes the website’s <code>main</code>. It uses your own git credentials — no token to set up.</p></li> |
| + <li><p class="step-title">Build and publish the website.</p> |
| + <p>In that website checkout, run <code>./deploy.sh</code>: it builds the Eleventy site and force-pushes the output to the <code>gh-pages</code> branch, which GitHub Pages serves directly (deploy-from-a-branch). The custom domain and HTTPS ride along inside the build; live within about a minute. See the website repo’s <code>README.md</code> § Deploy.</p></li> |
| +</ol> |
| +<div class="why"> |
| + <span class="label">Why a local build, not a GitHub Action</span> |
| + <p>This used to be automatic: a push to <code>main</code> touching this directory triggered <code>.github/workflows/sync-guide-to-website.yml</code>, which synced and deployed through the website’s own workflow. Both are now <strong>disabled</strong> — the project moved off GitHub Actions entirely (every binary already builds locally, and Actions was only ever publishing this site). The workflow files are kept in their trees, disabled, as the record of that approach; re-enabling them and flipping the website’s Pages source back to workflow-build is how you would restore auto-publish. (An earlier second copy served at <code>home.elevenmessenger.com/infrastructure/</code> is being retired.)</p> |
| </div> |
| -<p><code>tools/sync-guide-to-website.sh <path-to-a-local-checkout-of-website></code> does the same copy-commit-push by hand, using your own git credentials instead of the token — useful when Actions can’t run (a billing/spending-limit block, say) or to try a guide change before merging it.</p> |
| |
| </div> |
| </main> |