Skip to content

Commit 5c1926f

Browse files
authored
Add sphinx-llms-txt extension (#2034)
1 parent 8e1f0a0 commit 5c1926f

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

docs/conf.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"sphinx_copybutton",
5757
"sphinx_design",
5858
"sphinx_examples",
59+
"sphinx_llms_txt",
5960
"sphinx_reredirects",
6061
"sphinx_sitemap",
6162
"sphinx_tippy",
@@ -204,8 +205,8 @@
204205
"attributes": {
205206
"target": "_blank",
206207
"rel": "noopener me",
207-
"class": "nav-link custom-fancy-css"
208-
}
208+
"class": "nav-link custom-fancy-css",
209+
},
209210
},
210211
{
211212
"name": "Mastodon",
@@ -215,8 +216,8 @@
215216
"attributes": {
216217
"target": "_blank",
217218
"rel": "noopener me",
218-
"class": "nav-link custom-fancy-css"
219-
}
219+
"class": "nav-link custom-fancy-css",
220+
},
220221
},
221222
{
222223
"name": "YouTube",
@@ -226,8 +227,8 @@
226227
"attributes": {
227228
"target": "_blank",
228229
"rel": "noopener me",
229-
"class": "nav-link custom-fancy-css"
230-
}
230+
"class": "nav-link custom-fancy-css",
231+
},
231232
},
232233
{
233234
"name": "X (formerly Twitter)",
@@ -237,8 +238,8 @@
237238
"attributes": {
238239
"target": "_blank",
239240
"rel": "noopener me",
240-
"class": "nav-link custom-fancy-css"
241-
}
241+
"class": "nav-link custom-fancy-css",
242+
},
242243
},
243244
],
244245
"logo": {
@@ -453,6 +454,7 @@
453454

454455
# -- Configuration for source_replacements extension -----------------------
455456

457+
456458
# An extension that allows replacements for code blocks that
457459
# are not supported in `rst_epilog` or other substitutions.
458460
# https://stackoverflow.com/a/56328457/2214933
@@ -468,6 +470,7 @@ def source_replace(app, docname, source):
468470
"{PLONE_BACKEND_MINOR_VERSION}": "6.1",
469471
}
470472

473+
471474
# Finally, configure app attributes.
472475
def setup(app):
473476
app.add_config_value("source_replacements", {}, True)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sphinx-autobuild
44
sphinx-copybutton
55
sphinx-design # Documentation only
66
sphinx-examples
7+
sphinx-llms-txt
78
sphinx-notfound-page # Documentation only
89
sphinx-reredirects
910
sphinx-sitemap

0 commit comments

Comments
 (0)