Repository navigation
Make the docs VersionHistory component self-contained so it renders - #112183
Merged
Merged
Conversation
The version history of a setting is not published anywhere on the
documentation site. The autogenerated settings pages emit
`<VersionHistory rows={...}/>` for every setting whose default value
changed, but on the deployed pages the component is never defined: the
build inlines the other components imported by the same page (for the
MergeTree settings, `ExperimentalBadge` and `SettingsInfoBlock`) as an
`export const`, and does not inline `VersionHistory`. MDX then drops it as
an unknown component, so the compiled page contains no reference to it at
all and no version-history table reaches the DOM. This affects every
session, MergeTree and format settings page, in every language.
The only structural difference left between this component and the ones
that do get inlined is that it wraps its table in Mintlify's `<Accordion>`,
an identifier it neither imports nor defines. Render a `<details>`/
`<summary>` disclosure instead, so the component references nothing outside
itself, and style it with neutral greys and opacity only, the way
`SettingsInfoBlock` does, so that it reads correctly in both the light and
the dark theme. The `rows` prop keeps its shape, so no page needs to change.
The translated copies of the component carry the same fix, keeping the
translated column headers and title of each locale. Cell alignment is
`start` rather than `left` so that the table also reads correctly in the
right-to-left locale.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 task done
Contributor
|
Workflow [PR], commit [ec7be67] Summary: ✅ AI ReviewSummaryThis PR makes Findings
Final Verdict
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Member
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Member
Blargian
enabled auto-merge
July 27, 2026 21:08
Blargian
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Related: #112177
The version history of a setting is not published anywhere on the documentation site. The autogenerated settings pages emit
<VersionHistory rows={...}/>for every setting whose default value changed, but on the deployed pages the component is never defined, so MDX drops it as an unknown component: there is no version-history table in the DOM of any session, MergeTree or format settings page, in any language.This is visible from the deployed pages themselves. Fetching the raw source of a page and comparing the usages of a component against its inlined definition:
<Nameusagesexport const NameExperimentalBadgeSettingsInfoBlockVersionHistory(
https://clickhouse.com/docs/reference/settings/merge-tree-settings/allow.md, checked 2026-07-27; the session and format settings pages behave the same.)The compiled page confirms it: the components that work appear as
_MdxComponentBoundary,{name:'SettingsInfoBlock'}in the payload, whereas the stringVersionHistorydoes not occur anywhere in the page, and neither doVersion historyorDefault value. Between a setting's heading and its description there are only two empty React placeholders.The only structural difference left between this component and the ones that do get inlined is that it wraps its table in Mintlify's
<Accordion>, an identifier it neither imports nor defines. This renders a<details>/<summary>disclosure instead, so the component references nothing outside itself, styled with neutral greys and opacity only — the waySettingsInfoBlockdoes — so that it reads correctly in both the light and the dark theme. Therowsprop keeps its shape, so no page needs to change. The translated copies carry the same fix with the translated headers and title of each locale, and cell alignment isstartrather thanleftso the table also reads correctly in the right-to-left locale.Things I could not establish, and that are worth confirming on a preview deploy:
Image.jsxreferences<Frame>the same way and is inlined), a missing trailing newline (11 other components lack one, includingVideo.jsx), and modern syntax such as??/?./.map(KBExplorer.jsxuses all three).<Accordion>is what is left. Removing the external reference makes the component robust whatever the cause, but please check a preview build actually shows the table before merging.esbuildand every element it emits is an intrinsic tag, but I could not run a Mintlify build to look at the result.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Version info
26.8.1.240(included in26.8and later)