[PR #1161] [CLOSED] docs: add llms.txt support for improved AI accessibility #9832

Closed
opened 2026-02-16 18:14:14 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1161
Author: @bstncartwright
Created: 7/19/2025
Status: Closed

Base: devHead: add-starlight-llms-txt


📝 Commits (1)

  • 7c37641 Add llms.txt support to documentation site for improved AI accessibility

📊 Changes

3 files changed (+61 additions, -14 deletions)

View changed files

📝 bun.lock (+29 -0)
📝 packages/web/astro.config.mjs (+31 -14)
📝 packages/web/package.json (+1 -0)

📄 Description

I wanted to have opencode help me configure AGENTS.md and opencode.json files. I was able to accomplish this by linking it to https://opencode.ai/docs/rules/, but realized it could be a lot more efficient if the site supported llms.txt.

This pull request updates the astro.config.mjs file to integrate the starlight-llms-txt plugin for custom documentation sets. It also updates the package.json file to include the new plugin as a dependency. Below are the key changes:

Sidebar Configuration Improvements:

  • Extracted the sidebar array into a separate constant for reuse, simplifying the configuration and avoiding duplication. (packages/web/astro.config.mjs, [1] [2]

Plugin Integration:

  • Added the starlight-llms-txt plugin to the astro.config.mjs file, enabling the creation of custom documentation sets based on the sidebar structure. This includes filtering out the main "docs" link and generating metadata for each documentation section. (packages/web/astro.config.mjs, packages/web/astro.config.mjsR90-R102)
  • Added starlight-llms-txt version 0.5.1 as a new dependency in package.json. (packages/web/package.json, packages/web/package.jsonR34)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1161 **Author:** [@bstncartwright](https://github.com/bstncartwright) **Created:** 7/19/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `add-starlight-llms-txt` --- ### 📝 Commits (1) - [`7c37641`](https://github.com/anomalyco/opencode/commit/7c37641c8b1a1173fa4f146643c8b86f8b0e94c6) Add llms.txt support to documentation site for improved AI accessibility ### 📊 Changes **3 files changed** (+61 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `bun.lock` (+29 -0) 📝 `packages/web/astro.config.mjs` (+31 -14) 📝 `packages/web/package.json` (+1 -0) </details> ### 📄 Description I wanted to have opencode help me configure `AGENTS.md` and `opencode.json` files. I was able to accomplish this by linking it to https://opencode.ai/docs/rules/, but realized it could be a lot more efficient if the site supported `llms.txt`. This pull request updates the `astro.config.mjs` file to integrate the `starlight-llms-txt` plugin for custom documentation sets. It also updates the `package.json` file to include the new plugin as a dependency. Below are the key changes: ### Sidebar Configuration Improvements: * Extracted the sidebar array into a separate constant for reuse, simplifying the configuration and avoiding duplication. (`packages/web/astro.config.mjs`, [[1]](diffhunk://#diff-90313e0977f7dc0c9bc2844e660601c5a98740b97e1a739cbcc290389eebe8ceR6-R30) [[2]](diffhunk://#diff-90313e0977f7dc0c9bc2844e660601c5a98740b97e1a739cbcc290389eebe8ceL63-R80) ### Plugin Integration: * Added the `starlight-llms-txt` plugin to the `astro.config.mjs` file, enabling the creation of custom documentation sets based on the sidebar structure. This includes filtering out the main "docs" link and generating metadata for each documentation section. (`packages/web/astro.config.mjs`, [packages/web/astro.config.mjsR90-R102](diffhunk://#diff-90313e0977f7dc0c9bc2844e660601c5a98740b97e1a739cbcc290389eebe8ceR90-R102)) * Added `starlight-llms-txt` version `0.5.1` as a new dependency in `package.json`. (`packages/web/package.json`, [packages/web/package.jsonR34](diffhunk://#diff-e35631c960979816b4b2bda7950788e968930fcaf2cf39b482ff23117cd13888R34)) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:14 -05:00
yindo closed this issue 2026-02-16 18:14:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9832