Skip to content

Commit c06d8bc

Browse files
authored
Add llms.txt and llms-full.txt generation (#188)
1 parent dc72308 commit c06d8bc

13 files changed

Lines changed: 100 additions & 95 deletions

.github/workflows/main.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
include:
16-
- python-version: "3.9"
17-
env:
18-
TOXENV: "msgpack"
19-
- python-version: "3.9"
20-
env:
21-
TOXENV: "json"
2216
- python-version: "3.10"
2317
env:
2418
TOXENV: "msgpack"
@@ -43,6 +37,11 @@ jobs:
4337
- python-version: "3.13"
4438
env:
4539
TOXENV: "json"
40+
# Keep in sync with pyproject.toml's
41+
# tool.sphinx-scrapy.python-version.
42+
- python-version: "3.14"
43+
env:
44+
TOXENV: "docs"
4645

4746
# https://github.com/kevin1024/vcrpy/issues/885
4847
# - 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: 0.7.1
4+
hooks:
5+
- id: sphinx-scrapy

.readthedocs.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
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+
- mkdir -p $READTHEDOCS_OUTPUT/html
10+
- cp -a docs/_build/all/. $READTHEDOCS_OUTPUT/html/

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Client interface for Scrapinghub API
1414
.. image:: https://codecov.io/gh/scrapinghub/python-scrapinghub/branch/master/graph/badge.svg
1515
:target: https://app.codecov.io/gh/scrapinghub/python-scrapinghub
1616

17-
The ``scrapinghub`` is a Python 3.9+ library for communicating with the
17+
The ``scrapinghub`` is a Python 3.10+ library for communicating with the
1818
`Scrapinghub API`_.
1919

2020

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.10+
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@0.7.1

docs/requirements.txt

Lines changed: 71 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,71 @@
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 -o requirements.txt
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-copybutton
39+
# sphinx-llms-txt
40+
# sphinx-markdown-builder
41+
# sphinx-rtd-theme
42+
# sphinx-scrapy
43+
# sphinxcontrib-jquery
44+
sphinx-copybutton==0.5.2
45+
# via sphinx-scrapy
46+
sphinx-llms-txt @ git+https://github.com/zytedata/sphinx-llms-txt.git@5e8866cb0cc249aa2017ad9050b3b83a7ca16f69
47+
# via sphinx-scrapy
48+
sphinx-markdown-builder @ git+https://github.com/zytedata/sphinx-markdown-builder.git@ac9f8babfe622e4300099ab44b96d9d9228e742e
49+
# via sphinx-scrapy
50+
sphinx-rtd-theme==3.1.0
51+
# via -r requirements.in
52+
sphinx-scrapy @ git+https://github.com/scrapy/sphinx-scrapy.git@2b5f6c7de64c8317cb771fdeb2e5020d1c9c9dcf
53+
# via -r requirements.in
54+
sphinxcontrib-applehelp==2.0.0
55+
# via sphinx
56+
sphinxcontrib-devhelp==2.0.0
57+
# via sphinx
58+
sphinxcontrib-htmlhelp==2.1.0
59+
# via sphinx
60+
sphinxcontrib-jquery==4.1
61+
# via sphinx-rtd-theme
62+
sphinxcontrib-jsmath==1.0.1
63+
# via sphinx
64+
sphinxcontrib-qthelp==2.0.0
65+
# via sphinx
66+
sphinxcontrib-serializinghtml==2.0.0
67+
# via sphinx
68+
tabulate==0.10.0
69+
# via sphinx-markdown-builder
70+
urllib3==2.6.3
71+
# via requests

0 commit comments

Comments
 (0)