Skip to content

ci: retire the env-vars generator from update-ref-docs - #674

Merged
Rachael-Graham merged 1 commit into
mainfrom
rlg/retire-env-docs
Nov 2, 2026
Merged

Rachael-Graham merged 1 commit into
mainfrom
rlg/retire-env-docs

Conversation

@Rachael-Graham

@Rachael-Graham Rachael-Graham commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Split out of #652 so that the rc1 reference-docs run can succeed before #652 merges, as requested in review.

Retires the env-vars generator. kagent#3434 deleted docs/env.md at v1.0.0-rc1 and declared environment variables internal wiring, not a supported interface. The "Generate environment variable reference" step exits 1 when that file is missing, so every rc1 run fails today. This PR removes the step, its WITH_ENV_DOCS and KAGENT_ENV_PAGE plumbing, the env note in the generated PR body, and scripts/generate-env-docs.py. The env-vars page itself is deleted in #652.

Keeps aliases on the Helm reference. The helm.md write step now carries over an existing aliases: block. #652 redirects the retired env-vars URL with an alias on reference/helm.md, and the next regeneration would otherwise drop it.

Worth a close look: the awk that extracts the aliases block. It reads only the frontmatter, and it emits nothing when the page has no aliases, so 0.x output is unchanged.

Merge this first, run the reference-docs workflow at v1.0.0-rc1, then merge #652.

TEST RUN: https://github.com/kagent-dev/website/pull/675/files

kagent#3434 deleted docs/env.md at v1.0.0-rc1 and declared environment
variables internal wiring rather than a supported interface. The
"Generate environment variable reference" step exits 1 when that file is
missing, so every rc1 reference-docs run fails until it is removed.

Remove the step, the WITH_ENV_DOCS and KAGENT_ENV_PAGE plumbing, the
ENV_DOCS_NOTE in the generated PR body, and scripts/generate-env-docs.py.

The helm.md write step now carries over an existing aliases: block from
the page it overwrites. The 1.x env-vars page is deleted in the alpha18
docs PR (#652) with an alias on reference/helm.md, and without this the
next regeneration would drop that alias and 404 the old URL.

Signed-off-by: Rachael Graham <rachael.graham@solo.io>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Docs preview

Link Points at
Branch preview The newest push to this branch. Updates in place.
Commit preview 4604479 only. Frozen.

Both are uploaded Worker versions and serve no production traffic.

@Rachael-Graham
Rachael-Graham merged commit 254a7b8 into main Nov 2, 2026
4 checks passed
@Rachael-Graham
Rachael-Graham deleted the rlg/retire-env-docs branch November 2, 2026 16:36
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