Repository navigation
Docs: remove legacy Docusaurus documentation - #112141
Conversation
…cy-docs-en # Conflicts: # ci/jobs/docs_job.py # docs/concepts/features/performance/troubleshoot/sampling-query-profiler.mdx # docs/en/interfaces/formats/ORC.md # docs/reference/engines/table-engines/mergetree-family/annindexes.mdx # src/Databases/MySQL/DatabaseMySQL.cpp # src/Storages/NATS/StorageNATS.cpp
|
Workflow [PR], commit [ae3c6a0] AI ReviewSummaryThis PR removes the legacy Findings❌ Blockers
💡 Nits
Final VerdictRequest changes before merge. |
| # Mintlify site files such as ./docs/docs.json and any new Mintlify | ||
| # content). Add new excludes here if more non-Mintlify content is | ||
| # introduced under ./docs. | ||
| # These files are internal inputs or contributor documentation, not |
There was a problem hiding this comment.
Docs check (Mintlify) is now keyed only on ./docs and the docs scripts, but this PR also makes the English reference docs depend on source-owned inputs again (FunctionDocumentation, settings DECLAREs, metrics/system-table descriptions, etc.). A PR that changes only src/TableFunctions/..., src/Functions/..., or Settings.cpp will now reuse a cached docs result and skip Mintlify validation entirely, so broken generated MDX or links are only caught later when the nightly autogen bot opens its follow-up PR. Can we keep the source-owned doc paths in this digest as well? feature_docs.py already has most of the canonical list.
| jobs=[ | ||
| JobConfigs.style_check, | ||
| JobConfigs.code_review.set_run_after(CODE_REVIEW_BLOCKING_JOBS), | ||
| JobConfigs.docs_job, |
There was a problem hiding this comment.
JobConfigs.docs_job drops the only PR-time step that materializes docs from source before validation. Docs check (Mintlify) still only runs DEFAULT_CHECKS over the checked-in docs/ tree in ci/jobs/docs_job_mintlify.py; nothing in the PR workflow now regenerates pages from FunctionDocumentation, Documentation{}, DECLARE(...), system-table metadata, or async-metrics sources. As a result, a source-doc change can generate invalid or broken Mintlify content and still go green until the nightly bot opens a follow-up PR after merge. Can we keep a regenerate-and-validate step somewhere in PR CI, even if the committed English pages stay nightly-owned?
There was a problem hiding this comment.
Addressed in c4b8eab. The PR workflow now has a dedicated Docs check (Mintlify, source regeneration) job that runs docs_job_mintlify.py --regenerate-source-docs with CH_ARM_BINARY, materializing source-owned pages before Mintlify validation. The follow-up gate in e215e84 intentionally limits this binary-backed step to PRs that change both src/ and docs/, per the requested CI policy.
There was a problem hiding this comment.
The source-regeneration job that fixed this earlier is no longer present at the current PR head. ci/workflows/pull_request.py:63 now schedules only JobConfigs.docs_job_mintlify, and ci/defs/job_configs.py:1502-1524 defines that job as a Mintlify check over the checked-in ./docs tree plus generator scripts, with no step that materializes pages from source-owned docs first.
So the original gap is back: a PR that changes FunctionDocumentation, Documentation{}, or ColumnsDescription in the source can still go green without regenerating and validating the corresponding Mintlify page.
| 1. │ Expression (Project names) │ | ||
| 2. │ Header: id Int32 │ | ||
| 3. │ Limit (preliminary LIMIT (without OFFSET)) │ | ||
| 4. │ Header: L2Distance(__table1.vec, _CAST([0., 2.]_Array(BFloat16), 'Array(BFloat16)'_String)) BFloat16 │ |
There was a problem hiding this comment.
L2Distance(Array(BFloat16), Array(BFloat16)) does not return BFloat16. The function contract in src/Functions/vectorFunctions.cpp still says Array inputs with Float32/BFloat16 element types return Float32, so this updated EXPLAIN output now documents a result type users cannot actually observe. Can this sample stay Float32 (including _distance Float32) instead?
| # Source paths that feed autogenerated Mintlify reference pages. Keep this list | ||
| # shared with the docs job digest so a source-only documentation change cannot | ||
| # reuse a cached docs result. | ||
| source_owned_doc_files = embedded_doc_files + [ | ||
| "src/Common/AsynchronousMetrics.cpp", | ||
| "src/Interpreters/ServerAsynchronousMetrics.cpp", | ||
| "src/Coordination/KeeperAsynchronousMetrics.cpp", | ||
| ] | ||
|
|
||
| source_owned_doc_paths = inline_doc_paths + [ | ||
| "src/Databases/", | ||
| "src/DataTypes/", | ||
| "src/Processors/Formats/", | ||
| "src/Storages/", | ||
| ] | ||
|
|
||
| source_owned_doc_globs = [f"src/**/*{suffix}" for suffix in embedded_doc_suffixes] | ||
|
|
||
| SOURCE_OWNED_DOC_DIGEST_PATHS = [ | ||
| *(f"./{file}" for file in source_owned_doc_files), | ||
| *(f"./{path.rstrip('/')}" for path in source_owned_doc_paths), | ||
| *(f"./{glob}" for glob in source_owned_doc_globs), | ||
| ] | ||
|
|
||
| def file_contains_marker(file_path, marker): | ||
| """Check if a file contains the given marker string.""" | ||
| source_owned_doc_markers = ( | ||
| "FunctionDocumentation", | ||
| "Documentation{", | ||
| 'R"DOCS', | ||
| ) |
There was a problem hiding this comment.
utils/generate-system-tables-docs regenerates pages from system.tables / system.columns, but StorageSystem*.cpp files document themselves through ColumnsDescription comments (not FunctionDocumentation / Documentation{} / R"DOCS), and log-backed tables such as SessionLog.cpp, TraceLog.cpp, and QueryLog.cpp live under src/Interpreters/, which is outside SOURCE_OWNED_DOC_DIGEST_PATHS. As a result, a PR that only updates SessionLogElement::getColumnsDescription still fails No documentation changes found, and the docs jobs can also reuse a cached result without rerunning source regeneration for those pages. Can we extend the shared path/marker set to cover system-table and system-log doc sources too?
…erge-master # Conflicts: # docs/en/sql-reference/statements/create/view.md
| descriptions_by_name = {} | ||
| for name, description, _ in metrics: | ||
| descriptions_by_name.setdefault(name, set()).add(description) | ||
|
|
||
| lines = [] | ||
| for name, desc in metrics: | ||
| for name in sorted(descriptions_by_name, key=lambda item: (item.lower(), item)): | ||
| anchor = slugify(name) | ||
| lines.append(f"### {name} {{#{anchor}}}") | ||
| lines.append("") | ||
| lines.append(desc.strip()) | ||
| lines.append("") | ||
| for description in sorted(descriptions_by_name[name]): | ||
| lines.append(description.strip()) |
There was a problem hiding this comment.
MemoryThreadStacksCount, MemoryThreadStacksResident, and MemoryThreadStacksVirtual are emitted once under #if defined(OS_LINUX) and once under #elif defined(OS_DARWIN) in src/Interpreters/ServerAsynchronousMetrics.cpp:992-1025, so the generated docs/reference/system-tables/asynchronous_metrics.mdx now shows both Linux and macOS paragraphs under the same heading.
This renderer needs to pick one description per metric name (or make the platform split explicit) instead of concatenating all variants. A small regression test with one duplicated metric name across two #if branches would pin this down.
The legacy docs/en tree is being removed in ClickHouse#112141, so renaming its anchors only creates conflict surface with that removal. Revert every docs/en change and the one source comment that pointed into it, keeping the embedded source documentation renames that publish into the Mintlify tree.
Audit and port docs/en changes from the last seven days before deleting the legacy tree. Related: ClickHouse#112141
Point the source-owned documentation link at its generated server-settings page. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=112141&sha=5969e08e20e6b46e5fd9e10a9f609b6dbc851c19&name_0=PR&name_1=Docs%20check%20%28Mintlify%2C%20source%20regeneration%29 Related: ClickHouse#112141
Port the incoming Kafka partition-affinity and system table example documentation to the source-owned and Mintlify locations while keeping docs/en removed. Related: ClickHouse#112141
Remove the pull request source-regeneration check and its ARM build dependency. Keep regeneration in the asynchronous workflow and commit the current generated reference pages. Related: ClickHouse#112141
…cy-docs-en # Conflicts: # docs/en/engines/table-engines/integrations/time-series.md
|
📊 Cloud Performance Report ✅ AI verdict: This PR only removes the retired Docusaurus English documentation tree, drops the corresponding CI docs job, and updates contributor/doc guidance — no server or query-execution code changed. The single flagged query (clickbench Q18, +8.0%) cannot plausibly be caused by a documentation-only change, so the delta is run-to-run variance and the not_sure verdict is appropriate. No action needed on the perf side. clickbenchFlagged queries (1 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
Resolve the modify/delete conflict on docs/en/development/continuous-integration.md: #112141 removed the legacy Docusaurus documentation, so the `Revert CI regressions` section moves to its successor, docs/resources/develop-contribute/contribute/continuous-integration.mdx. Co-Authored-By: Claude Fable 5 <[email protected]>
Legacy `docs/en` tree was removed on master (ClickHouse#112141). Port the `aiRedact` mentions to `docs/reference/functions/regular-functions/ai-functions.mdx`.
The Mintlify documentation is now the English source of truth, so this removes the legacy
docs/enDocusaurus tree after carrying its remaining changes into Mintlify pages or source-owned reference documentation.This also removes the legacy Docusaurus CI job, updates documentation contributor guidance, and moves system-table and asynchronous-metric generation into the Mintlify nightly workflow.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Remove the retired Docusaurus English documentation tree after completing the Mintlify migration.
Version info
26.8.1.738(included in26.8and later)