Repository navigation
feat(docs): serve llms.txt and Markdown pages for agents - #159
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Nov 2, 2026 11:15p.m. | Review ↗ | |
| JavaScript | Nov 2, 2026 11:15p.m. | Review ↗ | |
| Shell | Nov 2, 2026 11:15p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
There was a problem hiding this comment.
2 issues found across 42 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="docs/src/content/docs/internals/engine.md">
<violation number="1" location="docs/src/content/docs/internals/engine.md:3">
P3: This description attributes exit-code handling to the engine, but the CLI determines exit codes from the engine’s `Result<Report>`. Clarify that distinction in the summary.</violation>
</file>
<file name="docs/src/content/docs/reference/environment.md">
<violation number="1" location="docs/src/content/docs/reference/environment.md:3">
P2: This description promises complete coverage, but the table omits `MISE_DATA_DIR` and `XDG_DATA_HOME`, which control where local runs find existing mise installs. Add those entries or narrow the description’s claim.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| @@ -1,5 +1,6 @@ | |||
| --- | |||
| title: "Environment variables" | |||
| description: "Every environment variable patchula reads, which commands use it, and what it does." | |||
There was a problem hiding this comment.
P2: This description promises complete coverage, but the table omits MISE_DATA_DIR and XDG_DATA_HOME, which control where local runs find existing mise installs. Add those entries or narrow the description’s claim.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/src/content/docs/reference/environment.md, line 3:
<comment>This description promises complete coverage, but the table omits `MISE_DATA_DIR` and `XDG_DATA_HOME`, which control where local runs find existing mise installs. Add those entries or narrow the description’s claim.</comment>
<file context>
@@ -1,5 +1,6 @@
---
title: "Environment variables"
+description: "Every environment variable patchula reads, which commands use it, and what it does."
---
| Variable | Used by | Meaning |
</file context>
| @@ -1,5 +1,6 @@ | |||
| --- | |||
| title: "Batch engine" | |||
| description: "How the engine reads repositories, looks up updates, builds the report and exit codes, and writes branches." | |||
There was a problem hiding this comment.
P3: This description attributes exit-code handling to the engine, but the CLI determines exit codes from the engine’s Result<Report>. Clarify that distinction in the summary.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/src/content/docs/internals/engine.md, line 3:
<comment>This description attributes exit-code handling to the engine, but the CLI determines exit codes from the engine’s `Result<Report>`. Clarify that distinction in the summary.</comment>
<file context>
@@ -1,5 +1,6 @@
---
title: "Batch engine"
+description: "How the engine reads repositories, looks up updates, builds the report and exit codes, and writes branches."
---
`patchula-engine::Engine` takes a token, the shared SQLite cache, a
</file context>
| description: "How the engine reads repositories, looks up updates, builds the report and exit codes, and writes branches." | |
| description: "How the engine reads repositories, looks up updates, builds reports and writes branches, and how the CLI determines exit codes." |
|
Docs7 for sweepies/count-patchula
Commit |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | e8b66fe | Commit Preview URL Branch Preview URL |
Nov 02 2026, 10:42 PM |
| @@ -1,5 +1,6 @@ | |||
| --- | |||
| title: "Environment variables" | |||
| description: "The environment variables patchula reads, which commands use each one, and what it does." | |||
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
- Add page descriptions to the 31 pages that fell back to the site tagline. - Generate llms.txt, llms-full.txt, llms-small.txt and per-section sets with starlight-llms-txt; llms.txt lists every page with its description. - Write a Markdown copy of every page to <page>/index.md, converted from the built HTML so MDX components and the imported Pkl schemas survive, and link it from each page's head. - Put a Worker in front of the pages that serves the Markdown copy to requests preferring text/markdown, with Vary: Accept. - Add SoftwareApplication JSON-LD to the home page and content signals to robots.txt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ions Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
e8b66fe to
71850b6
Compare
Makes the docs site easier to find for search engines and easier to read for AI agents.
description, so they all shared the site tagline as their meta description. Every page has its own now.llms.txt,llms-full.txt,llms-small.txt(leaves out internals and benchmarks) and one set per section. Thedetailsinllms.txtlist every sidebar page with its description, linked to its Markdown copy.docs/src/plugins/markdown-pages.mjs) writes<page>/index.mdfrom the built HTML. No existing plugin fit: the ones that emit per-page Markdown convert from MDX source, which drops the?raw-imported Pkl schemas on the two reference pages. Each page links its copy with<link rel="alternate" type="text/markdown">.Accept: text/markdown: Workers static assets can't vary on Accept, and Cloudflare's Markdown for Agents needs a Pro zone.docs/worker.jsruns before pages only (not_astro/orpagefind/), serves the.mdcopy when text/markdown ranks at least as high as text/html, and addsVary: Accept.SoftwareApplicationon the home page, and aContent-Signalline inrobots.txt(search, ai-input and ai-train all allowed).Tested locally with
wrangler dev(Accept variants, q-values, the trailing-slash redirect, 404s and plain assets).🤖 Generated with Claude Code