Skip to content

Commit 6d2105a

Browse files
authored
📄 docs: publish llms.txt from the docs build (#522)
1 parent 7e4746c commit 6d2105a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from __future__ import annotations
55

6+
import os
67
from datetime import datetime, timezone
78
from pathlib import Path
89

@@ -15,6 +16,7 @@
1516
release = __version__
1617
version = release
1718
extensions = [
19+
"sphinx_llm.txt",
1820
"sphinx.ext.autodoc",
1921
"sphinx.ext.autosectionlabel",
2022
"sphinx.ext.extlinks",
@@ -58,3 +60,5 @@
5860
towncrier_draft_working_directory = Path(__file__).parent.parent
5961
# Towncrier news fragments are rST snippets folded into changelog.rst at release; they are not standalone pages.
6062
exclude_patterns = ["changelog/*"]
63+
64+
markdown_http_base = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ docs = [
8080
"sphinx-autodoc-typehints>=3.9.2",
8181
"sphinx-copybutton>=0.5.2",
8282
"sphinx-design>=0.7",
83+
"sphinx-llm>=0.4.1",
8384
"sphinx-sitemap>=2.9",
8485
"sphinxcontrib-mermaid>=2",
8586
"sphinxcontrib-towncrier>=0.5.0a0",

0 commit comments

Comments
 (0)