Skip to content

docs: commit generated registry docs (fixes empty Registry Documentation tab) - #40

Merged
PF9-pushkar merged 1 commit into
mainfrom
pushkar/registry-docs
Aug 12, 2026
Merged

docs: commit generated registry docs (fixes empty Registry Documentation tab)#40
PF9-pushkar merged 1 commit into
mainfrom
pushkar/registry-docs

Conversation

@PF9-pushkar

Copy link
Copy Markdown
Collaborator

What

Commits the generated provider documentation (docs/) so the Terraform Registry can render it, and adds a v0.1.1 CHANGELOG entry.

  • Un-ignores docs/index.md, docs/resources/, docs/data-sources/, docs/guides/ in .gitignore (the maintainer-internal docs/compatibility/ stays untracked).
  • Commits the tfplugindocs-generated output: 50 resources, 25 data sources, 2 guides (Authentication, Migrating from terraform-provider-openstack), and the provider index.

Why

The Terraform Registry builds a provider's documentation from the docs/ tree in the repository at the release tag — it does not run tfplugindocs itself. v0.1.0 shipped with docs/ gitignored, so the Registry Documentation tab is empty (verified: the registry reports 0 doc pages for 0.1.0). Committing the generated docs fixes that.

Effect / rollout

Docs render on the Registry only for a tagged release that contains them. After this merges, cutting v0.1.1 (git tag v0.1.1 && git push origin v0.1.1) publishes the docs — no provider code changes, so it's a pure docs/patch release.

Safety

  • No Go code changed → build/vet/lint/tests unaffected.
  • Scanned the generated docs for lab/credential leakage: only placeholder values (ChangeMe-123!, a literal ... key stub) — no lab endpoint, no real secrets.
  • docs/compatibility/, CLAUDE.md, DECISIONS.md, validation-status, .DS_Store all remain untracked (verified against the staged set).

Follow-up (not in this PR)

Now that docs/ is committed, consider adding a git diff --exit-code docs/ step after the existing tfplugindocs generate job in test.yml to enforce docs freshness (catch schema/doc drift in PRs). Left out here to keep this change focused.

The Terraform Registry renders provider documentation from the docs/ tree in
the repository at the release tag. v0.1.0 shipped with docs/ gitignored, so the
Registry "Documentation" tab was empty.

Un-ignore the generated docs (docs/index.md, docs/resources/, docs/data-sources/,
docs/guides/) and commit them. They are produced by `make generate` (tfplugindocs)
from the schema descriptions, examples/, and templates/, and are regenerated per
release. docs/compatibility/ (maintainer-internal) stays untracked. No provider
behavior change.

50 resources, 25 data sources, 2 guides, and the provider index.
@PF9-pushkar
PF9-pushkar merged commit 4094a2b into main Aug 12, 2026
5 checks passed
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