Skip to content

Commit dc0ade4

Browse files
docs: Expose an llms.txt file in the documentation
Signed-off-by: Edgar Ramírez-Mondragón <edgarrm358@gmail.com>
1 parent 91b5fa8 commit dc0ade4

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Documentation
6+
7+
- Expose an `llms.txt` file in the documentation [#111](https://github.com/python-backoff/backoff/pull/111)
8+
59
### Internal
610

711
- Apply the Ruff `RET` rules [#92](https://github.com/python-backoff/backoff/pull/92) (from [@edgarrmondragon](https://github.com/edgarrmondragon))

mkdocs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
site_url: https://backoff.readthedocs.io/
1+
# site_url: https://backoff.readthedocs.io/
2+
site_url: http://localhost:8000
23
site_description: Python library providing function decorators for configurable backoff and retry
34
site_name: backoff
45
repo_url: https://github.com/python-backoff/backoff
@@ -43,6 +44,15 @@ plugins:
4344
docstring_style: google
4445
show_root_heading: yes
4546
show_source: yes
47+
- llmstxt:
48+
markdown_description: Python library providing function decorators for configurable backoff and retry.
49+
full_output: llms-full.txt
50+
sections:
51+
Usage documentation:
52+
- getting-started.md: Getting Started
53+
- user-guide/*.md
54+
API reference:
55+
- api/reference.md
4656
nav:
4757
- Home: index.md
4858
- Getting Started: getting-started.md

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ dev = [
4545
{ include-group = "typing" },
4646
]
4747
docs = [
48-
"mkdocstrings[python]~=1.0.2",
48+
"mkdocstrings[python]==1.0.3",
49+
"mkdocs-llmstxt==0.5.0",
4950
"zensical==0.0.23",
5051
]
5152
lint = [

requirements/docs.requirements.txt

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile pyproject.toml --group=docs --python-version=3.14 --output-file=requirements/docs.requirements.txt
3+
beautifulsoup4==4.14.3
4+
# via
5+
# markdownify
6+
# mkdocs-llmstxt
37
click==8.3.1
48
# via
59
# mkdocs
@@ -29,12 +33,24 @@ markdown==3.10.2
2933
# mkdocstrings
3034
# pymdown-extensions
3135
# zensical
36+
markdown-it-py==3.0.0
37+
# via mdformat
38+
markdownify==1.2.2
39+
# via mkdocs-llmstxt
3240
markupsafe==3.0.3
3341
# via
3442
# jinja2
3543
# mkdocs
3644
# mkdocs-autorefs
3745
# mkdocstrings
46+
mdformat==0.7.22
47+
# via
48+
# mdformat-tables
49+
# mkdocs-llmstxt
50+
mdformat-tables==1.0.0
51+
# via mkdocs-llmstxt
52+
mdurl==0.1.2
53+
# via markdown-it-py
3854
mergedeep==1.3.4
3955
# via
4056
# mkdocs
@@ -49,6 +65,8 @@ mkdocs-autorefs==1.4.4
4965
# mkdocstrings-python
5066
mkdocs-get-deps==0.2.0
5167
# via mkdocs
68+
mkdocs-llmstxt==0.5.0
69+
# via python-backoff (pyproject.toml:docs)
5270
mkdocstrings==1.0.3
5371
# via
5472
# python-backoff (pyproject.toml:docs)
@@ -79,8 +97,16 @@ pyyaml==6.0.3
7997
pyyaml-env-tag==1.1
8098
# via mkdocs
8199
six==1.17.0
82-
# via python-dateutil
100+
# via
101+
# markdownify
102+
# python-dateutil
103+
soupsieve==2.8.3
104+
# via beautifulsoup4
105+
typing-extensions==4.15.0
106+
# via beautifulsoup4
83107
watchdog==6.0.0
84108
# via mkdocs
109+
wcwidth==0.6.0
110+
# via mdformat-tables
85111
zensical==0.0.23
86112
# via python-backoff (pyproject.toml:docs)

0 commit comments

Comments
 (0)