Skip to content

Commit a56b424

Browse files
committed
Add llms.txt and llms-full.txt generation
1 parent dc72308 commit a56b424

11 files changed

Lines changed: 94 additions & 86 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
- python-version: "3.13"
4444
env:
4545
TOXENV: "json"
46+
# Keep in sync with pyproject.toml's
47+
# tool.sphinx-scrapy.python-version.
48+
- python-version: "3.14"
49+
env:
50+
TOXENV: "docs"
4651

4752
# https://github.com/kevin1024/vcrpy/issues/885
4853
# - python-version: "pypy3.11-v7.3.20"

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repos:
2+
- repo: https://github.com/scrapy/sphinx-scrapy
3+
rev: 999017c29b8bc213843e86e0e350a85c47493e34
4+
hooks:
5+
- id: sphinx-scrapy

.readthedocs.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
version: 2
2-
formats: all
3-
sphinx:
4-
configuration: docs/conf.py
5-
fail_on_warning: true
62
build:
7-
os: ubuntu-22.04
3+
os: ubuntu-24.04
84
tools:
9-
# For available versions, see:
10-
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
11-
python: "3.10" # Keep in sync with .github/workflows/main.yml
12-
python:
13-
install:
14-
- requirements: docs/requirements.txt
15-
- path: .
5+
python: "3.14"
6+
commands:
7+
- pip install tox
8+
- tox -e docs
9+
- cp -a docs/_build/all/. $READTHEDOCS_OUTPUT/html/

docs/Makefile

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/conf.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# Add any Sphinx extension module names here, as strings. They can be
4040
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4141
# ones.
42-
extensions = ['sphinx.ext.autodoc']
42+
extensions = ['sphinx_scrapy']
4343

4444
# Add any paths that contain templates here, relative to this directory.
4545
templates_path = ['_templates']
@@ -160,9 +160,3 @@
160160
author, 'python-scrapinghub', 'One line description of project.',
161161
'Miscellaneous'),
162162
]
163-
164-
# Set Sphinx Read The Docs theme
165-
import sphinx_rtd_theme
166-
167-
html_theme = 'sphinx_rtd_theme'
168-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

docs/make.bat

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Quickstart
44
Requirements
55
------------
66

7-
* Python 3.8+
7+
* Python 3.9+
88

99

1010
Installation

docs/requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx-rtd-theme
2+
sphinx-scrapy @ git+https://github.com/scrapy/sphinx-scrapy.git@999017c29b8bc213843e86e0e350a85c47493e34

docs/requirements.txt

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,68 @@
1-
sphinx==7.2.6
2-
sphinx-rtd-theme==2.0.0
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile requirements.in
3+
alabaster==1.0.0
4+
# via sphinx
5+
babel==2.18.0
6+
# via sphinx
7+
certifi==2026.2.25
8+
# via requests
9+
charset-normalizer==3.4.6
10+
# via requests
11+
docutils==0.22.4
12+
# via
13+
# sphinx
14+
# sphinx-markdown-builder
15+
# sphinx-rtd-theme
16+
idna==3.11
17+
# via requests
18+
imagesize==2.0.0
19+
# via sphinx
20+
jinja2==3.1.6
21+
# via sphinx
22+
markupsafe==3.0.3
23+
# via jinja2
24+
packaging==26.0
25+
# via
26+
# sphinx
27+
# sphinx-scrapy
28+
pygments==2.19.2
29+
# via sphinx
30+
requests==2.32.5
31+
# via sphinx
32+
roman-numerals==4.1.0
33+
# via sphinx
34+
snowballstemmer==3.0.1
35+
# via sphinx
36+
sphinx==9.1.0
37+
# via
38+
# sphinx-llms-txt
39+
# sphinx-markdown-builder
40+
# sphinx-rtd-theme
41+
# sphinx-scrapy
42+
# sphinxcontrib-jquery
43+
sphinx-llms-txt==0.7.1
44+
# via sphinx-scrapy
45+
sphinx-markdown-builder @ git+https://github.com/AdrianAtZyte/sphinx-markdown-builder.git@2050ffaed43fcc523e03cc7a677cbcb5f5f6d30b
46+
# via sphinx-scrapy
47+
sphinx-rtd-theme==3.1.0
48+
# via -r requirements.in
49+
sphinx-scrapy @ git+https://github.com/scrapy/sphinx-scrapy.git@999017c29b8bc213843e86e0e350a85c47493e34
50+
# via -r requirements.in
51+
sphinxcontrib-applehelp==2.0.0
52+
# via sphinx
53+
sphinxcontrib-devhelp==2.0.0
54+
# via sphinx
55+
sphinxcontrib-htmlhelp==2.1.0
56+
# via sphinx
57+
sphinxcontrib-jquery==4.1
58+
# via sphinx-rtd-theme
59+
sphinxcontrib-jsmath==1.0.1
60+
# via sphinx
61+
sphinxcontrib-qthelp==2.0.0
62+
# via sphinx
63+
sphinxcontrib-serializinghtml==2.0.0
64+
# via sphinx
65+
tabulate==0.10.0
66+
# via sphinx-markdown-builder
67+
urllib3==2.6.3
68+
# via requests

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.sphinx-scrapy]
2+
# Keep in sync with .github/workflows/main.yml
3+
python-version = "3.14"

0 commit comments

Comments
 (0)