Skip to content

doc: configure docs to generate llms.txt - #1538

Open
elijahgreenstein wants to merge 1 commit into
canonical:mainfrom
elijahgreenstein:doc-sphinx-llm
Open

doc: configure docs to generate llms.txt#1538
elijahgreenstein wants to merge 1 commit into
canonical:mainfrom
elijahgreenstein:doc-sphinx-llm

Conversation

@elijahgreenstein

Copy link
Copy Markdown
Contributor

Adds a Sphinx extension to auto-generate llms.txt and llms-full.txt files. Extension documentation is available here:
https://sphinx-llms-txt.readthedocs.io/en/latest/

Adds a Sphinx extension to auto-generate `llms.txt` and `llms-full.txt`
files. Extension documentation is available here:
https://sphinx-llms-txt.readthedocs.io/en/latest/

Signed-off-by: Elijah Greenstein <elijah.greenstein@canonical.com>
@github-actions github-actions Bot added the Documentation Documentation needs updating label Sep 3, 2026
Comment thread doc/conf.py
# product docs.
llms_txt_description = textwrap.dedent(
"""\
This is the documentation for MicroCloud, an open source cloud platform.

@roosterfish roosterfish Sep 4, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth using any of the short descriptions we already actively use?

  • GH project desc: "Automated private cloud based on LXD, Ceph and OVN"
  • Product page: "MicroCloud: your open source cloud platform"
  • Docs: "Deploy a low-touch, open source cloud platform in minutes with MicroCloud."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to keep the "This is the documentation for" part of the description, to provide context for what is in the llms.txt file (though I don't believe there's consensus about how LLMs actually "use" these files). This llms_txt_description only appears at the top of the llms.txt file, which is a list of the docs pages, with titles and descriptions from the page metadata. You can see it in the RTD build here: https://canonical-microcloud--1538.com.readthedocs.build/1538/llms.txt.

It might be worth bringing in a few more keywords, though. How about an adaptation of the GH project desc?

This is the documentation for MicroCloud: automated private cloud based on LXD, Ceph, and OVN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation needs updating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants