File
Blob: src/pyodide/internal/sphinx/conf.py
| 1 | # Configuration file for the Sphinx documentation builder. |
| 2 | # |
| 3 | # For the full list of built-in configuration values, see the documentation: |
| 4 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | |
| 6 | # -- Project information ----------------------------------------------------- |
| 7 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 8 | |
| 9 | project = "Python Workers API" |
| 10 | copyright = "2025, Cloudflare" |
| 11 | author = "Cloudflare" |
| 12 | |
| 13 | # -- General configuration --------------------------------------------------- |
| 14 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 15 | |
| 16 | extensions = [ |
| 17 | "sphinx.ext.autodoc", |
| 18 | "sphinx_markdown_builder", |
| 19 | "sphinx.ext.autosummary", |
| 20 | "myst_parser", |
| 21 | ] |
| 22 | autodoc_mock_imports = ["js", "pyodide.http", "pyodide.ffi", "fastapi", "pyodide"] |
| 23 | |
| 24 | |
| 25 | templates_path = ["_templates"] |
| 26 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 27 | |
| 28 | |
| 29 | # -- Options for HTML output ------------------------------------------------- |
| 30 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 31 | |
| 32 | html_theme = "alabaster" |
| 33 | html_static_path = ["_static"] |
| 34 | |
| 35 | # Add the parent dir to the search path, so that the .py files can be accessed. |
| 36 | import sys |
| 37 | from pathlib import Path |
| 38 | |
| 39 | sys.path.insert(0, str(Path.resolve(Path("..")))) |