Skip to main content

sphinx-scrapy

PyPI version Supported Python versions

Sphinx extension for documentation in the Scrapy ecosystem.

Features

  • Provides a docs tox environment.

  • Generates a Read the Docs configuration.

  • Keeps the sphinx-scrapy pins of tox.ini and docs/requirements.in in sync with the pre-commit rev.

  • Makes documentation builds fail on Sphinx warnings. While you fix existing warnings, you can either suppress them by type in docs/conf.py, or allow all of them in pyproject.toml:

    [tool.sphinx-scrapy]
    fail-on-warning = false
  • Enables commonly-used Sphinx extensions.

  • Configures sphinx.ext.intersphinx for Python and Scrapy, and streamlines configuration for additional packages.

  • Allows you to easily link to Scrapy settings, request metadata keys, signals, commands and stats:

    :setting:`BOT_NAME`
    :setting:`LOG_LEVEL <scrapy:LOG_LEVEL>`
    :reqmeta:`download_slot`
    :signal:`spider_opened`
    :command:`crawl`
    :stat:`item_scraped_count`
  • Allows you to easily link to GitHub issues and pull requests:

    :gh:`1908`
    :gh:`parsel#12`
    :gh:`sphinx-doc/sphinx#13000`

    They render as #1908, parsel#12 and sphinx#13000. Use the number alone for the current repository, which comes from the GitHub URLs in pyproject.toml. For a different repository, its name alone is enough if it is a known repository of the Scrapy ecosystem or it belongs to the same owner as the current repository.

Setup

  1. Configure in pyproject.toml the Python version for documentation builds, e.g.:

    [tool.sphinx-scrapy]
    python-version = "3.14"

    It must be supported by Read the Docs.

  2. Add to docs/requirements.txt:

    sphinx-scrapy==0.12.0
  3. Add to docs/conf.py:

    extensions = [
        "sphinx_scrapy",
    ]

    To automatically configure sphinx.ext.intersphinx for installed supported packages, set:

    scrapy_intersphinx_enable_installed = True

    You can also enable or disable the automatic sphinx.ext.intersphinx configuration of packages manually:

    scrapy_intersphinx_enable = [
        "parsel",
        "w3lib",
    ]
    scrapy_intersphinx_disable = [
        "scrapy",
    ]

    The html_baseurl option for sitemap generation is generated automatically based on the project name (pyproject.toml or conf.py) and known documentation URLs (the same used for easy intersphinx configuration) with a fallback to https://<project>.readthedocs.io/en/latest/. You can alternatively define the setting yourself in conf.py.

  4. Add to docs/.gitignore:

    /_build/
  5. Add to .pre-commit-config.yaml:

    repos:
    - repo: https://github.com/scrapy/sphinx-scrapy
        rev: 0.12.0
        hooks:
        - id: sphinx-scrapy
  6. Add to tox.ini:

    [tox]
    requires =
        sphinx-scrapy[tox]==0.12.0
    envlist = …,docs

You can now build the docs with:

tox -e docs

Sphinx extensions

The following Sphinx extensions are automatically enabled when you enable sphinx_scrapy:

Intersphinx packages

scrapy_intersphinx_enable supports the following packages:

Release notes

See the release notes for a list of releases and their changes.

Release files for sphinx-scrapy 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-scrapy 0.12.0
File Size Uploaded
sphinx_scrapy-0.12.0.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-scrapy 0.12.0
File Interpreter ABI Platform
sphinx_scrapy-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.9 kB

Release files / sphinx_scrapy-0.12.0.tar.gz

Download URL sphinx_scrapy-0.12.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d474ef6fe2eca2a682a22a9bc16d92168d933055ed69bb37dd422c598516037a
BLAKE2b-256 checksum
How to use checksums
0cef721956306dc56d93f76296f1aac7d1cc80c225f51f8b7e9d047dfc25ca73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / sphinx_scrapy-0.12.0-py3-none-any.whl

Download URL sphinx_scrapy-0.12.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d07e993670b933fba17602df44071af833a6c6bd18f2f5fbc0e7ebb623c164a
BLAKE2b-256 checksum
How to use checksums
37a48ca46d58be1d2037b2ea3b9707e68ee1bc6d8660c9c2bd874dfec4af1aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page