Skip to content

docs(deployment): close end-to-end gaps + scrub AI-isms - #62

Merged
agjs merged 1 commit into
mainfrom
docs/deployment-completeness
May 30, 2026
Merged

docs(deployment): close end-to-end gaps + scrub AI-isms#62
agjs merged 1 commit into
mainfrom
docs/deployment-completeness

Conversation

@agjs

@agjs agjs commented May 30, 2026

Copy link
Copy Markdown
Contributor

First PR in the docs-rewrite program (plan). Closes the five completeness gaps on `deployment.mdx` the user flagged, plus an aggressive scrub of project-specific AI-flavoured vocabulary.

Completeness

  1. Step 3a (tofu): full `terraform.tfvars.tpl` template inline with `op://` references for every required variable, plus the `op inject` render command. Reader no longer has to open the example file in another tab and guess which lines to fill.
  2. Step 3b (manual): full `compose/.env.tpl` and `api.prod.env.tpl` templates inline. Page previously referenced an `.env.production` file that doesn't exist in the repo (real files are `compose/.env` and `api.prod.env`).
  3. Rollback: explicit `gh run list --workflow=apps-api-release.yml` example for finding the previous SHA, plus the GHCR pkgs URL fallback.
  4. Verify: per-check failure-mode paragraph for each of the three curls. Operator hitting a 525 or a Cloudflare-issued cert now knows exactly which container logs to read.
  5. Post-deploy chores: each bullet has concrete steps inline (or a specific runbook anchor that already has them), not a topic-page link that itself is a tour.

AI-ism scrub

Pattern Before After
em dashes (`—`) 16 0
"source of truth" 1 0
"load-bearing", "out of the box", "guardrails", "mental model", "first-class", "battle-tested", "blast radius", "opinionated", "primitives" various 0
Tier-1 AI words (leverage, robust, seamless, delve, etc.) 0 0

Remaining "Let's" hits are all "Let's Encrypt" (proper-noun ACME CA), not the banned "Let's [verb]" construction.

Test plan

  • `apps/docs` builds (67 pages clean)
  • Banned-phrase grep counts pass per plan
  • Pre-push smoke gate green
  • Manual read: a reader following the page end-to-end reaches a working deploy without needing to stitch together other pages

Two changes in one pass.

Completeness:

  1. Step 3a (tofu): full terraform.tfvars.tpl template inline with
     op:// references for every required variable, plus the `op inject`
     render command. Reader no longer has to open the example file
     in another tab and guess which lines to fill.
  2. Step 3b (manual): full compose/.env.tpl and api.prod.env.tpl
     templates inline. Previously the page said "edit .env.production
     with op:// refs" without showing what one looks like, and
     referenced an .env.production file that doesn't actually exist
     in the repo (the real files are compose/.env and api.prod.env).
  3. Rollback: explicit `gh run list --workflow=apps-api-release.yml`
     example for finding the previous SHA, plus the GHCR pkgs URL
     fallback.
  4. Verify section: per-check failure-mode paragraph for each of
     the three curls. Operator hits a 525 or a Cloudflare-issued
     cert and now knows exactly which container logs to read.
  5. Post-deploy chores: each bullet has concrete steps inline (or a
     specific runbook anchor that already has them), not a topic-page
     link that itself is a tour.

AI-ism scrub (per plan):

  - 16 em dashes removed; replaced with periods, commas, or rewritten
    sentences. Final em-dash count: 0.
  - "Single source of truth" rewritten ("Stores every secret below").
  - Project banned phrases all at 0: load-bearing, out of the box,
    guardrails, mental model, first-class, battle-tested, blast
    radius, opinionated, primitives.
  - "Let's" hits remaining are all "Let's Encrypt" (the proper-noun
    ACME CA), not the banned "Let's [verb]" construction.
  - Tier-1 AI words (leverage, robust, seamless, delve, etc.): 0.

Docs build clean (67 pages).
@agjs
agjs enabled auto-merge (squash) May 30, 2026 12:26
@agjs
agjs merged commit f6e61c2 into main May 30, 2026
24 checks passed
@agjs
agjs deleted the docs/deployment-completeness branch May 30, 2026 12:28
agjs added a commit that referenced this pull request May 30, 2026
)

After PR #62 closed the five completeness gaps, the user pointed out
the rendered hero still looked busy: inline `code` fragments in the
PageIntro prose plus a right-rail facts grid plus action buttons,
stacked above the page content. The hero alone had four different
visual frames.

The new visual rule: plain markdown by default. Custom components only
when they add genuine comprehension value. The one exception kept on
this page is the `<Aside type="caution">` for the MFA encryption key
warning, which is a stop-and-read critical caveat.

Removed:
  - `<PageIntro>` with eyebrow + facts grid + action buttons + body.
    Replaced with two plain paragraphs under the frontmatter title.
  - All three `<CommandRun>` blocks. Replaced with fenced ```bash
    blocks. The content is the same; the frame is gone.
  - The decimal-numbered subsection convention (2.1, 2.2, ...). Plain
    `### Section name` headings; the body still reads in the same
    order without the extra hierarchy.

Also fixed an out-of-order step in the manual provision path. The old
sequence had the operator scp env files into /opt/boringstack/ then
git-clone into the same path, which would fail. New sequence: clone
first (so the target directory exists), then scp the env files in,
then bring the stack up.

All six pre-merge greps pass:
  - em dashes: 0
  - banned phrases: 0
  - "Let's [verb]": 5 hits, all "Let's Encrypt" the proper noun
  - Tier-1 AI words: 0
  - decorative components: 0
  - component imports: 0

Docs build clean (67 pages).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant