Ctrl K
ComunidadGuías…

docs/conf.py

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html

from pathlib import Path

project = "Anki"
copyright = "Anki Software, LLC and contributors"
author = "Anki Software, LLC and contributors"

ROOT = Path(__file__).resolve().parents[1]

extensions = [
    "myst_parser",
    "sphinx.ext.intersphinx",
    "autoapi.extension",
    "sphinxcontrib.mermaid",
]

source_suffix = {
    ".rst": "restructuredtext",
    ".md": "markdown",
}

myst_enable_extensions = ["colon_fence", "deflist", "alert"]
html_theme = "sphinx_book_theme"
html_logo = "_static/logo.png"
html_favicon = "_static/favicon.svg"
html_static_path = ["_static"]
html_css_files = ["custom.css"]
html_theme_options = {
    "repository_url": "https://github.com/ankitects/anki",
    "use_repository_button": True,
    "use_issues_button": True,
    "use_edit_page_button": True,
    "path_to_docs": "docs",
    "repository_branch": "main",
    "logo": {
        "text": "Anki",
    },
}

autoapi_type = "python"
autoapi_dirs = [str(ROOT / "pylib" / "anki"), str(ROOT / "qt" / "aqt")]
autoapi_root = "autoapi"
autoapi_keep_files = True
autoapi_add_toctree_entry = False
autoapi_python_use_implicit_namespaces = True
autoapi_options = [
    "members",
    "undoc-members",
    "show-inheritance",
    "show-module-summary",
]

exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]