-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
49 lines (33 loc) · 1.31 KB
/
Copy pathconf.py
File metadata and controls
49 lines (33 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import os
import shutil
def copy_tutorials(app):
src = os.path.abspath("../tutorials")
dst = os.path.abspath("source/tutorials")
# Remove existing target directory if it exists
if os.path.exists(dst):
shutil.rmtree(dst)
shutil.copytree(src, dst)
def setup(app):
app.connect("builder-inited", copy_tutorials)
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = "maxplotlib"
copyright = "2025, Max Lindqvist"
author = "Max Lindqvist"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"nbsphinx",
"sphinx.ext.mathjax",
"sphinx.ext.autodoc",
]
templates_path = ["_templates"]
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]