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

Aperta
#73 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
PHP
Stelle
3
Fork
11
Merge medio
1g 6h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mage-os/devdocs-website

Tutte le issue di mage-os/devdocs-website

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.