Skip to content

chore(docs): Added mkdocs-llmstxt plugin setup for documentation#4248

Merged
ruben-arts merged 6 commits intoprefix-dev:mainfrom
lsetiawan:lsetiawan/add-llmstxt
Aug 5, 2025
Merged

chore(docs): Added mkdocs-llmstxt plugin setup for documentation#4248
ruben-arts merged 6 commits intoprefix-dev:mainfrom
lsetiawan:lsetiawan/add-llmstxt

Conversation

@lsetiawan
Copy link
Contributor

Overview

This PR adds mkdocs-llmstxt setup for Pixi documentation so that an LLM can easily use the docs as context without the need for parsing through the whole site. This is merely a proposal and open to any suggestions, questions, or further discussions. Thank you for your consideration and making such an amazing tool!! 😄

What is llmstxt?

It is essentially a markdown file that provides LLM friendly content. See https://llmstxt.org. By having this, AI agents can simply have this in their context to be able to generate a more accurate configuration for Pixi or use Pixi without the need of a full blown MCP as stated in #3830. It really servers as a starting point for LLM to get familiar with Pixi.

What is mkdocs-llmstxt?

It is a plugin for generating llmstxt. See https://github.com/pawamoy/mkdocs-llmstxt. Other documentation sites like pydantic has really leveraged this plugin to create llmstxt. This PR is actually inspired by that.

Demo

Below is just a quick screenshot of the output at http://127.0.0.1:8000/pixi/llms-full.txt.
Screenshot 2025-07-31 at 9 16 21 AM

Added mkdocs-llmstxt library as pypi-dependency
to the docs feature, so that we can have
llmstxt for pixi documentation.

---

Reference: https://github.com/pawamoy/mkdocs-llmstxt
Added llmstxt setup for pixi documentation that
we want to expose to an LLM as context.
@lucascolley lucascolley added the documentation Improvements or additions to documentation label Jul 31, 2025
Copy link
Contributor

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

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

This looks great in my eyes!

Expanded the markdown descriptions to be more LLM friendly by adding some instructions prompt on what pixi is and how to get started with it right off the bat.

The tool combines dependency management, task running, and environment isolation in a single workflow,
making it easy to share consistent development environments with others. See other documentation sections
for further details on how to use the software.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@baszalmstra I've expanded this section a bit on quick start with pixi. Please let me know if there are any inaccuracies. This example inspired me to expand this: https://github.com/astral-sh/uv/blob/785595bd35790154098beab422662862d655adde/mkdocs.template.yml#L85-L92

Updated mkdocs-llmstxt dependency to use
the conda package version.

---

Ref: prefix-dev#4248 (comment)
Ran 'pixi run lint' as instructed
to fix linting errors
Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

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

This looks good to me, and the result looks fine, a bit sad that docs building now takes longer but we'll see how anoying that will be 👍

@ruben-arts ruben-arts merged commit 7114b51 into prefix-dev:main Aug 5, 2025
41 of 42 checks passed
@lsetiawan lsetiawan deleted the lsetiawan/add-llmstxt branch August 5, 2025 21:01
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants