Repository navigation
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Rsdoctor Bundle Diff AnalysisFound 6 projects in monorepo, 5 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 website_htmlPath:
📦 Download Diff Report: website_html Bundle Diff 📁 website_mdPath:
📦 Download Diff Report: website_md Bundle Diff 📁 website_jsPath:
📦 Download Diff Report: website_js Bundle Diff 📁 new_project_htmlPath:
📦 Download Diff Report: new_project_html Bundle Diff 📁 new_project_jsPath:
📦 Download Diff Report: new_project_js Bundle Diff Generated by Rsdoctor GitHub Action |
Deploying rspress-v2 with
|
| Latest commit: |
fb927be
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1c34b210.rspress-v2.pages.dev |
| Branch Preview URL: | https://soon-codex-docs-llms-head-ta.rspress-v2.pages.dev |
There was a problem hiding this comment.
🟡 Changes recommended
The English and Chinese docs should clarify that enabling injectLlmsHint adds links even when llms: false disables built-in generation of their target files.
1 open issue
What changed in this PR
This docs-only PR explains the two discovery links Rspress added to statically generated HTML in #3672. It updates the English and Chinese docs without changing runtime behavior.
Changes:
- Add both links to the Custom Head guides and point readers to
injectLlmsHint. - Explain in the configuration reference that
alternatepoints to the page’s Markdown anddescribedbypoints to thellms.txtindex. - Add a page description to each Custom Head guide.
| File | Description |
|---|---|
website/docs/zh/guide/advanced/custom-head.mdx |
Lists both links and adds a page description. |
website/docs/zh/api/config/config-theme.mdx |
Explains both link targets under injectLlmsHint. |
website/docs/en/guide/advanced/custom-head.mdx |
Lists both links and adds a page description. |
website/docs/en/api/config/config-theme.mdx |
Explains both link targets under injectLlmsHint. |
Review effort: Balanced
|
|
||
| - In SSG HTML output, it renders a visually hidden plain-text DOM element near the top of the page. It does not use `display: none`, the `hidden` attribute, `aria-hidden`, or nested links, so agent-side HTML-to-Markdown conversion can preserve the directive as text. | ||
| - In SSG HTML output, it adds two links to `<head>`: `<link rel="alternate" type="text/markdown">` points to the page's Markdown version, and `<link rel="describedby">` points to the `llms.txt` index. It also renders a visually hidden plain-text DOM element near the top of the page. The element does not use `display: none`, the `hidden` attribute, `aria-hidden`, or nested links, so agent-side HTML-to-Markdown conversion can preserve the directive as text. | ||
| - In SSG-MD Markdown output, it renders a blockquote string near the top of the Markdown page. |
24f4d8f to
dc7b15b
Compare

Motivation
#3672 tied the HTML discovery links to
injectLlmsHint. This could hide working Markdown andllms.txtURLs when the text hint was off, or when SSG-MD ran without HTML prerendering.Changes
alternatelink and thellms.txtdescribedbylink into each generated page’s HTML whenever the build generates SSG-MD output, including withssg: false. Crawlers can read both links without executing JavaScript.Validation
Core build, 24 targeted unit tests, 12 end-to-end tests, and the full spelling check passed. The end-to-end tests verify the links in the generated HTML for both the homepage and a nested page.