Serve llms.txt and the Markdown source of each page for AI assistants

未关闭
#73 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
php
领域
documentation

调研方向

Start by reading the site's page generation and navigation code, along with the existing context7.json and documentation.md inputs. Identify how the current version's pages and front matter are made available, then determine where the two text indexes and per-page Markdown URLs fit into that flow. Done means all three URL types follow the navigation and update when the docs change.

由索引模型根据 Issue 内容生成。

描述

AI coding assistants read the docs when they work on a Mage-OS project. Today they get the rendered HTML page, which costs them more to read and is easier to misread than the Markdown it was made from. Mage-OS ships MageOS_Aeo so that stores can offer llms.txt; the documentation site should offer the same.

Proposal

  • /llms.txt: an index built from documentation.md: every page with its title, its description from the front matter and a link.
  • /llms-full.txt: all pages of the current version in one file.
  • The Markdown source of a page under a stable URL, for example the page URL with .md appended.

mage-os/devdocs already has a context7.json for Context7; this covers assistants that fetch the site directly.

Done when

  • /llms.txt and /llms-full.txt are served and follow the navigation.
  • Each page's Markdown can be fetched.
  • The files change when the docs change.
主要语言
PHP
星标
3
派生
11
平均合并
1 天 6 小时
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mage-os/devdocs-website 的其他 Issue

查看 mage-os/devdocs-website 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。