Repository navigation
Docs: write Mintlify syntax in the source registrations and remove mintlify_transform.py - #130905
9 commits merged into
Conversation
The format page generator (`format_generators` in `ci/jobs/scripts/docs/autogenerate/autogenerate_docs.py`) discovers pages only through the matched rows of `docs/_migration/slug-map.csv`. Neither `reference/formats/Vortex.mdx` nor `reference/formats/SQLite.mdx` had a row, so the nightly docs job never regenerated them and `Vortex.mdx` still described the `String` mapping from before ClickHouse#130234 (written as `Binary`, no `output_format_vortex_string_as_string` row). Add the two rows in the shape of the Puffin rows and regenerate both pages with the generator (`--write --only format:Vortex` / `format:SQLite`). The SQLite page change is the generator's link rewrite of the database engine link to its current path. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reference docs generator found its destination pages and resolved legacy links through `docs/_migration/slug-map.csv`, a snapshot of the Docusaurus to Mintlify migration. Pages added or moved since then were silently skipped (`Vortex`, `SQLite`) or linked through stale routes. - Every generator names its Mintlify page (`dest`) and the page's former Docusaurus path (`source_docu`, which relative links in the source registrations are written against). - The eight page families discover their pages by walking their `reference/` directory, as database engines already did. - The Markdown to MDX transforms move next to the generator as `mintlify_transform.py`. Only the transforms that some registration can trigger are kept; the migration driver, its per-page overrides and the slug map reader are dropped. - Legacy links resolve through the docs tree plus the site redirect table `docs/_site/redirects.json`. A full regeneration with the old and the new generator writes the same page set and the same content, except one link in `ODBCDriver2.mdx`: the ODBC page moved to `concepts/features/interfaces/odbc/index.mdx`, which the stale slug-map row hid. The regenerated page is included. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nothing reads it any more: the reference docs generator discovers its pages from the `reference/` directories and resolves legacy links through `docs/_site/redirects.json`. Drop the folder (slug map, alias table, one-shot migration scripts) and the exclusions that only existed for it in `navigation_check.py`, `lychee.toml` and the docs README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The source registrations are about to carry Mintlify `<Accordion title="...">` sections instead of `<details><summary>`. The `/docs` page sanitizer drops any unknown element together with its subtree, so `uniq`'s "Implementation details" would disappear there: map an own-line `<Accordion>` onto the allowlisted `<details>`/`<summary>` pair (with blank lines so the Markdown inside is still parsed). The terminal `help` renderer treats `<Accordion>` like `<Card>` (the title is kept as a bold line) and drops `<Frame>` wrappers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The docs generator still ran every generated body through the
Docusaurus-to-Mintlify transform, which rewrote 85 of 516 pages on every run
(`@theme/` imports, `:::` admonitions, `<details>`, `<TabItem>`, `<iframe>`,
`highlight-*` comments, HTML comments and pre-Mintlify links). Write the
transform's output directly in the doc strings and in the generator's
settings SQL, so the generated pages no longer depend on the transform and
`system.documentation` carries the same syntax as the website.
The conversion is the transform's own output for each string (measured per
page with the generator in check mode; nothing is left for it to change except
the leading `# Title` of full-page bodies and the blank-line collapse, which
the generator keeps), with four deliberate differences:
- the titled note of `arrayCount` uses `<Note title="...">`, the convention of
the already converted sources (the transform gave an `<Info>` with a bold line);
- the six `<!-- -->` lines that only separated a list or a code block from the
next code block are deleted (CommonMark already ends the list at the blank
line, and `{/* */}` would show literally in `system.documentation`);
- the two `...WithWWW` descriptions of `cutToFirstSignificantSubdomainCustom*`
get their missing closing fence (it swallowed the next section on the page);
- the inline code `<!-- -->` in `extractTextFromHTML` stays as is (the
transform corrupted it to `{/* */}`).
Also converted: the untyped `:::` of `geohashEncode`, the `:::note` of the
`Freeform` format and the relative `.md` link of `Nested`, which no generated
page reaches yet.
A new test checks that no description in `system.documentation` uses `:::`
admonitions, `@theme/` imports, `highlight-*` comments or `.md` links. The
corpus checks of `04415` and `04417` follow the converted descriptions: the
`TimeSeries` badge is a named import now, and `uniq` no longer carries a raw
`<details>` block (`MergeTree` still does).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The source registrations and the generator's SQL templates are written in Mintlify MDX now, so the Docusaurus-to-Mintlify body transform no longer changes any generated page. Remove it, together with the link lookups and the former Docusaurus paths (`source_docu`, `legacy_page`) that only fed it. Two steps of page assembly stay in the generator, in `page_body`: the leading `# Title` of a full-page description is dropped (Mintlify renders the page title, and `system.documentation` needs the H1 to recognize the description as a full page), and blank-line runs of the SQL output are collapsed. The generator key `full_transform` becomes `full_page`; the dictionary page self-tests compare against `page_body` instead of the transform. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 3 findings; 1 full pass). It covered 109 of the 111 changed paths: the pure deletion of
Also noted: the new test rejects four syntax classes; Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261111-165600 |
|
cc @dhtclk, could you review this? The doc strings in the source registrations and the generator's settings SQL now carry the Mintlify syntax that mintlify_transform.py used to produce on every nightly run, so the transform is deleted; the /docs page and the terminal help render the new Accordion tag. |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261111-154600 |
|
Workflow [PR], commit [0cec8b4] Summary: ✅
AI ReviewSummaryReviewed #130905 at The affected consumers reviewed were website generation ( Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units81 translation units recompiled, 700 s compile time in total, 81 of them have a recent master baseline. |
CI finish ledger - 53bc76cEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
#131070 was merged after this head's CI started. CIDB has no other Session id: cron:our-pr-ci-monitor:20261112-200351 |
|
Fixing PR for the |
|
@groeneai merge master and resolve conflicts |
Conflicts: - docs/_migration/migrate.py, docs/_migration/slug-map.csv: master modified them; this branch deletes docs/_migration (moved to the generator in ClickHouse#130608, removed here), so they stay deleted. - ci/jobs/scripts/docs/autogenerate/test_session_settings_split.py: master added a `migrate.rewrite_links` fenced-link check next to the `migrate.transform_imports` checks this branch already removed with the transform; kept this branch's side. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Head branch was pushed to by a user without write access
|
Merged master (
On the merged build the docs stateless tests pass, |
5327cf5
Related: #130608
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The descriptions in
system.documentationuse the same Mintlify syntax as the website reference pages, so the docs generator publishes them without rewriting.Description
As asked in #130608 (comment), the Docusaurus syntax that
mintlify_transform.pystill rewrote on every nightly run (85 of 516 generated pages) is now converted in the sources.Based on #130608, which adds
mintlify_transform.py: merge it first; until then this diff also shows its three commits.Change:
src/files and the generator's settings SQL use the transform's own output: badge imports from/snippets/components/,<Note>/<Warning>instead of:::,<Accordion>instead of<details><summary>,<Tab title>,<Frame>,highlight={...}instead ofhighlight-*comments, current routes instead of legacy and.mdlinks;/docspage renders<Accordion>as<details>(its sanitizer would otherwise dropuniq's "Implementation details"); the terminalhelpkeeps the title;mintlify_transform.pyis deleted. The generator keeps two page-assembly steps: it drops the leading# Titleof full-page descriptions (system.documentationneeds that H1 to recognize a full page) and collapses blank lines of its SQL output;:::,@theme/,highlight-*and.mdlinks insystem.documentation.Validation: full
--writeruns of the old generator on the old sources and of the new one on the converted sources write the same 1131 files, identical except six pages that the next nightly regeneration will update:array-functions:arrayCount's titled note is<Note title="...">instead of<Info>with a bold line;float,geo,hdfs: empty{/* */}separators removed;string-functions: the inline code<!-- -->is no longer corrupted to{/* */};url-functions: two descriptions get their missing closing fence, which swallowed the next section.Workflow [PR]
Sync PR [sync-upstream/pr/130905]
Version info
26.11.1.2511-master(included in26.11and later)