Skip to content

docs: render env var names in command-line flag docs - #391

Merged
tianzhou merged 1 commit into
mainfrom
docs/render-env-vars-in-command-line-flags
Jul 31, 2026
Merged

docs: render env var names in command-line flag docs#391
tianzhou merged 1 commit into
mainfrom
docs/render-env-vars-in-command-line-flags

Conversation

@tianzhou

Copy link
Copy Markdown
Member

Summary

  • The env="..." attribute passed to <ParamField> in docs/config/command-line.mdx isn't an officially supported Mintlify prop (confirmed against Mintlify's docs — supported props are path, type, required, deprecated, default, placeholder). It was silently dropped and never rendered, so readers had no visible way to see the corresponding env var for --transport, --port, --host, --allowed-hosts, --auth-token, --dsn, or --id except by scrolling to the Quick Reference table at the bottom.
  • Adds an explicit Env: \VAR_NAME`sentence to each flag's own body. Verified each var againstsrc/config/env.ts (TRANSPORT, PORT, DBHUB_HOST, DBHUB_ALLOWED_HOSTS, DBHUB_AUTH_TOKEN, DSN, ID) — --configand--demo` correctly have no env var and are left as-is.

Test plan

  • Doc-only change; no code touched.
  • Diffed against src/config/env.ts to confirm each stated env var name is real.

🤖 Generated with Claude Code

The env="..." attribute passed to <ParamField> isn't an officially supported
Mintlify prop, so it was silently dropped and never actually rendered —
readers had no visible way to see which environment variable corresponds to
--transport, --port, --host, --allowed-hosts, --auth-token, --dsn, or --id
except in the Quick Reference table at the bottom of the page. Add an
explicit "Env: `VAR_NAME`" mention to each flag's own body so it's visible
right where the flag is documented.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 31, 2026 12:17
@tianzhou
tianzhou merged commit 7abdda5 into main Jul 31, 2026
4 checks passed

Copilot AI 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.

Pull request overview

Improves the command-line documentation by making the environment variable name for each relevant flag visible directly in the flag’s own description, rather than relying on Mintlify’s unsupported env="..." prop rendering or the quick reference table.

Changes:

  • Add explicit Env: \VAR_NAME`text to the descriptions for--transport, --port, --host, --allowed-hosts, --auth-token, --dsn, and --id`.
  • Keep --config and --demo unchanged (no env var mapping).

@tianzhou tianzhou mentioned this pull request Jul 31, 2026
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