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.14.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.14.0
        hooks:
        - id: sphinx-scrapy
  6. Add to tox.ini:

    [tox]
    requires =
        sphinx-scrapy[tox]==0.14.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.

Metadata

Release files for sphinx-scrapy 0.14.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.14.0
File Size Uploaded
sphinx_scrapy-0.14.0.tar.gz 14.3 kB Details

Built distribution (wheel)

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

Total release size: 26.4 kB

Release files / sphinx_scrapy-0.14.0.tar.gz

Download URL sphinx_scrapy-0.14.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1876c698c1f509c3a6ba1b3333f9556caf66b46e35526c2c32c298a64395c106
BLAKE2b-256 checksum
How to use checksums
fa1a05ea49b650864a1323711132248c60f9a02f0884a332717b4649cba3b0b1
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 Oct 14, 2026.

Transparency log

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

Download URL sphinx_scrapy-0.14.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04c72cf499075a6ecdc8cef7009f457bc06df0d79b7c548c0501c60aada59c06
BLAKE2b-256 checksum
How to use checksums
a105319e26586f20c3ddca54f74a6129b1b0a28711e6cc4ba51de5cb2c11338f
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 Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.14.0 This release

2 release files

0.13.0

2 release files

0.12.0

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