Skip to content

Commit 102f3b5

Browse files
authored
Feat/llms txt (#253)
* add dependency * enable extension * exclude autoapi pages
1 parent a850118 commit 102f3b5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"sphinx_multiversion",
5252
"sphinx.ext.napoleon",
5353
"sphinx_toolbox.collapse",
54+
"sphinx_llms_txt",
5455
]
5556

5657
templates_path = ["_templates"]
@@ -186,6 +187,7 @@
186187

187188
repo_root = Path(__file__).resolve().parents[2] # if conf.py is in docs/
188189

190+
llms_txt_exclude = ["autoapi*"]
189191

190192
def setup(app: Sphinx) -> None:
191193
generate_versions_json(repo_root, BASE_URL)

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ docs = [
8686
"ipykernel (>=6.29.5,<7.0.0)",
8787
"tensorboardx (>=2.6.2.2,<3.0.0)",
8888
"sphinx-multiversion (>=0.2.4,<1.0.0)",
89-
"sphinx-toolbox (>=4.0.0, <5.0.0)"
89+
"sphinx-toolbox (>=4.0.0,<5.0.0)",
90+
"sphinx-llms-txt (>=0.3.0,<0.4.0)"
9091
]
9192
dspy = [
9293
"dspy (>=2.6.5,<3.0.0)",

0 commit comments

Comments
 (0)