Skip to content

Docs: remove the legacy slug frontmatter key - #132751

Draft
groeneai wants to merge 4 commits into
ClickHouse:masterfrom
groeneai:docs-remove-legacy-slug-frontmatter
Draft

groeneai wants to merge 4 commits into
ClickHouse:masterfrom
groeneai:docs-remove-legacy-slug-frontmatter

Conversation

@groeneai

@groeneai groeneai commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #122644

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Removed the legacy slug frontmatter key from the English documentation pages.

Description

Mintlify routes a page by its file path and does not read frontmatter slug, so the key is a leftover of the old Docusaurus site and removing it changes no published URL. This PR removes the slug: line from 2175 English pages, including the ones #122644 moved or added; every page diff is that single frontmatter line, except that the integration page skeleton also loses the line in its example. update_changelogs.py no longer requires the key on the annual changelog pages, and utils/generate-system-tables-docs, the settings SQL and the AGENTS.md docs rule no longer add it.

Not changed: the translated pages (follow-up on #122644) and the Python client pages, a one-way copy of clickhouse-connect docs/.

Validation: the site generators, the docs Python checks and lychee (links and redirects) pass on this branch, and update_changelogs.py from master fails on the edited pages.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/132751]

groeneai and others added 4 commits November 18, 2026 14:14
Mintlify routes a page by its file path; the old Docusaurus URLs live on as
explicit entries in `docs/_site/redirects.json`, so frontmatter `slug` is
not read by anything that publishes the site.

- `update_changelogs.py` `validate_frontmatter` no longer expects `slug` on
  the Cloud and OSS annual changelog pages (it would raise once the key is
  gone from them).
- `utils/generate-system-tables-docs` `create_doc_file` no longer writes it
  into new system-table pages.
- The settings SQL generators no longer print it (their frontmatter is
  discarded by `method: "body"`, so this is consistency only).
- The `AGENTS.md` docs rule and the integration page skeleton no longer
  ask for it.

Related: ClickHouse#122644

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mechanical: each file loses exactly one line, the `slug:` key of its first
frontmatter block. Translated trees (`docs/<locale>/`,
`docs/snippets/<locale>/`) and the read-only copies listed in
`ci/jobs/scripts/docs/readonly_copies.json` are not touched. The pages
ClickHouse#122644 also edits are left out so the two PRs do not conflict.

Related: ClickHouse#122644

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lish pages

Covers the pages that ClickHouse#122644 edited, moved or added, and the English pages added on master since this branch was cut. Each page loses one frontmatter line.

Related: ClickHouse#122644

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal review: adjudication log (click to expand)

Pre-publication review: my own cold review, an independent adversarial pass, a mechanical check of every page diff and a second-model review. The full change map (about 1.2 MB, 2,181 files) is over the second model's display cap, so it reviewed the 7 non-page files plus 44 representative pages (all changelog pages, the generated settings and system-table pages) and returned no findings. The mechanical check covers the rest: 2,174 page diffs are exactly one deleted slug: frontmatter line, and the skeleton page also drops its example line.

# Sev Finding Verdict Evidence / action
1 💡 The description said every page diff is the single frontmatter line, but the integration skeleton page also loses the line in its example AGREE, reworded description only
2 ⚠️ 27 edited pages are also edited by open draft PRs (#132611, #129514, #124430) DISAGREE a 3-way merge of each page against each draft head is clean (27/27); no draft touches the slug: line
3 💡 ci/praktika/orchestrator/PROTOCOL.md still has slug: DISAGREE not under docs/, not a published page
4 💡 7 index pages keep an MDX comment naming slug as an input of the archived clickhouse-docs table-of-contents script DISAGREE invisible comment, not frontmatter, outside this cleanup
5 💡 The next translation sync will re-process the edited English pages (gt-lock.json hashes them) DISAGREE expected for any English edit, breaks no build

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal per finding.

Session id: cron:clickhouse-review-slot-8:20261118-182800

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Docs cleanup, no failure to reproduce. Measured: git grep -lE '^slug:' finds 2175 English pages outside the read-only Python copy on master fc0c675d6e50, and none on this branch.
b Root cause explained? The key was left over from the Docusaurus site. utils/generate-system-tables-docs, the AGENTS.md docs rule and the integration skeleton kept adding it, and update_changelogs.py required it.
c Fix matches root cause? Yes: the key is removed, and so is everything that adds or requires it.
d Test intent preserved / new tests added? N/A: docs content and docs tooling only, validated locally against master.
e Both directions demonstrated? update_changelogs.py from master fails on this tree (slug is None); the edited one passes. The site generators, the docs Python checks and lychee (links, redirects) give the same results as on master.
f Fix is general across code paths? Every emitter is changed: the system-tables generator, the 3 settings SQL files, the AGENTS.md rule, the skeleton. Its only reader, update_changelogs.py, is changed too; git grep finds no other reader.
g Fix generalizes across inputs (params/datatypes/wrappers)? Every tracked English .md/.mdx page. The script edits only the first frontmatter block and refuses CRLF, non-UTF-8, two slug: lines or an empty result.
h Backward compatible? (maintainer-approved exception only) Yes: Mintlify routes by file path and does not read slug (docs/_site/scripts/update_clickstack_badges.py:24), so no published URL changes; the lychee redirects check passes.
i Invariants and contracts preserved? Every page diff is one deleted frontmatter line (the integration skeleton page also drops the line in its example), and every frontmatter stays non-empty. No AUTOGENERATED region or read-only copy is touched (both checks OK).

Session id: cron:clickhouse-impl-slot-40:20261118-163500

@clickhouse-gh

clickhouse-gh Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [067578c]

Summary: ✅


AI Review

Summary

Removes legacy slug frontmatter from 2,175 English documentation pages and updates its emitters and changelog validation. No actionable findings at PR head 067578c96fbf0a46f3271b285561126e4452283c. Mechanical verification confirms all remaining metadata, page bodies, and protected generated regions are unchanged, apart from the documented template example. Consumers checked: navigation, redirects, quickstart and knowledge-base indexes, and ClickStack badges use file paths; settings generation strips emitted frontmatter; system-table updates preserve maintained frontmatter. Focused checks confirm valid system-table page creation and equivalent base/head changelog bodies and navigation across 37 files.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-documentation Documentation PRs for the specific code PR label Nov 18, 2026
@mintlify

mintlify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 067578c.

Approve preview

@clickhouse-gh clickhouse-gh Bot added can be tested Allows running workflows for external contributors manual approve Manual approve required to run CI comp-documentation Documentation (docs, examples, READMEs). labels Nov 18, 2026
@Blargian Blargian self-assigned this Nov 18, 2026
@Blargian
Blargian marked this pull request as draft November 18, 2026 22:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-documentation Documentation (docs, examples, READMEs). manual approve Manual approve required to run CI pr-documentation Documentation PRs for the specific code PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants