Skip to content

Llms txt for website#1874

Merged
Jolanrensen merged 2 commits into
masterfrom
llms-txt2
May 27, 2026
Merged

Llms txt for website#1874
Jolanrensen merged 2 commits into
masterfrom
llms-txt2

Conversation

@Jolanrensen
Copy link
Copy Markdown
Collaborator

@Jolanrensen Jolanrensen commented May 27, 2026

Follow up for #1615 and related to #1258.

Required for: Kotlin/kotlin-agent-skills#48

Enables llms-txt in WriterSide. This generates a txt file for each topic in the Writerside _llms folder.
It also generates an llms.txt file containing everything in one file.
However, this is probably too large for most LLMs to parse, so similar to how kotlinlang.org uses a script to
create an index-like llms.txt https://github.com/JetBrains/kotlin-web-site/blob/master/scripts/llms/generate-llms-index.mjs
I (and Junie) did a similar thing.
Using scripts/llms/generate-llms-index.mjs, our GitHub action now renames the big llms.txt file to llms-full.txt
and generates a new llms.txt serving as a table-of-contents for all generated llm files.

For example:
llms.txt
llms-full.txt
_llms/add.txt
...

@Jolanrensen Jolanrensen added documentation Improvements or additions to documentation (not KDocs) infrastructure GitHub actions, Gradle Scripts, Writerside, etc. labels May 27, 2026
@Jolanrensen
Copy link
Copy Markdown
Collaborator Author

While I could test the script works locally, I cannot check it works well with gh actions yes. I will merge and try :)

@Jolanrensen Jolanrensen merged commit 13e61c5 into master May 27, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation (not KDocs) infrastructure GitHub actions, Gradle Scripts, Writerside, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants