Skip to content

docs: rebuild the EmDash front door - #3045

Merged
ascorbic merged 6 commits into
mainfrom
codex/docs-audit-pr-3
Sep 11, 2026
Merged

ascorbic merged 6 commits into
mainfrom
codex/docs-audit-pr-3

Conversation

@ascorbic

@ascorbic ascorbic commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Rebuilds the documentation front door around distinct reader goals:

  • a concise landing page with clear paths for evaluation, a new site, and an existing Astro site
  • a fair evaluation page that explains EmDash's editing model, deployment choices, responsibilities, and trade-offs
  • a tested Node.js Starter tutorial and a complete existing-project task guide
  • focused concepts for architecture, the content model, collections and fields, and the admin panel, including the exact destructive schema and field-retype boundaries
  • a permanent Astro redirect from the former Introduction URL to the canonical evaluation page

Depends on #3030. This PR is temporarily based on #3030 so its review diff contains only these documentation changes; it can be retargeted to main after #3030 merges.

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes — not run repository-wide; the docs build and focused create-emdash typecheck pass
  • pnpm lint passes — the repository's pre-existing type-aware baseline remains 125 diagnostics; pnpm lint:quick passes
  • pnpm test passes (or targeted tests for my change) — all 106 create-emdash tests pass
  • pnpm format has been run — the scoped docs files are excluded by the formatter; git diff --check passes
  • I have added/updated tests for my changes (if applicable) — not applicable to documentation-only changes; commands and examples were exercised directly
  • User-visible strings in the admin UI are wrapped for translation (if applicable). Do not include messages.po changes except in translation PRs — a workflow extracts catalogs on merge to main. — not applicable; no admin UI or catalog changes
  • I have added and reviewed the user-facing changeset (if this PR changes a published package) — not applicable; no published package changes
  • New features link to an approved Discussion: https://github.com/emdash-cms/emdash/discussions/... — not applicable; documentation only
  • I have included screenshots below if this PR changes the UI — not applicable; no product UI changes

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: GPT-5 Codex

Screenshots / test output

Screenshots are not applicable because this PR changes documentation content and navigation, not the product interface.

Validation completed:

  • pnpm lint:quick
  • pnpm --dir docs build
  • git diff --check
  • pnpm --filter create-emdash test (106 tests)
  • pnpm --filter create-emdash typecheck
  • clean node:starter scaffold, dependency install, build, default-seed setup, and homepage render
  • existing-project query example added to the clean scaffold and built successfully
  • internal link, redirect, anchor, and rendered-page checks

@changeset-bot

changeset-bot Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6dd51dd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
docs 6dd51dd Sep 11 2026, 07:00 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR rebuilds EmDash's documentation front door around clear reader goals: landing, evaluation, tutorials, and concepts. I reviewed it as a documentation-only change and spot-checked the technical claims against the implementation.

What I checked:

  • Node.js (>=22.16) and Astro (>=6.0.0-beta.0) version requirements against package.json engines/peerDependencies.
  • npm create emdash@latest ... --template node:starter --pm npm --yes against packages/create-emdash/src/flags.ts and packages/create-emdash/src/index.ts.
  • npx emdash secrets generate --write .env against packages/core/src/cli/commands/secrets.ts.
  • Admin route (/_emdash/admin/) and setup-wizard redirect against packages/core/src/astro/middleware/setup.ts and packages/core/src/astro/routes/admin.astro.
  • Local storage adapter shape and baseUrl against packages/core/src/storage/local.ts.
  • getEmDashCollection / getEmDashEntry return shapes and cacheHint usage against packages/core/src/query.ts and packages/core/src/loader.ts.
  • Field type list, indexable types, and reserved slugs against packages/core/src/schema/types.ts.
  • Schema change boundaries (in-place type changes among string/text/slug; migration required for required, unique, or translatable changes) against packages/core/src/schema/registry.ts.
  • The default seed applied when no user seed exists against packages/core/src/seed/default.ts.
  • Role/permission descriptions against packages/auth/src/rbac.ts.
  • The node:starter template content and seed against templates/starter/seed/seed.json and templates/starter/src/pages/index.astro.
  • All internal doc links resolve to existing pages in docs/src/content/docs/.
  • Redirect /introduction -> /why-emdash and sidebar config in docs/astro.config.mjs.

Headline conclusion: The approach is sound, the prose is technically accurate, and the new evaluation/tutorial/concept pages match the actual CLI, schema registry, and runtime behavior. I found no false claims, broken commands, inconsistent terminology, or missing prerequisites. The documentation is clean.

@github-actions github-actions Bot added review/approved Approved; no new commits since area/docs size/XL labels Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Scope check

This PR changes 1,786 lines across 10 files. Large PRs are harder to review and more likely to be closed without review.

If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs.

See CONTRIBUTING.md for contribution guidelines.

Comment on lines 16 to 30
```text
┌────────────────────────── Astro application ──────────────────────────┐
│ │
│ Admin panel Pages and components │
│ /_emdash/admin/ written by the site developer │
│ │ │ │
│ │ saves entries │ queries entries │
│ ▼ ▼ │
│ ┌────────────────────── EmDash runtime ───────────────────────────┐ │
│ │ Content model, publishing, queries, media, plugins, and API │ │
│ └───────────────────────┬──────────────────────┬──────────────────┘ │
│ │ │ │
│ SQL database Media storage │
└──────────────────────────────────────────────────────────────────────┘
```

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use ASCII art for diagrams

Base automatically changed from codex/docs-audit-pr-2 to main September 10, 2026 19:44
@ascorbic
ascorbic enabled auto-merge (squash) September 10, 2026 21:51
@pkg-pr-new

pkg-pr-new Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@3045

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@3045

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/@emdash-cms/auth-atproto@3045

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@3045

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@3045

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/contentful-to-portable-text@3045

emdash

npm i https://pkg.pr.new/emdash@3045

create-emdash

npm i https://pkg.pr.new/create-emdash@3045

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@3045

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@3045

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@3045

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@3045

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@3045

@emdash-cms/registry-moderation

npm i https://pkg.pr.new/@emdash-cms/registry-moderation@3045

@emdash-cms/registry-verification

npm i https://pkg.pr.new/@emdash-cms/registry-verification@3045

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@3045

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@3045

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@3045

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@3045

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@3045

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@3045

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@3045

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@3045

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@3045

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@3045

commit: 6dd51dd

Comment on lines +34 to 37
```bash
npm install emdash @astrojs/node @astrojs/react react react-dom
```

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove the package manager tabs here, because it depends on their site.

Comment thread docs/src/content/docs/why-emdash.mdx Outdated
Comment on lines +32 to +33
- The team wants the CMS and website in one application and deployment.
- The team can operate a database and media storage with the site.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than "the team" say "developers" or something like that

@github-actions github-actions Bot added review/needs-rereview New commits since the last review and removed review/approved Approved; no new commits since labels Sep 11, 2026
@ascorbic
ascorbic merged commit b989bb9 into main Sep 11, 2026
51 checks passed
@ascorbic
ascorbic deleted the codex/docs-audit-pr-3 branch September 11, 2026 07:35
danielmlr added a commit to danielmlr/emdash that referenced this pull request Sep 13, 2026
Resolves the conflict in concepts/collections.mdx by taking main's page:
emdash-cms#3045 rewrote it and removed the FieldValidation section our editor
paragraph sat under. The per-type editor behaviour stays documented in
reference/field-types.mdx.

Also picks up emdash-cms#2934, which fixed the publication-date label assertion
that failed E2E shard 2/8 on the previous head.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs review/needs-rereview New commits since the last review size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant