Skip to content

docs: use description frontmatter so pages reach llms.txt - #2242

Merged
GigaHierz merged 1 commit into
mainfrom
GigaHierz/fix-llms-txt-descriptions
Aug 13, 2026
Merged

docs: use description frontmatter so pages reach llms.txt#2242
GigaHierz merged 1 commit into
mainfrom
GigaHierz/fix-llms-txt-descriptions

Conversation

@GigaHierz

Copy link
Copy Markdown
Contributor

Problem

https://docs.celo.org/llms.txt lists 277 pages, but only 8 carry a summary — the rest are bare - [Title](url.md) links.

Mintlify builds those summaries from the description frontmatter key only. This repo had been using og:description almost everywhere, which feeds the Open Graph meta tag and nothing else. The result: LLMs consuming Celo's docs get a link list with no signal about what any page contains.

Change

Scope is the 272 pages in docs.json navigation. _deprecated/ is not in navigation and does not appear in llms.txt, so it is untouched.

Change Files
Non-legacy: og:descriptiondescription, text preserved verbatim 106
Non-legacy: new description written from page content 94
Legacy: new og:description written 15
Duplicated intro line removed from body 31
Stray og:description dropped from a page carrying both (home/ramps.mdx) 1

legacy/** deliberately stays on og:description: deprecated Celo L1 documentation should remain description-less in llms.txt so it isn't surfaced as current guidance.

Notes for reviewers

  • Duplicated intro lines. 31 pages repeated their description verbatim as the first line of the body. Mintlify renders description as a subtitle under the title, so the sentence would have appeared twice. Those lines are removed, along with the --- rule that followed them on 16 pages. No other body content changed — the diff has zero removed lines that aren't a frontmatter key or one of these duplicated sentences.
  • Generated pages. tooling/contracts/{core,l1,fee-currencies,stablecoin}-contracts.mdx carry DO NOT EDIT THIS FILE MANUALLY. Their frontmatter is changed in the PAGE_HEADER_* constants in scripts/update_contracts.py, with the identical change applied to the .mdx files so re-running the generator is a no-op.
  • tooling/indexers/goldrush.mdx had no frontmatter at all; it now has title and description. Its existing ## GoldRush (powered by Covalent) heading is left in place, matching how codex.mdx is structured.

Verification

  • Conformance check across all nav pages: every non-legacy page has description and no og:description; every legacy page has og:description and no description.
  • YAML frontmatter parses on all 400 .mdx files.
  • npx mintlify broken-linkssuccess no broken links found.
  • npx mint dev renders 200 on spot-checks (/home/wallets, /specs/token-duality, /home/protocol/epoch-rewards/community-fund, /tooling/indexers/goldrush, /legacy/overview), with the deduped pages showing the sentence once.

After deploy, llms.txt should go from 8 summarized entries to ~215, with the 62 legacy/ entries still bare.

🤖 Generated with Claude Code

@GigaHierz
GigaHierz requested review from a team as code owners August 12, 2026 15:04
@GigaHierz
GigaHierz requested review from karlb and seolaoh and removed request for a team August 12, 2026 15:04
@palango

palango commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

needs a rebase

Mintlify builds llms.txt summaries from the `description` frontmatter key
only. This repo had been using `og:description` almost everywhere, which
feeds the Open Graph tag and nothing else, so 269 of the 277 entries in
llms.txt were bare title + URL links with no summary.

For the 272 pages in docs.json navigation:

- Non-legacy pages on `og:description` are renamed to `description`, text
  preserved verbatim (106 pages).
- Non-legacy pages with no description at all get one written from the page
  content (94 pages).
- `legacy/**` keeps `og:description` — deprecated L1 documentation should
  stay description-less in llms.txt so it isn't surfaced as current
  guidance. The 15 legacy pages that had neither key get `og:description`.
- `home/ramps.mdx` carried both keys; the redundant `og:description` is
  dropped.

31 pages repeated their description verbatim as the first line of the body.
Mintlify renders `description` as a subtitle under the title, so that line
is removed to avoid showing the same sentence twice — along with the `---`
rule that followed it on 16 of them.

The four `tooling/contracts/*` pages are generated, so their frontmatter is
changed in the `PAGE_HEADER_*` constants in `scripts/update_contracts.py`;
the same change is applied to the `.mdx` files so regenerating is a no-op.

`tooling/indexers/goldrush.mdx` had no frontmatter at all and now has
`title` and `description`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@GigaHierz
GigaHierz force-pushed the GigaHierz/fix-llms-txt-descriptions branch from e82e9c0 to 0e24a70 Compare August 13, 2026 10:54
@GigaHierz
GigaHierz merged commit a940f9a into main Aug 13, 2026
4 checks passed
@GigaHierz
GigaHierz deleted the GigaHierz/fix-llms-txt-descriptions branch August 13, 2026 10:56
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