Skip to content

docs: fix broken extending-templates examples (dynamic-parameters, docker-in-workspaces) - #28100

Draft
nickvigilante wants to merge 1 commit into
mainfrom
vigilante/docs-645-docs-fix-extending-templates-examples-dynamic-parameters
Draft

docs: fix broken extending-templates examples (dynamic-parameters, docker-in-workspaces)#28100
nickvigilante wants to merge 1 commit into
mainfrom
vigilante/docs-645-docs-fix-extending-templates-examples-dynamic-parameters

Conversation

@nickvigilante

Copy link
Copy Markdown
Contributor

Summary

Fixes broken examples on two extending-templates pages, surfaced by the DOCS-637 runtime drift sweep. Verified against main, the CLI source, and the coder/community-templates repo.

Changes

Page Fix
dynamic-parameters.md The Dynamic Validation snippet referenced an undefined show_cpu_cores through a stray count = data.coder_parameter.show_cpu_cores.value ? 1 : 0 line copied from the earlier Hide/Show Options example. Standalone copy failed terraform validate. Removed the count line (and its misleading "Only show this parameter" comment) so the snippet is self-contained and focused on dynamic validation. The valid occurrence in the Hide/Show example (where show_cpu_cores is defined) is untouched.
docker-in-workspaces.md echo "kubernetes-with-podman" | coder templates init used a template id that isn't a built-in starter (templates init only offers the embedded examples/templates ids: kubernetes, kubernetes-devcontainer, …), so the command never scaffolds anything. The linked template is a community template, so the block now clones coder/community-templates and creates from its kubernetes-podman/ directory (confirmed that path exists and contains main.tf).

Held for a decision (third item in the issue, not in this PR)

external-auth.md has a sentence that dead-ends mid-reference. The full passage:

External Auth Providers

External auth providers are configured using environment variables in the Coder Control Plane. See

Git Providers

The sentence ends at "See" with no link, then goes straight to the next heading. The right target is a content decision (candidates: the env-var / server config reference, or a dedicated external-auth configuration section), so I've left it out of this PR pending that call. Happy to add it here or in a follow-up once the target is chosen.

Linear: https://linear.app/codercom/issue/DOCS-645

This PR was created with AI assistance (Coder Agents).

…xamples

Fixes example drift found in the DOCS-637 sweep (verified against main and the CLI):

- dynamic-parameters: the Dynamic Validation snippet referenced an undefined `show_cpu_cores` via a stray `count` line copied from the Hide/Show Options example, failing `terraform validate` standalone. Remove the `count` line so the snippet is self-contained and on-topic.
- docker-in-workspaces: `echo "kubernetes-with-podman" | coder templates init` used a template id that is not a built-in starter, so the command never scaffolds anything. The linked template is a community template, so clone coder/community-templates and create from its kubernetes-podman directory instead.

Excludes the external-auth.md dangling "See" sentence (third item in the issue): the correct link target needs a decision, handled separately.

> This PR was created with AI assistance (Coder Agents).
@linear-code

linear-code Bot commented Aug 13, 2026

Copy link
Copy Markdown

DOCS-645

@github-actions

Copy link
Copy Markdown

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

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