/jquery

Extension to include jQuery on newer Sphinx releases

Primary LanguagePythonBSD Zero Clause License0BSD

sphinxcontrib-jquery

Package on PyPI

sphinxcontrib-jquery ensures that jQuery is always installed for use in Sphinx themes or extensions.

To use it, add sphinxcontrib.jquery as a Sphinx extension:

# conf.py

extensions = [
    "sphinxcontrib.jquery",
]
...

Configuration

jquery_use_sri

A boolean value controlling whether to enable subresource integrity (SRI) checks for JavaScript files that this extension loads.

The default is False.

Warning: Enabling SRI checks may break documentation when loaded from local filesystem (file:/// URIs).

New in version 4.0.