Skip to content

chore(docs): publish the CLI sidebar with the command spec - #7745

Merged
mdonnalley merged 5 commits into
developfrom
mdonnalley/2670
Nov 23, 2026
Merged

mdonnalley merged 5 commits into
developfrom
mdonnalley/2670

Conversation

@mdonnalley

Copy link
Copy Markdown
Contributor

Generate the CLI sidebar in the docs publisher and include it with the command spec in the same stable release PR. A sidebar-only change can open a release PR. Local previews write both files, and the release PR no longer asks maintainers to copy the sidebar by hand.

The one-time sidebar catch-up and redirect are in supabase/supabase#53749.

CLI-3175

@mdonnalley
mdonnalley marked this pull request as ready for review November 20, 2026 17:37
@mdonnalley
mdonnalley requested a review from a team as a code owner November 20, 2026 17:37
@github-actions

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 89f79ef against develop at 682b588 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 205 ms 210 ms no real change
supabase --help help 245 ms 231 ms no real change (-6%, within normal variation)
supabase init init 244 ms 239 ms no real change
supabase migration new bench migration-new 239 ms 237 ms no real change
supabase config convert config-convert 249 ms 244 ms no real change
supabase config validate config-validate 304 ms 319 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 304 ms 330 ms no real change (+9%, within normal variation)
supabase projects list projects-list 291 ms 294 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 270 ms 252 ms no real change (-7%, within normal variation)

API calls: unchanged for all 9 commands.

Binary size: 135.5 MB, unchanged.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 178-219 ms 188-275 ms +5 ms (+3%) within noise
supabase --help help 219-372 ms 217-350 ms -14 ms (-6%) within noise
supabase init init 215-281 ms 215-275 ms -5 ms (-2%) within noise
supabase migration new bench migration-new 219-315 ms 219-279 ms -2 ms (-1%) within noise
supabase config convert config-convert 235-316 ms 226-263 ms -5 ms (-2%) within noise
supabase config validate config-validate 284-474 ms 254-422 ms +15 ms (+5%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 267-416 ms 267-427 ms +26 ms (+9%) within noise
supabase projects list projects-list 210-340 ms 261-375 ms +3 ms (+1%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 204-362 ms 216-269 ms -18 ms (-7%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase config convert config-convert 0 0
supabase config validate config-validate 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

@github-actions github-actions 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.

🤖 AI Review

CLI reference prose guidance: not applicable (no reference sources changed).

Verified both reviews and merged the duplicate finding about manual sidebar fixes. The publisher can overwrite those fixes on open reference PRs, and custom layouts without the default sidebar directory now fail. Local previews can leave the two files out of sync after a write failure or replace the YAML with JSON when both destinations refer to the same file. The README also omits what remains on disk after a formatting failure. The supplied next context showed no conflict, and the CLI reference prose check was not applicable. End-to-end tests were not run because workspace dependencies are absent.

Findings

Severity Location Category Sources Claim
🟠 MAJOR apps/cli/scripts/publish-docs-spec.ts:49 compatibility codex Custom publishing and preview layouts that previously needed only the configured spec directory now fail if they lack the default sidebar directory.
🟠 MAJOR apps/cli/scripts/publish-docs-spec.ts:120 data-loss claude+codex A later release can overwrite manual sidebar fixes committed to an open reference PR under the previous publishing instructions.
🟡 MINOR apps/cli/scripts/publish-docs-spec.ts:120 error-handling codex If the sidebar write fails, --local leaves the checkout with the new YAML spec and a sidebar that may be stale or incomplete.
🟡 MINOR apps/cli/scripts/publish-docs-spec.ts:55 filesystem codex The same-path guard misses symlink aliases, so a local preview can replace the YAML with sidebar JSON and still report success.
⚪ NIT apps/cli/docs/README.md:61 documentation claude The local preview instructions omit that a YAML formatting failure can leave the spec already overwritten and the sidebar unchanged.

Stats

Claude findings: 2 · Codex findings: 4 · Confirmed: 5 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

Comment thread apps/cli/scripts/publish-docs-spec.ts Resolved
Comment thread apps/cli/scripts/publish-docs-spec.ts Resolved
Comment thread apps/cli/scripts/publish-docs-spec.ts Resolved
Comment thread apps/cli/scripts/publish-docs-spec.ts Resolved
Comment thread apps/cli/docs/README.md Resolved
Comment thread apps/cli/docs/README.md Resolved

@Prashansa-K Prashansa-K 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.

Changes look good to me.
One suggestion added as a comment, but it is non-blocking.

@mdonnalley
mdonnalley enabled auto-merge November 23, 2026 16:12
@mdonnalley
mdonnalley added this pull request to the merge queue Nov 23, 2026
Merged via the queue into develop with commit c02030a Nov 23, 2026
46 checks passed
@mdonnalley
mdonnalley deleted the mdonnalley/2670 branch November 23, 2026 16:20
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.

2 participants