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

Ouverte
#73 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
55/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
php
Domaine
documentation

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
PHP
Étoiles
3
Forks
11
Merge moyen
1 j 6 h
PR mergées (30 j)
1

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de mage-os/devdocs-website

Toutes les issues de mage-os/devdocs-website

Issues similaires

Plus d'issues PHP

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.