Skip to content

Docs-site titles fit in 70 characters and meta descriptions in 160 - #606

Merged
zlareb1 merged 5 commits into
mainfrom
docs-site/title-length
Nov 13, 2026
Merged

zlareb1 merged 5 commits into
mainfrom
docs-site/title-length

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (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):

...

Why

A search engine's site scan reports "Title too long" and "Meta Description too long or too short" for the documentation site. Search engines cut titles near 70 characters and descriptions near 160, and treat a very short description as missing.

  • Titles: three of the 183 pages have a heading that, with the theme's " - ClickHouse Loom" suffix, runs past 70: storage authority (84), autonomous agents (73) and storage layout (71).
  • Descriptions: each page's description is its first sentence. 30 pages had one longer than 160 characters (up to 240), and the release-process page's was 20 ("Loom follows SemVer.").

Scope and risk

  • scripts/docs_site/overrides/main.html overrides the theme's htmltitle block. The title is built as the theme builds it (the front-matter title, else the page title, then " - ClickHouse Loom", and the site name alone on the home page). When that would be longer than 70 characters, the page title stands alone. No page heading changes, and the Open Graph title is unchanged.
  • scripts/codegen/page_summary.py: the whole-word cut first_sentence already used becomes shorten(text, limit). It no longer drops a word that ends exactly at the cut, so 25 summary lines across docs/reference/ (operation fields, CLI, errors, workers) keep one more word. They are regenerated here.
  • scripts/docs_site/hooks.py: the site's meta description goes through shorten(…, 160). Both module docstrings say the site's description is the same sentence, cut to 160.
  • docs/development/release-process.md: the opening two sentences become one under 160 characters, so the page's summary says what the version covers. llms.txt is regenerated for it.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none. The next docs-site deploy on main applies it.
  • Rollback: revert.

Tests

mkdocs build --strict passes. Across all 183 built pages:

  • every index.html has exactly one <title>. The longest is now 66 characters, and only the three pages above lose the suffix. The home page and the 404 page still read ClickHouse Loom.
  • descriptions run from 27 to 160 characters.

test_docs_site_hooks.py checks the site cut on input where a plain 159-character slice ends inside a word. test_page_summary.py checks shorten when it fits, when the slice ends inside a word, and when it ends on a whole word. python scripts/codegen/docs_reference.py --check is current. test_docs_site_hooks.py, test_public_copy.py, test_doc_links.py, test_docs_reference.py and test_page_summary.py pass (267), and ruff and prettier are clean.

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

  • AI-generated (an agent wrote most of the diff): Claude Code. Checked by hand: the block mirrors the theme's own htmltitle (mkdocs-material 9.7.7 base.html), and the built titles and descriptions are measured above.

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

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed. (Template-only change: the docs-site, public-copy and doc-link tests above.)
  • Generated files are regenerated in this PR, not by hand: llms.txt and the docs/reference/ tables (python scripts/codegen/docs_reference.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited. (None.)
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version. (None.)
  • The frontend builds and its tests pass, if frontend/ changed. (Not 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.

🤖 Generated with Claude Code

@zlareb1 zlareb1 changed the title A docs-site page title drops the site-name suffix when the two would run past 70 characters Docs-site titles fit in 70 characters and meta descriptions in 160 Nov 13, 2026
zlareb1 and others added 5 commits November 13, 2026 10:41
…run past 70 characters

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…rs, and the release-process page opens with a full sentence

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…whole words, and the release-process summary fits in 160

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…e pages are regenerated for it, and the tests cover both cuts

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 force-pushed the docs-site/title-length branch from 35fa09a to d8aa39f Compare November 13, 2026 10:46
@zlareb1
zlareb1 merged commit d09f649 into main Nov 13, 2026
41 checks passed
@zlareb1
zlareb1 deleted the docs-site/title-length branch November 13, 2026 10:49
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.

1 participant