Skip to content

Docs: restructure for Mintlify sync workflow#187

Open
Blargian wants to merge 5 commits into
mainfrom
mintlify-sync-verification
Open

Docs: restructure for Mintlify sync workflow#187
Blargian wants to merge 5 commits into
mainfrom
mintlify-sync-verification

Conversation

@Blargian
Copy link
Copy Markdown
Member

@Blargian Blargian commented May 12, 2026

Summary

Restructure docs/ to act as the source of truth for the public ClickHouse docs site (Mintlify). A Mintlify sync workflow will mirror this directory into the docs repo at products/kubernetes-operator/**, after which edits to those pages will be disallowed in the docs repo — this repo becomes canonical.

Known trade-offs

  • Mintlify uses .mdx so docs viewed in GitHub in this repo will contain "mdx-isms" such <Note></Note> which won't render correctly
  • Cross-doc links use Mintlify-form URLs (e.g. /products/kubernetes-operator/reference/api-reference#podtemplatespec). These resolve correctly once the sync workflow mirrors files into the docs repo, but won't resolve in the operator repo's own GitHub views.

Workflow expectations

The companion Mintlify workflow (configured separately) should:

  • The workflow watches for pushes on branch main paths docs/**.
  • For each docs/<path>.mdx make the same changes in the upstream repo where the docs site is built from
  • Copy docs/navigation.json verbatim to products/kubernetes-operator/navigation.json (consumed via \$ref in docs.json).

Test plan

  • Verify the docs-site preview build renders the synced output identically to the current published pages (modulo the new content additions called out above).
  • Confirm navigation.json is correctly consumed via \$ref in the docs repo's docs.json.
  • Confirm internal anchor links (#typename, #podtemplatespec, etc.) in api_reference.md resolve after sync.

Marked draft pending the sync-workflow configuration on the Mintlify side.

🤖 Generated with Claude Code

Blargian and others added 3 commits May 12, 2026 16:22
Overwrites docs/*.md with the body of the corresponding Mintlify .mdx
in the docs repo (frontmatter stripped). Purpose is verification only:
the diff vs main should show every change as a Mintlify-shaped
transformation - explicit {#anchor} IDs on headings, Note/Tip/Steps
JSX wrappers, internal link rewrites, dropped TOC/H1, sentence-case
heading casing, contraction edits - and no other content drift.

Do not merge.
- docs/introduction.md  → docs/guides/introduction.md
- docs/configuration.md → docs/guides/configuration.md
- docs/api_reference.md → docs/reference/api-reference.md
- docs/installation/*   → docs/install/*
- Add docs/overview.md  (sourced from Mintlify overview.mdx)
- Add docs/navigation.json (mirror of the Mintlify navigation block
  consumed via $ref in the docs site's docs.json)

Operator-repo infrastructure (README.md, development.md, styles/,
templates/) is left in place. The local navigation paths inside
navigation.json reference Mintlify slugs and are kept verbatim - the
file is for parity/reference, not for the operator repo's own build.

Do not merge - verification branch only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Blargian Blargian marked this pull request as ready for review May 12, 2026 16:44
@Blargian Blargian changed the title docs: restructure for Mintlify sync workflow Docs: restructure for Mintlify sync workflow May 12, 2026
Comment thread docs/guides/configuration.mdx Outdated
Comment thread docs/reference/api-reference.mdx
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