-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
45 lines (34 loc) · 1.62 KB
/
conf.py
File metadata and controls
45 lines (34 loc) · 1.62 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
# 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
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import os
import sys
from importlib.metadata import version
sys.path.insert(0, os.path.abspath("../../"))
# sys.path.insert(0, os.path.abspath("./")) # in conf.py
project = "python-template" # todo: change this to your project name
version = version("my-pkg") # todo: change my-pkg to your package name
release = version
copyright = "2025, DanielAvdar" # noqa todo: change this to your name
author = "DanielAvdar" # todo: change this to your name
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"sphinx.ext.autodoc", # Core extension for pulling docstrings
"sphinx.ext.napoleon", # Support for Google and NumPy style docstrings
"sphinx.ext.viewcode", # Add links to source code
"sphinx.ext.githubpages", # If deploying to GitHub Pages
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
]
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"
master_doc = "index"
# html_static_path = ["_static"]