Generate llms.txt
Writerside enables you to generate an llms.txt file with the contents of your documentation loosely formatted as Markdown. You can upload this file along with your documentation website or use it to create an LLM agent for your documentation. For information about the proposal to standardize this approach, see llmstxt.org.
Open buildprofiles.xml.
Add the
<llms-txt>
element:<llms-txt single-file="true"/>
This will instruct the builder to produce an llms.txt file with the full contents of the instance you are building.
If you want to produce individual files for each topic, set the single-file
attribute to false
:
<llms-txt single-file="false"/>
The builder will save the individual files in the _llms directory inside the produced artifact.
Do not specify the single-file
attribute if you want to produce both the llms.txt file and individual files per topic: <llms-txt/>
.