Repository navigation
docs: publish llms.txt index - #1272
Conversation
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: π Files selected for processing (3)
π§ Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. π WalkthroughWalkthroughChangesThe VitePress sidebar now lives in a separate module. A generator creates Documentation index
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: βͺ Minimal Β· up to This localized documentation change generates and publishes an llms.txt index while sharing the existing sidebar configuration; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant Sidebar
participant LLMGenerator
participant DocumentationSources
participant LLMIndex
Sidebar->>LLMGenerator: Provide linked sidebar pages
LLMGenerator->>DocumentationSources: Read page sources
DocumentationSources-->>LLMGenerator: Return lead descriptions
LLMGenerator->>LLMIndex: Write grouped documentation links
Poem
π₯ Pre-merge checks | β 5β Passed checks (5 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (1 skipped: 1 unsupported.) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThe PR adds a generated
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "fix(docs): preserve CLI placeholders in ..." | Re-trigger Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
β Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 69b18f0. Configure here.
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Instruction counts
No instruction-count regression above 1%. Only instruction counts gate. Wall clock is shown for context β on identical hardware it moves 4-20% run to run. Measured by tak β instruction-counted CLI benchmarks, stored in this repository's git notes.
|
### π Features - **(builtins)** add go_fix linter by [@sahidvelji](https://github.com/sahidvelji) in [#1224](#1224) - **(builtins)** add ls_lint linter by [@sahidvelji](https://github.com/sahidvelji) in [#1238](#1238) - **(builtins)** add golangci_lint_fmt formatter by [@sahidvelji](https://github.com/sahidvelji) in [#1244](#1244) - **(builtins)** add shellcheck fix via check_diff by [@sahidvelji](https://github.com/sahidvelji) in [#1237](#1237) - **(pkl)** embed the matching-version pkl package by [@sahidvelji](https://github.com/sahidvelji) in [#1218](#1218) - **(step)** render `dir` through tera by [@sahidvelji](https://github.com/sahidvelji) in [#1219](#1219) - **(step)** recheck applied diffs by [@jdx](https://github.com/jdx) in [#1243](#1243) - **(step)** allow configured command failures by [@jdx](https://github.com/jdx) in [#1291](#1291) ### π Bug Fixes - **(builtins)** repair Go linters that report success on bad code by [@sahidvelji](https://github.com/sahidvelji) in [#1225](#1225) - **(builtins)** broaden gomod_tidy glob to run tidy on .go changes by [@sahidvelji](https://github.com/sahidvelji) in [#1236](#1236) - **(builtins)** stage gomod_tidy manifest updates by [@jdx](https://github.com/jdx) in [#1240](#1240) - **(builtins)** recheck partial diff fixes by [@jdx](https://github.com/jdx) in [#1245](#1245) - **(builtins)** correct gitleaks scan modes by [@jdx](https://github.com/jdx) in [#1248](#1248) - **(stash)** skip empty pathspec stashes by [@jdx](https://github.com/jdx) in [#1283](#1283) - **(step)** resolve Windows command shims by [@jdx](https://github.com/jdx) in [#1221](#1221) - **(step)** relativize workspace paths to step directory by [@jdx](https://github.com/jdx) in [#1242](#1242) ### π Documentation - clarify subproject monorepo setup by [@jdx](https://github.com/jdx) in [#1239](#1239) - improve onboarding and navigation by [@jdx](https://github.com/jdx) in [#1247](#1247) - disable code ligatures by [@jdx](https://github.com/jdx) in [#1264](#1264) - publish llms.txt index by [@jdx](https://github.com/jdx) in [#1272](#1272) ### π‘οΈ Security - add sponsor logos to readme by [@jdx](https://github.com/jdx) in [#1250](#1250) ### π Other Changes - **(ci)** adopt mbx for Rust builds by [@jdx](https://github.com/jdx) in [#1229](#1229) - **(ci)** restrict trusted mbx runs to jdx by [@jdx](https://github.com/jdx) in [#1254](#1254) - **(ci)** isolate mbx OIDC permissions by [@jdx](https://github.com/jdx) in [#1258](#1258) - **(ci)** compare mbx with rust-cache by [@jdx](https://github.com/jdx) in [#1267](#1267) - **(ci)** adopt mbx 0.5.4 by [@jdx](https://github.com/jdx) in [#1279](#1279) - **(ci)** pin mr-boxington-action v1.0.1 by [@jdx](https://github.com/jdx) in [#1280](#1280) - **(ci)** use default Rust for cache benchmark by [@jdx](https://github.com/jdx) in [#1284](#1284) - **(ci)** bump mr-boxington action by [@jdx](https://github.com/jdx) in [#1282](#1282) - **(ci)** use server cache for dispatched benchmarks by [@jdx](https://github.com/jdx) in [#1285](#1285) - **(ci)** adopt mbx 0.7.0 by [@jdx](https://github.com/jdx) in [#1286](#1286) - **(sponsors)** replace 37signals with omacom foundation by [@jdx](https://github.com/jdx) in [#1249](#1249) - generate release notes before publishing by [@jdx](https://github.com/jdx) in [#1227](#1227) - automate generated cli versions by [@jdx](https://github.com/jdx) in [#1252](#1252) - seed mbx cache for fork PRs by [@jdx](https://github.com/jdx) in [#1262](#1262) - notarize the macOS release binary by [@jdx](https://github.com/jdx) in [#1266](#1266) - benchmark mbx against rust-cache on Linux by [@jdx](https://github.com/jdx) in [#1275](#1275) - remove pinned rust toolchain by [@jdx](https://github.com/jdx) in [#1235](#1235) - back mbx with the GitHub Actions cache alone by [@jdx](https://github.com/jdx) in [#1287](#1287) ### π¦οΈ Dependency Updates - update rust crate pklr to v1.5.0 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1222](#1222) - lock file maintenance by [@renovate[bot]](https://github.com/renovate[bot]) in [#1226](#1226) - bump usage to 6.4.0 by [@jdx](https://github.com/jdx) in [#1228](#1228) - update anthropics/claude-code-action action to v1.0.194 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1230](#1230) - update jdx/mise-action action to v4.2.5 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1231](#1231) - update rust crate demand to v2.1.0 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1241](#1241) - update anthropics/claude-code-action action to v1.0.195 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1251](#1251) - update rust crate pklr to v1.5.1 by [@renovate[bot]](https://github.com/renovate[bot]) in [#1260](#1260) - bump usage to 6.4.1 by [@jdx](https://github.com/jdx) in [#1273](#1273) - bump tak and mbx by [@jdx](https://github.com/jdx) in [#1274](#1274) - remove rust toolchain pins by [@jdx](https://github.com/jdx) in [#1276](#1276) ### New Contributors - @sahidvelji made their first contribution in [#1237](#1237) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Mechanical version and documentation URL updates with no runtime code changes in the diff. > > **Overview** > **Cuts release v1.57.0** by bumping the `hk` crate and CLI metadata from **1.56.1** to **1.57.0** (`Cargo.toml`, `Cargo.lock`, `hk.usage.kdl`, generated CLI docs). > > Adds the **[1.57.0] CHANGELOG** entry (features, fixes, CI/release work, and dependency updates since 1.56.1) and updates every **Pkl `amends` / `import` package URL** in README, docs, examples, and `hk-example.pkl` to point at the new GitHub release artifacts. > > No application logic changes in this diff; it packages already-merged work. Notable themes called out in the new changelog include new builtins (`go_fix`, `ls_lint`, `golangci_lint_fmt`, shellcheck fix), step-engine improvements (Tera `dir`, diff recheck, optional command failures), embedded matching-version Pkl, and assorted builtin/stash/Windows path fixes. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 57fec76. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: mise-en-dev <123107610+mise-en-dev@users.noreply.github.com>

Summary
docs/public/llms.txtfrom the VitePress sidebar and page introductionsmise run renderand publish it through the existing docs buildImplements the request in Discussion #1271.
Testing
mise run render(run twice; second run produced no diff)mise run docs:builddocs/.vitepress/dist/llms.txtmatchesdocs/public/llms.txtPATH="$PWD/target/debug:$PATH" mise x shellcheck@0.11.0 -- target/debug/hk check --allAI-assisted β Tool: Codex; model: openai/gpt-5; version: unavailable.
Note
Low Risk
Docs-only tooling and static asset generation; no runtime or security-sensitive code paths.
Overview
Adds a machine-readable
llms.txtindex athttps://hk.jdx.dev/llms.txtso coding agents can discover hk docs with short blurbs per page.Sidebar is moved from
config.mtsinto sharedsidebar.ts(still driven bycommands.jsonfor CLI pages). VitePress imports that module; a newllms.tsscript walks the same tree, maps links to Markdown, pulls the first prose paragraph after each H1 (with stripping/truncation), and writesdocs/public/llms.txt. Generation is wired asmise run render:llms(depends onrender:usage) so it runs with the rest ofrender; the committed file ships via VitePresspublic/.docs/package.jsonsets"type": "module"for the JSON import attribute insidebar.ts.Reviewed by Cursor Bugbot for commit 511f51c. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
New Features
llms.txtdocumentation index covering guides, configuration, CLI commands, reference material, and project documentation.Chores