Options: search and llms.txt
Two features of the site that you can turn on or off: the search dialog with search, and the map for language models with llms.
The keys are documented in the configuration reference, under search and llms. This page shows them in use and says what they change. How search works for a reader is in Search, and what llms.txt is for is in llms.txt.
Search
{
"search": { "enabled": false }
}Search is on when the key is missing. With enabled set to false the build changes in three places:
- The header has no Search button, and the pages have no search dialog.
- The file
search-index.jsonis not written, so there is nothing to download. sitekit checkdoes not look for the index.
Leave it on for a site with more than a few pages. Turn it off for a one page site, where the dialog would find nothing the reader cannot see.
llms.txt and Markdown copies
{
"collections": [
{ "id": "docs", "label": "Docs", "dir": "../docs" },
{ "id": "examples", "label": "Examples", "dir": "../examples" }
],
"llms": {
"enabled": true,
"optional": ["examples"],
"markdownPages": true
}
}The example has the collections too, because optional names one of them.
enabledwritesllms.txtat the site base, with the name of the site, its description, the install command and the repository, and one section for each collection with a line- [title](address): descriptionfor each page. Every page of the site also gets<link rel="describedby" href="https://.../llms.txt">in its head. Without it there is no file and no link.optionalmoves the pages of the collections it names to a section called## Optional, at the end of the file, which a tool may skip when it needs a shorter text. In the example above, the pages of Examples are listed there and the pages of Docs are in their own section.changelogis accepted as well. An id that is not a collection fails the build:llms.optional names "nope", which is not a collection of this site.markdownPageswrites a Markdown copy of each page next to its HTML, asindex.html.mdin the folder of the page, and adds<link rel="alternate" type="text/markdown">to the head of the page that points to it. It has an effect only whenenabledis alsotrue.
Edit this page
Last updated