Skip to content

docs(cli): make integration-authoring guide discoverable via astryx docs - #4114

Merged
josephfarina merged 1 commit into
mainfrom
docs/integrations-cli-topic
Jul 21, 2026
Merged

josephfarina merged 1 commit into
mainfrom
docs/integrations-cli-topic

Conversation

@josephfarina

@josephfarina josephfarina commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

What

Credit: this is not written from scratch. The integrations guide was originally authored by @ejhammond (packages/cli/docs/integration-authoring.md). This PR converts his guide into a proper CLI docs topic and extends it — it does not replace his work. EJ is credited on the changeset and as a Co-authored-by on the commit.

EJ's guide was never reachable from the CLI — astryx docs only loads *.doc.mjs files, so plain markdown in that directory is invisible to both the CLI and the docsite. This converts it into a real docs topic and reframes the surrounding README docs.

Docs topic (the guide)

  • New cli-integrations topic (packages/cli/docs/cli-integrations.doc.mjs). Served by astryx docs cli-integrations, section-addressable (astryx docs cli-integrations "How It Works"), searchable (astryx search integration), and auto-listed on the docsite via the generated registry — no extra wiring. Named with the cli- prefix since it's a top-level docs item.
  • Ports EJ's content faithfully and fixes the import paths to the canonical @astryxdesign/core/authoring (his original used the pre-move @astryxdesign/cli/* paths, which still work but are back-compat re-exports now).
  • Adds the two sections the original was missing: Codemods (with the honest note that createCodemod/createConfigCodemod live in @astryxdesign/cli/codemod, not core/authoring) and How It Works (single schema boundary, resilient discovery, validate-integration/doctor).
  • Removes the unreachable integration-authoring.md (its content now lives in the topic).

CLI README (the reference)

  • Rewrites the stale ## Configuration section — it documented a templates.get field that no longer exists in the strict config schema — into the real astryx.config field reference.
  • Reframes ## Integrations from a guide into reference: what integrations are and what you'd use them for, the astryx.integration manifest field table, and a "How it works" mechanics section. The step-by-step authoring walkthrough stays in the topic, not the README — the README points at astryx docs cli-integrations for it.

Why

Discoverability, plus a clean split of concerns. The one integrations doc that existed couldn't be found through the tool it documents. The README now codifies the two-file API (astryx.config + astryx.integration) as reference; the CLI topic holds the authoring guide. Minimal duplication.

Note on git mv: the markdown → structured .doc.mjs rewrite is well under git's rename-similarity threshold, so git won't link it as a rename regardless of how the file is moved. Authorship is preserved through explicit credit (changeset + Co-authored-by) rather than a rename.

Verification

  • astryx docs, astryx docs cli-integrations, astryx docs cli-integrations "How It Works", astryx search integration — all serve/find the topic; the old integrations slug correctly 404s.
  • apps/docsite/scripts/generate-data.mjs picks it up with no errors; it lands in the generated docs registry.
  • packages/cli/src/commands/docs.test.mjs + docs.test.mjs API tests pass.
  • All pre-commit gates pass (sync, package boundaries, changesets).

Changeset included (@astryxdesign/cli patch), crediting @ejhammond and @josephfarina.

@vercel

vercel Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 21, 2026 12:28am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 20, 2026
@josephfarina
josephfarina force-pushed the docs/integrations-cli-topic branch from 2f5d560 to 249d10f Compare July 20, 2026 21:29
@github-actions

github-actions Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.7KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@josephfarina
josephfarina marked this pull request as draft July 20, 2026 21:33
github-actions Bot added a commit that referenced this pull request Jul 20, 2026
@josephfarina
josephfarina force-pushed the docs/integrations-cli-topic branch from 249d10f to 939f529 Compare July 20, 2026 23:52
github-actions Bot added a commit that referenced this pull request Jul 20, 2026
Convert the standalone integration-authoring.md into a cli-integrations
CLI docs topic (cli-integrations.doc.mjs) so it is served by `astryx docs
cli-integrations`, section-addressable, searchable, and auto-listed on the
docsite. The markdown file was unreachable from any command.

The guide content was originally authored by EJ Hammond; this reworks it
into the structured doc format, updates imports to the canonical
@astryxdesign/core/authoring paths, and adds Codemods and How It Works
sections. Also rewrites the CLI README Configuration section to match the
current strict config schema and reframes the Integrations section around
the two-file API (astryx.config + astryx.integration) as reference, linking
to the topic for the full authoring walkthrough.

Co-authored-by: EJ Hammond <[email protected]>
@josephfarina
josephfarina force-pushed the docs/integrations-cli-topic branch from 939f529 to 69e8644 Compare July 21, 2026 00:25
github-actions Bot added a commit that referenced this pull request Jul 21, 2026
@josephfarina
josephfarina marked this pull request as ready for review July 21, 2026 00:32
@josephfarina
josephfarina merged commit 8effb32 into main Jul 21, 2026
22 checks passed
josephfarina added a commit that referenced this pull request Jul 21, 2026
Picked up via merge of main (#4114 added this doc after this branch forked).
The id gate correctly flagged it; adding ids brings it into compliance.

Co-authored-by: Cursor <[email protected]>
@github-actions
github-actions Bot deleted the docs/integrations-cli-topic branch July 21, 2026 06:55

This branch was successfully deployed

1 active deployment
Preview — 69e86448 Deployed Jul 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant