Skip to content

feat(commandsgen): generate CLI environment variables docs index - #1138

Open
sornapudisuresh wants to merge 3 commits into
temporalio:mainfrom
sornapudisuresh:feat/697-env-var-docs-index
Open

feat(commandsgen): generate CLI environment variables docs index#1138
sornapudisuresh wants to merge 3 commits into
temporalio:mainfrom
sornapudisuresh:feat/697-env-var-docs-index

Conversation

@sornapudisuresh

Copy link
Copy Markdown

Summary

  • Extends gen-docs to emit environment-variables.mdx from implied-env options (alphabetized env var → flag → description).
  • Adds a tip distinguishing shell env vars from temporal env presets.
  • Documents special cases: TEMPORAL_GRPC_META_* and legacy TLS variables.
  • Skips the page when -subdir is used so cloud-cli docs generation does not overwrite it.
  • Closes Create an index of environment variables for the docs site #697

Test plan

  • go test ./internal/commandsgen/ ./cmd/gen-docs/
  • go test ./...
  • go run ./cmd/gen-docs -input internal/temporalcli/commands.yaml -input cliext/option-sets.yaml -output dist/docs and inspect dist/docs/environment-variables.mdx

Emit alphabetized environment-variables.mdx from implied-env options,
plus special cases for TEMPORAL_GRPC_META_* and legacy TLS vars.

Fixes temporalio#697
@sornapudisuresh
sornapudisuresh requested a review from a team as a code owner July 27, 2026 18:29
@CLAassistant

CLAassistant commented Jul 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

lennessyy and others added 2 commits July 28, 2026 14:21
TEMPORAL_ENV and TEMPORAL_ENV_FILE configure the `temporal env` preset
system, which stores named key-value presets in temporal.yaml. Listing
them in the main table alongside TEMPORAL_PROFILE and
TEMPORAL_CONFIG_FILE presented two different config systems as peers,
and contradicted the note telling readers not to conflate shell
variables with `temporal env` presets.

Move both into a "Legacy temporal env variables" section under Special
cases, mirroring the existing legacy TLS section, and reword the intro
to state the relationship instead of denying it.
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.

Create an index of environment variables for the docs site

3 participants