Skip to content

Move documentation publishing to the current site - #1313

Open
Blargian wants to merge 17 commits into
ClickHouse:mainfrom
Blargian:codex/docs-layout-dark
Open

Blargian wants to merge 17 commits into
ClickHouse:mainfrom
Blargian:codex/docs-layout-dark

Conversation

@Blargian

@Blargian Blargian commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

Not required.

Why

The documentation site uses a dark first-visit theme and a wider reading column. Published links, package metadata, and publishing automation still point at the retired site. This change moves those references to the current site.

Scope and risk

This changes the documentation theme defaults, public documentation URLs, package metadata, and publishing automation. It removes the retired publisher and repository-level llms.txt generator, removes an unused workflow write permission, and makes translation finalization build the current documentation site. The site generates llms.txt and llms-full.txt. It does not change server behavior, stored data, authorization, or plugin behavior.

It also converts numbered procedure sections in the English source pages to Steps and
Step components. Content preparation promotes only component-bearing pages to MDX,
escapes uppercase placeholders that MDX would parse as tags, and keeps step markers white
with a higher-contrast connector. Machine-translated pages remain unchanged. A
misclassified page could fail the MDX build, which the complete docs build covers.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert this change to restore the prior theme defaults and publisher.

Tests

  • make format
  • make lint
  • make typecheck
  • python -m pytest tests/unit/test_docs_site_indexnow.py tests/unit/test_published_links.py tests/unit/test_i18n.py tests/unit/test_i18n_lifecycle.py tests/unit/test_i18n_automation.py tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q
  • python -m pytest tests/unit/test_docs_reference.py tests/unit/test_page_summary.py tests/unit/test_doc_links.py tests/unit/test_public_copy.py tests/unit/test_i18n.py tests/unit/test_docs_site_hooks.py -q
  • LOOM_ENV_FILE= .venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q — 276 passed.
  • node --test docs/scripts/prepare-content.test.mjs
  • npm --prefix docs run build

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Codex; checked the link replacement, workflow removal, Steps component markup, rendered preview, test changes, and documentation build.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

Note

Medium Risk
Changes public documentation URLs, CI publishing, and the i18n merge gate; no server, auth, or data-plane behavior, but a broken Blume build or wrong canonical links would affect operators and agents.

Overview
Finishes the move from the MkDocs / GitHub Pages publisher to the Blume docs app at https://loom.clickhouse.com/docs/. The docs-site workflow no longer builds or deploys Pages; it only runs IndexNow after production deploys. Translation finalize validates merges with npm --prefix docs run build instead of mkdocs build --strict.

Repository llms.txt and the MkDocs hook stack (hooks.py, locales.py, redirects, theme overrides, etc.) are removed; docs_reference.py no longer writes root llms.txt. Agents are directed to site-generated /docs/llms.txt and llms-full.txt. Contributor docs now describe Blume as the build and describe llms.txt as a site artifact.

prepare-content.mjs gains the main content behavior: contiguous ## N. sections become Blume <Steps> (English pages promoted to MDX with placeholder escaping), stale translation notices from i18n blob stamps, locale staging during the mkdocs codemod, and rewrites of retired llms URLs. docs/theme.css styles step markers for light/dark contrast.

IndexNow build inputs and route helpers move toward scripts/i18n/site.py; many in-repo links drop fragile hash anchors in favor of page-level targets. Generated i18n READMEs still show mixed doc base URLs in the diff—worth confirming against the intended canonical host.

Reviewed by Cursor Bugbot for commit 6028b24. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 27, 2026 7:05pm UTC
loom-telemetry Ready Ready Preview Nov 27, 2026 7:05pm UTC

Request Review

@Blargian
Blargian force-pushed the codex/docs-layout-dark branch from cc9fc83 to 70b3f88 Compare November 24, 2026 12:45
@Blargian Blargian changed the title Documentation site uses a static build Documentation defaults to dark with a wider reading column Nov 24, 2026
@Blargian
Blargian marked this pull request as ready for review November 24, 2026 12:49
@Blargian Blargian changed the title Documentation defaults to dark with a wider reading column Move documentation publishing to the current site Nov 24, 2026
@Blargian
Blargian marked this pull request as draft November 24, 2026 13:27
@zlareb1 zlareb1 self-assigned this Nov 24, 2026
zlareb1
zlareb1 previously approved these changes Nov 24, 2026
@Blargian
Blargian marked this pull request as ready for review November 24, 2026 14:44
@Blargian

Copy link
Copy Markdown
Member Author

@zlareb1 Any reason to keep llms.txt and llms-full.txt in the repo? These get generated automatically now at https://loom.clickhouse.com/docs/llms.txt and https://loom.clickhouse.com/docs/llms-full.txt

@Blargian

Blargian commented Nov 24, 2026 •

Copy link
Copy Markdown
Member Author

I'll need to ask you to update this link here as well:

Screenshot 2026-11-24 at 15 45 44

I had requested maintainer access only for 12 hours so don't have access anymore

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The retained MkDocs configuration still runs a hook that requires a deleted file. The locale edits also leave edited generated pages stamped with their old source revision.

Comment thread mkdocs.yml Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The Python SDK snapshot and code.read scope-classification failures reproduce on this PR’s merge and on clean main. Both assertions pass with the tracked repair. Failed job · Repair #1293

@zlareb1

zlareb1 commented Nov 24, 2026

Copy link
Copy Markdown
Member

@Blargian yes, can be removed in this PR

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The HTTP contract failure reproduces on clean main. The repair collects the transport before Hypothesis draws inputs. The HTTP contract workflow on the repair merge passed. Failed job · Repair #1325.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The publisher hooks and generated translation page edits are removed. The repository guide fails the required format check on this head.

Comment thread docs/development/repository-guide.md Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The code.edit_context SDK snapshot, MCP primer, and read-scope failures reproduce on this PR's CI merge commit and on clean main before the repair. All five focused tests pass locally on the merged repair. Failed unit job · Repair #1328.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The prior format failure is fixed. The same four focused translation and release-link assertions pass on clean main and fail with the changed Markdown. The translation merge job also builds generated locale pages as MDX with write credentials.

Comment thread scripts/i18n/automation.py Resolved
Comment thread docs/getting-started/quickstart.md Resolved
Comment thread docs/getting-started/agent-setup.md Resolved
Comment thread docs/development/documentation-style.md Resolved
Comment thread llms.txt Resolved
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

@Blargian is attempting to deploy a commit to the ClickHouse Team on Vercel.

A member of the Team first needs to authorize it.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The source headings keep their release links. The generated site still drops the Quickstart anchor, omits the notice for retained translations of removed pages, and sends translated readers to the retired full index.

GitHub reports a conflict with main in .github/workflows/docs-site.yml, docs/index.md, and six other files. Resolve the conflicts against main.

Comment thread docs/scripts/prepare-content.mjs Resolved
Comment thread docs/scripts/prepare-content.mjs Resolved
Comment thread docs/scripts/prepare-content.mjs Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

GitHub reports merge conflicts with main in 12 files, including .github/workflows/docs-site.yml, docs/scripts/prepare-content.mjs, and mkdocs.yml. Please rebase the branch and resolve the conflicts.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The translated indexes link to the current full index. Two findings remain on this head. The prepared Agent setup page still links to the Quickstart fragment dropped by Steps, and a stamped translation with a removed English source still renders without the documented notice. The 20 content-preparation tests pass.

Quickstart anchor · Removed-source notice

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The previous CI run’s lesson lookup limit, memory.for_file analyzer, and ClickHouse 26.11 test storage failures reproduce on that run’s base without the publishing changes. The focused checks pass on the merged fix.

Previous CI run · Merged fix

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The built Quickstart preserves the linked step IDs, and retained translations of removed pages show a standalone notice. The docs build and all 22 content-preparation tests pass.

@zlareb1

zlareb1 commented Nov 25, 2026

Copy link
Copy Markdown
Member

@Blargian plz fix merge conflict

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

GitHub reports merge conflicts with main in llms.txt and tests/unit/test_docs_site_indexnow.py. The branch deletes both files and main modifies them. Please rebase and resolve those deletions against the publishing change.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Keep production URL submission when retiring the legacy publisher. The retained scripts/docs_site/redirect_pages.py:12 also imports _TOKEN from the deleted scripts/docs_site/hooks.py. Remove that orphaned script and its fragment manifest if the redirect publisher is retired.

Comment thread .github/workflows/docs-site.yml Resolved
The prose column uses more of the space between navigation and the page outline.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Published documentation links and metadata point at the current documentation site, and translation finalization no longer dispatches the retired publisher.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
The finalizer reads a validating CI run but no longer dispatches the retired documentation publisher.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
The remaining hooks read the retired root index during a MkDocs build.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
The documentation formatter removes the extra alignment space.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Numbered procedure headings bypassed the site component and did not share its visual treatment.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
The placeholder escape rewrote valid HTML tags and left their closing tags unmatched.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Converted procedures retain their source fragments, and stamped translations describe removed sources without linking to them.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
The production submission workflow still needs its route mapper after the legacy publisher and redirect assets are removed.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
@Blargian
Blargian force-pushed the codex/docs-layout-dark branch from abd850a to e2f6e41 Compare November 27, 2026 16:27

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread docs/scripts/prepare-content.mjs Resolved
Comment thread scripts/i18n/automation.py Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The main-only IndexNow job and its tests are restored, and the orphaned redirect script is gone. The current head still restores retired links in localized READMEs and indexes, including the Japanese documentation link and its full index. The translation finalizer also merges with GITHUB_TOKEN without dispatching IndexNow, so the merge itself cannot trigger URL submission. Localized links · Translation merge

Comment thread tests/unit/test_docs_site_indexnow.py Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The credential-error and sender-census assertions also failed on clean main, with the same source file and sender fingerprint as this run. Both assertions pass locally on the merged fix. PR credential job · PR sender job · Merged repair #1654

The translation finalizer dispatches IndexNow after the validated merge and the site maps retired locale index links to generated files.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
# Conflicts:
#	docs/index.md
#	docs/theme.css
#	scripts/docs_site/indexnow.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 5d28cff. Configure here.

Comment thread i18n/es/README.md
[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt) ·
[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt)
[`llms.txt`](https://clickhouse.github.io/loom/llms.txt) ·
[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Translated READMEs link to retired docs host

High Severity

Generated Spanish, Japanese, Korean, Portuguese, and Chinese README documentation links were switched from https://loom.clickhouse.com/docs/ to https://clickhouse.github.io/loom/, the retired publisher. The English README, the language-bar generator, and scripts/i18n/site.py SITE still use the current host, so the same translated README now mixes both. prepare-content does not rewrite i18n/*/README.md, so GitHub readers of those files get the dead site. The same reversal appears in the translated docs indexes for llms-full.txt.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5d28cff. Configure here.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The finalizer dispatches IndexNow after merging translations. A failed dispatch or submission still needs a retry path. The localized README links still point to the retired publisher. Localized links

def finalize() -> None:
"""Merge only an exact successful hosted CI head, with repository protections."""
repository = os.environ["GITHUB_REPOSITORY"]
sync_site(repository)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

P2 — Retry IndexNow after the translation PR has merged. If this dispatch fails or the workflow times out waiting for production, the next scheduled finalizer returns when there is no open translation PR. The merged pages then wait for an unrelated push or a manual dispatch. Restore a check for unsubmitted translation merges and cover a failed submission followed by an empty PR queue.

@Blargian Blargian Nov 27, 2026 •

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.

Fixed in 6028b24: when no translation PR is open, the finalizer compares the latest merged translation PR with completed docs-site runs and retries IndexNow unless a later run succeeded. The regressions cover a failed submission with an empty queue and an older PR updated after a newer merge.

Comment thread docs/scripts/prepare-content.test.mjs Resolved
@zlareb1

zlareb1 commented Nov 27, 2026

Copy link
Copy Markdown
Member

The sender census reports the same five fingerprint mismatches on this PR and its clean base. I reproduced the same assertion on current main. The existing repair updates those five fingerprints. PR job · Base job · Repair #1657

The finalizer retries a failed documentation submission after the translation queue empties.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
@Blargian
Blargian force-pushed the codex/docs-layout-dark branch from c961f28 to 6028b24 Compare November 27, 2026 19:03

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The IndexNow retry can mistake a run on an older commit for a submission of the translation merge. The localized README links still point to the retired publisher.

GitHub reports conflicts with main in docs/theme.css, llms.txt, and scripts/docs_site/indexnow.py. Please resolve those conflicts.

"status=completed&per_page=100"
)
submitted = any(
run.get("conclusion") == "success" and run.get("created_at", "") >= merged["merged_at"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

P2 — A successful docs-site run on the commit before the translation merge suppresses the retry if the two timestamps fall in the same second. I reproduced this with a run whose created_at equals the PR’s merged_at and whose head_sha predates merge_commit_sha. Require a successful indexnow job on the merge commit or a descendant before treating the translations as submitted.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants