-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
55 lines (43 loc) · 2.38 KB
/
conf.py
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
50
51
52
53
54
55
# 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 sys
sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Distributed Algorithm on AHCv2: DSR'
copyright = '2024, Hasan Hüseyin Yıldız'
author = 'Hasan Hüseyin Yıldız'
release = 'V0.0.1'
version = release
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx.ext.autodoc', # Core Sphinx library for auto html doc generation from docstrings
'sphinx.ext.intersphinx', # Link to other project's documentation (see mapping below)
'sphinx.ext.viewcode', # Add a link to the Python source code for classes, functions etc.
'sphinx_autodoc_typehints', # Automatically document param types (less noise in class signature)
'nbsphinx', # Integrate Jupyter Notebooks and Sphinx
"sphinx.ext.napoleon",
'sphinx.ext.autosummary', # Create neat summary tables for modules/classes/methods etc
"sphinx_autodoc_typehints",
]
autosummary_generate = True # Turn on sphinx.ext.autosummary
autodoc_member_order = "bysource"
autoclass_content = "both" # Add __init__ doc (ie. params) to class summaries
html_show_sourcelink = False # Remove 'view source code' from top of page (for html, not python)
autodoc_inherit_docstrings = True # If no docstring, inherit from base class
set_type_checking_flag = True # Enable 'expensive' imports for sphinx_autodoc_typehints
nbsphinx_allow_errors = True # Continue through Jupyter errors
#autodoc_typehints = "description" # Sphinx-native method. Not as good as sphinx_autodoc_typehints
add_module_names = True # Remove namespaces from class/method signatures
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'venv']
autosummary_generate = True
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
#html_theme = "alabaster"
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']