Skip to content

Docs: remove legacy Docusaurus documentation - #112141

Merged
Blargian merged 24 commits into
ClickHouse:masterfrom
Blargian:codex/remove-legacy-docs-en
Aug 4, 2026
Merged

Blargian merged 24 commits into
ClickHouse:masterfrom
Blargian:codex/remove-legacy-docs-en

Conversation

@Blargian

@Blargian Blargian commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

The Mintlify documentation is now the English source of truth, so this removes the legacy docs/en Docusaurus 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):

  • Documentation (changelog entry is not required)

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

  • Merged into: 26.8.1.738 (included in 26.8 and later)

Blargian added 2 commits July 27, 2026 17:50
…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
@Blargian Blargian added the pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard label Jul 27, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ae3c6a0]


AI Review

Summary

This PR removes the legacy docs/en tree and the old Docusaurus job, while moving the remaining English documentation flow onto Mintlify pages and source-owned registrations in src/. The migration is not ready to merge yet: the current PR workflow no longer validates source-owned English docs at PR time, the pr-feature docs detector still misses important source-owned surfaces, and the async-metrics generator now merges platform-specific descriptions into one misleading cross-platform contract.

Findings

❌ Blockers

  • ci/workflows/pull_request.py:60-64, ci/defs/job_configs.py:1502-1524 The PR removes the only PR-time source-regeneration job, but the replacement Docs check (Mintlify) digest still ignores source-owned English doc inputs in src/. In the current tree, JobConfigs.docs_job_mintlify.is_affected_by(["src/TableFunctions/TableFunctionURL.cpp"]), ["src/Core/Settings.cpp"], and ["src/Storages/System/StorageSystemParts.cpp"] all evaluate to False, so a PR can change authoritative FunctionDocumentation, settings DECLAREs, or system-table column docs without rerunning Mintlify validation or checking that the generated pages were refreshed. That breaks the new "Mintlify/source-owned docs are the English source of truth" contract this PR is establishing.
    Suggested fix: either restore a PR job that regenerates source-owned docs before validation, or make the Mintlify job depend on all source-owned inputs and regenerate those pages before running link/validation checks.

⚠️ Majors

  • ci/jobs/scripts/workflow_hooks/feature_docs.py:64-90 The pr-feature documentation gate still misses real source-owned docs. is_source_owned_doc only recognizes files containing FunctionDocumentation, Documentation{, or R"DOCS, so src/Interpreters/SessionLog.cpp and src/Storages/System/StorageSystemParts.cpp both return False even though they are the source of the generated system.* pages via ColumnsDescription text. A feature PR that documents itself only through those sources still fails with No documentation changes found.
    Suggested fix: extend the detector to cover system-table / log-table sources that publish docs through ColumnsDescription comments, not only the FunctionDocumentation-style registrations.

  • ci/jobs/scripts/workflow_hooks/feature_docs.py:73-75 [dismissed by author -- https://github.com/Docs: remove legacy Docusaurus documentation #112141#discussion_r3710215426] The deep *Settings.cpp / *Settings.h path matching is still broken in the current code. PurePosixPath.match("src/**/*Settings.cpp") does not match nested paths such as src/Storages/MergeTree/MergeTreeSettings.cpp or src/Processors/Formats/Impl/ParquetFormatSettings.h, so those authoritative settings docs are still invisible to the same pr-feature gate.
    Suggested fix: replace the current PurePosixPath.match check with a suffix/path-prefix test that actually matches nested Settings files under src/.

  • utils/generate-async-metrics-docs:448-460 Grouping metrics only by name and then rendering every distinct description under one heading turns platform-specific alternatives into one apparent cross-platform contract. MemoryThreadStacksCount, MemoryThreadStacksResident, and MemoryThreadStacksVirtual are emitted once for Linux and once for Darwin with different semantics; the generated page now publishes both descriptions together under each metric name, making it look as if both definitions apply everywhere.
    Suggested fix: keep source-specific variants separate in the rendered docs (for example by labeling them per platform), or reject conflicting duplicate descriptions instead of concatenating them.

💡 Nits

  • docs/reference/engines/table-engines/mergetree-family/annindexes.mdx:391-401 The updated EXPLAIN header = 1 sample still documents L2Distance(Array(BFloat16), Array(BFloat16)) and _distance as BFloat16, but the implementation and L2Distance function docs still return Float32 for Array inputs whose least common supertype is Float32 or BFloat16. The sample currently documents a result type users cannot observe.
    Suggested fix: keep the sample output at Float32.
Final Verdict

Request changes before merge.

@clickhouse-gh clickhouse-gh Bot added pr-documentation Documentation PRs for the specific code PR submodule changed At least one submodule changed in this PR. labels Jul 27, 2026
Comment thread ci/defs/job_configs.py
# 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ 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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Removing 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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/Databases/MySQL/DatabaseMySQL.cpp Resolved
@Blargian
Blargian marked this pull request as ready for review July 27, 2026 21:43
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 │

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ 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?

Comment on lines +31 to +59
# 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',
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ The shared "source-owned docs" detector still misses system-table sources. 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
Comment on lines +450 to +460
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())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Grouping by metric name here and then rendering every distinct description turns platform-specific alternatives into one apparent cross-platform contract. 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.

Comment thread src/Storages/NATS/StorageNATS.cpp Resolved
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Jul 28, 2026
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.
Comment thread src/Databases/MySQL/DatabaseMySQL.cpp Resolved
Audit and port docs/en changes from the last seven days before deleting the legacy tree.

Related: ClickHouse#112141
@Blargian
Blargian requested a review from a team as a code owner August 3, 2026 09:10
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
@Blargian
Blargian added this pull request to the merge queue Aug 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 3, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 37 queries analysed

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.

clickbench

⚠️ 1 inconclusive

Flagged queries (1 of 43)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 18 not_sure 1286 1390 +8.0% 0.0421 Docs-only PR (removes the legacy Docusaurus tree, its CI job, and doc guidance); nothing touches query execution, so the +8.0% on Q18 is run-to-run variance.

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
  • StressHouse run: 2470a97c-fe36-45f5-b3dc-d79cced827ce
  • MIRAI run: 0abc9720-47df-4274-ab31-2baf3c1b9e34
  • PR check IDs:
    • clickbench_1556463_1785798681
    • clickbench_1556473_1785798681
    • clickbench_1556480_1785798681
    • tpch_adapted_1_official_1556494_1785798681
    • tpch_adapted_1_official_1556519_1785798681
    • tpch_adapted_1_official_1556533_1785798681

@Blargian
Blargian enabled auto-merge August 4, 2026 07:58
@Blargian
Blargian added this pull request to the merge queue Aug 4, 2026
Merged via the queue into ClickHouse:master with commit 4fa3985 Aug 4, 2026
13 of 26 checks passed
@Blargian
Blargian deleted the codex/remove-legacy-docs-en branch August 4, 2026 08:20
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 4, 2026
pull Bot pushed a commit to Mu-L/ClickHouse that referenced this pull request Aug 4, 2026
alexey-milovidov pushed a commit that referenced this pull request Aug 4, 2026
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]>
george-larionov added a commit to davidmenggx/ClickHouse that referenced this pull request Aug 6, 2026
Legacy `docs/en` tree was removed on master (ClickHouse#112141). Port the
`aiRedact` mentions to `docs/reference/functions/regular-functions/ai-functions.mdx`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard pr-documentation Documentation PRs for the specific code PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants