Documentation
¶
Overview ¶
Command llmsgen writes the documentation for AI agents into the built site (C-21.FR-8, C-21.AC-4): a Markdown version of every page of the navigation of mkdocs.yml, byte for byte its source; the specifications api/openapi.yaml and api/bridge.yaml under api/; the full text, one file per top-level section of the navigation, llms-full-<section>.txt, and one, llms-full-home.txt, for the top-level pages outside any section, each holding its pages in the order of the navigation with their relative links made absolute; llms-full-guide.txt, the template "full" of docs/llms.txt.tmpl when it defines one, the rules and the scenarios for agents; llms-full.txt, the list of those files; and llms.txt, rendered from the template docs/llms.txt.tmpl, an index, whose functions take every value from its source. Every link names the version given by -version under the site_url of mkdocs.yml. make docs runs it after the build. It fails, naming the file, when a page of the navigation does not exist or has no title, when two sections would write the same file, when the template names a page, an anchor, a phrase, a setting or an enum that its source no longer has, when a link of an output outside code is still relative or does not resolve under the site, when llms.txt, the guide or llms-full.txt links out of the site other than to a repository under https://github.com/muster-io/, when llms.txt does not link every file of the full text, and when llms.txt is larger than 32 KiB or any other output is 1 MiB or larger.