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

Offen
#73 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
php
Bereich
documentation

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
PHP
Sterne
3
Forks
11
Ø Merge
1 T. 6 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus mage-os/devdocs-website

Alle Issues in mage-os/devdocs-website

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.