Repository navigation
Docs-site titles fit in 70 characters and meta descriptions in 160 - #606
Merged
Merged
Conversation
…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]>
…eeps Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
docs-site/title-length
branch
from
November 13, 2026 10:46
35fa09a to
d8aa39f
Compare
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
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.
Scope and risk
scripts/docs_site/overrides/main.htmloverrides the theme'shtmltitleblock. 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 cutfirst_sentencealready used becomesshorten(text, limit). It no longer drops a word that ends exactly at the cut, so 25 summary lines acrossdocs/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 throughshorten(…, 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.txtis regenerated for it.Compatibility, rollout and rollback
docs-sitedeploy on main applies it.Tests
mkdocs build --strictpasses. Across all 183 built pages:index.htmlhas 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 readClickHouse Loom.test_docs_site_hooks.pychecks the site cut on input where a plain 159-character slice ends inside a word.test_page_summary.pychecksshortenwhen it fits, when the slice ends inside a word, and when it ends on a whole word.python scripts/codegen/docs_reference.py --checkis current.test_docs_site_hooks.py,test_public_copy.py,test_doc_links.py,test_docs_reference.pyandtest_page_summary.pypass (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.7base.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 typecheckandmake test-unitpass; the integration suite passes if server behaviour changed. (Template-only change: the docs-site, public-copy and doc-link tests above.)llms.txtand thedocs/reference/tables (python scripts/codegen/docs_reference.py).main; no merged migration is edited. (None.)frontend/changed. (Not changed.)docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code