Skip to content

[docs] docs: consolidate token reference to reduce repetition#23311

Closed
github-actions[bot] wants to merge 1 commit intomainfrom
docs/unbloat-tokens-58ec9b4ea82293be
Closed

[docs] docs: consolidate token reference to reduce repetition#23311
github-actions[bot] wants to merge 1 commit intomainfrom
docs/unbloat-tokens-58ec9b4ea82293be

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

File improved

docs/src/content/docs/reference/tokens.md

What was removed

  • AI engine token sections merged: The three near-identical sections for ANTHROPIC_API_KEY, OPENAI_API_KEY, and GEMINI_API_KEY were combined into a single section with a compact comparison table. Each had the same property table structure (Source, Required, Permissions, Fallback, Used by) with trivially different values, plus an identical code snippet pattern. The merged section preserves all details including the CODEX_API_KEY fallback note for OpenAI.

  • Token Precedence Chains converted to table: Seven separate subsections, each containing a named pseudo-code block (e.g. getEffectiveGitHubToken()), were replaced with a single 7-row markdown table showing the resolution order for each context. The important note about GH_AW_GITHUB_MCP_SERVER_TOKEN being intentionally absent from the Safe Outputs chain is preserved.

Impact

  • Before: 467 lines
  • After: 372 lines
  • Reduction: 95 lines (~20.3%)
  • All technical details, links, warnings, and code examples preserved

Screenshots

Screenshots of the rendered documentation page were unavailable — the Playwright container could not reach the dev server's bridge network IP (172.30.0.20:4321) due to network isolation in this AWF configuration. Page content was verified via curl and confirmed the consolidated sections render correctly (Quick Reference table intact, merged AI engine section present, precedence chain table visible).

Blocked domains: Not applicable (screenshot capture was skipped due to network isolation).

References: §23676506351

🗜️ Compressed by Documentation Unbloat ·

  • expires on Mar 30, 2026, 3:42 AM UTC

Merge three near-identical AI engine token sections into one combined
section, and replace seven verbose pseudo-code precedence chain blocks
with a compact table. Reduces the page by ~95 lines (~20%) while
preserving all technical details.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation labels Mar 28, 2026
@pelikhan pelikhan closed this Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant