Skip to content

docs: comprehensive documentation audit with fixes#851

Draft
cursor[bot] wants to merge 2 commits intomainfrom
cursor/sentry-cli-documentation-audit-5646
Draft

docs: comprehensive documentation audit with fixes#851
cursor[bot] wants to merge 2 commits intomainfrom
cursor/sentry-cli-documentation-audit-5646

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented Apr 27, 2026

Documentation Audit Report

Full cross-reference of the Sentry CLI implementation code against all documentation surfaces. The audit read every command implementation, route map, distribution script, auth/config module, and plugin/skills system, then compared against README.md, DEVELOPMENT.md, the Astro doc site, and hand-written fragments.

Changes Made

Self-hosted docs (docs/src/content/docs/self-hosted.md):

  • Added SENTRY_CUSTOM_HEADERS section for proxy/IAP configuration
  • Added .sentryclirc config file section for self-hosted setups
  • Added multi-region behavior note (disabled for self-hosted)
  • Added token precedence section (SENTRY_FORCE_ENV_TOKEN)
  • Added SENTRY_FORCE_ENV_TOKEN and SENTRY_CUSTOM_HEADERS to env var table

Environment variable registry (src/lib/env-registry.ts):

  • Added SENTRY_RELEASE — used by sentry release propose-version as the highest-priority version source, but was missing from the auto-generated configuration page

Command doc fragments:

  • release.md: Added bash examples for release delete (with --yes, --dry-run) and release deploys
  • event.md: Added full "Listing Events" section with examples for event list (query, full, period, pagination, JSON)

Version accuracy (README.md, DEVELOPMENT.md, contributing.md):

  • Fixed Bun minimum version: v1.0+v1.3+ (matches packageManager: bun@1.3.13)
  • Fixed Node.js version: ≥22≥22.12 (matches engines.node)
  • Added test:unit, test:e2e, generate:docs to README scripts section
  • Added .sentryclirc mention to README Configuration section

Platform support (docs/src/content/docs/getting-started.mdx):

  • Added supported platforms table (macOS x64/arm64, Linux x64/arm64 glibc/musl, Windows x64 via Git Bash)
  • Added Alpine Linux/musl note
  • Documented SENTRY_INSTALL_DIR env var for custom install paths

DEVELOPMENT.md:

  • Added SENTRY_CONFIG_DIR to env table
  • Added link to generated configuration page for complete env var reference

Full Gap Report

The complete structured gap report is included as DOCUMENTATION_AUDIT.md at the repo root. It covers:

  • A. Undocumented commands/subcommands
  • B. Undocumented flags
  • C. Missing usage examples
  • D. Stale descriptions
  • E. Missing route mappings in skill generator (none — auto-generated)
  • F. Installation/distribution gaps
  • G. Undocumented environment variables
  • H. Auth/self-hosted gaps
  • I. Plugin/skills gaps
  • J. README/DEVELOPMENT.md drift

Top 5 Most Impactful Fixes (all addressed in this PR)

  1. SENTRY_CUSTOM_HEADERS in self-hosted docs — blocks real deployments behind proxies
  2. SENTRY_RELEASE in env registry — CI users can't discover this version override
  3. Missing bash examples for release delete/deploys and event list
  4. Bun/Node version claims — wrong minimums cause contributor build failures
  5. Platform support documentation — Windows and Alpine users have no guidance
Open in Web View Automation 

cursoragent and others added 2 commits April 27, 2026 12:12
Audit findings and fixes:
- Add SENTRY_CUSTOM_HEADERS, proxy/IAP config, .sentryclirc, multi-region,
  and token precedence sections to self-hosted docs
- Add SENTRY_RELEASE to env-registry (used by propose-version but undocumented)
- Add missing bash examples for release delete, release deploys, and event list
- Fix Bun version claims: v1.0+ → v1.3+ (matches packageManager field)
- Fix Node.js version: ≥22 → ≥22.12 (matches engines.node)
- Add platform/architecture support table to getting-started (macOS, Linux
  glibc/musl, Windows via Git Bash)
- Document SENTRY_INSTALL_DIR in getting-started
- Add SENTRY_CONFIG_DIR to DEVELOPMENT.md env table with link to full reference
- Add test:unit, test:e2e, generate:docs to README scripts section
- Add .sentryclirc mention to README Configuration section
- Include full gap report as DOCUMENTATION_AUDIT.md

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-851/

Built to branch gh-pages at 2026-04-27 12:13 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

Codecov Results 📊

6007 passed | Total: 6007 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 12882 uncovered lines.
✅ Project coverage is 75.6%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    75.56%    75.60%    +0.04%
==========================================
  Files          286       286         —
  Lines        52814     52793       -21
  Branches         0         0         —
==========================================
+ Hits         39906     39911        +5
- Misses       12908     12882       -26
- Partials         0         0         —

Generated by Codecov Action

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