Skip to content

Commit bd9dca9

Browse files
authored
📄 docs: publish llms.txt from the docs build (#668)
1 parent dfb5865 commit bd9dca9

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
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import os
56
from datetime import datetime, timezone
67
from pathlib import Path
78

@@ -14,6 +15,7 @@
1415
globals()["copyright"] = f"2014-{datetime.now(tz=timezone.utc).year}, {company}"
1516

1617
extensions = [
18+
"sphinx_llm.txt",
1719
"sphinx.ext.autosectionlabel",
1820
"sphinx.ext.doctest",
1921
"sphinx.ext.extlinks",
@@ -62,3 +64,5 @@
6264
"user": ("https://github.com/%s", "@%s"),
6365
"pypi": ("https://pypi.org/project/%s", "%s"),
6466
}
67+
68+
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
@@ -68,6 +68,7 @@ docs = [
6868
"sphinx>=9.1",
6969
"sphinx-copybutton>=0.5.2",
7070
"sphinx-inline-tabs>=2025.12.21.14",
71+
"sphinx-llm>=0.4.1",
7172
"sphinxcontrib-mermaid>=2.1",
7273
"sphinxcontrib-towncrier>=0.5.0a0",
7374
"towncrier>=25.8",

0 commit comments

Comments
 (0)