[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/python/python-docs-theme/2025.4.1/python_docs_theme/__init__.py [Back]  [Original]

from __future__ import annotations

from pathlib import Path

TYPE_CHECKING = False
if TYPE_CHECKING:
    from sphinx.application import Sphinx
    from sphinx.util.typing import ExtensionMetadata

__version__ = "2025.4.1"

THEME_PATH = Path(__file__).resolve().parent


def setup(app: Sphinx) -> ExtensionMetadata:
    app.require_sphinx("7.3")

    app.add_html_theme("python_docs_theme", str(THEME_PATH))

    return {
        "version": __version__,
        "parallel_read_safe": True,
        "parallel_write_safe": True,
    }

Web Proxy Viewer  |  New URL  |  Original Page