Skip to content
File

Blob: src/pyodide/internal/sphinx/conf.py

python40 lines
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 
9project = "Python Workers API"
10copyright = "2025, Cloudflare"
11author = "Cloudflare"
12 
13# -- General configuration ---------------------------------------------------
14# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
15 
16extensions = [
17 "sphinx.ext.autodoc",
18 "sphinx_markdown_builder",
19 "sphinx.ext.autosummary",
20 "myst_parser",
21]
22autodoc_mock_imports = ["js", "pyodide.http", "pyodide.ffi", "fastapi", "pyodide"]
23 
24 
25templates_path = ["_templates"]
26exclude_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 
32html_theme = "alabaster"
33html_static_path = ["_static"]
34 
35# Add the parent dir to the search path, so that the .py files can be accessed.
36import sys
37from pathlib import Path
38 
39sys.path.insert(0, str(Path.resolve(Path(".."))))