From ffbbf8e0b5a217e0723f64231882858076b0aa51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Wed, 12 Aug 2026 09:33:59 -0700 Subject: [PATCH] Publish llms.txt from the documentation --- docs/conf.py | 5 +++++ pyproject.toml | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 79ebfaf..adebbeb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,7 @@ # ruff:ignore[undocumented-public-module] from __future__ import annotations +import os from typing import TYPE_CHECKING from sphinx.domains.python import PythonDomain @@ -19,6 +20,7 @@ version, release = __version__, __version__.split("+")[0] extensions = [ + "sphinx_llm.txt", "sphinx.ext.autosectionlabel", "sphinx.ext.extlinks", "sphinx.ext.autodoc", @@ -71,3 +73,6 @@ def resolve_xref( # ruff:ignore[too-many-arguments, too-many-positional-argumen return super().resolve_xref(env, fromdocname, builder, type, target, node, contnode) app.add_domain(PatchedPythonDomain, override=True) + + +markdown_http_base = os.environ.get("READTHEDOCS_CANONICAL_URL", "") diff --git a/pyproject.toml b/pyproject.toml index b5fcb9a..57ebe12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ type = [ docs = [ "furo>=2025.9.25", "sphinx-autodoc-typehints>=3.5.1", + "sphinx-llm>=0.4.1", ] lint = [ "pre-commit-uv>=4.2",