Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mhinkkan authored Jun 10, 2023
1 parent 9d51992 commit c5ef141
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,78 +15,78 @@
import os
import sys

sys.path.insert(0, os.path.abspath('../..'))
sys.path.insert(0, os.path.abspath('../../motulator'))
sys.path.insert(0, os.path.abspath("../.."))
sys.path.insert(0, os.path.abspath("../../motulator"))

# -- Project information -----------------------------------------------------

project = 'motulator'
copyright = '2023, Aalto Electric Drives'
author = 'Aalto Electric Drives'
project = "motulator"
copyright = "2023, Aalto Electric Drives"
author = "Aalto Electric Drives"

# The full version, including alpha/beta/rc tags
release = '0.1.6'
release = "0.1.6"

# -- General configuration ---------------------------------------------------

# This value contains a list of modules to be mocked up.
# This is useful when some external dependencies are not met at build time and
# break the building process. You may only specify the root package of the
# dependencies themselves and omit the sub-modules:
autodoc_mock_imports = ['numpy', 'matplotlib', 'scipy', 'cycler']
autodoc_mock_imports = ["numpy", "matplotlib", "scipy", "cycler"]

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
# extensions coming with Sphinx (named "sphinx.ext.*") or your custom ones.
extensions = [
'sphinx.ext.napoleon', 'sphinx.ext.viewcode', 'numpydoc',
'sphinx_copybutton', 'sphinx.ext.mathjax', 'sphinx_gallery.gen_gallery'
"sphinx.ext.napoleon", "sphinx.ext.viewcode", "numpydoc",
"sphinx_copybutton", "sphinx.ext.mathjax", "sphinx_gallery.gen_gallery"
]

extensions.append('autoapi.extension')
autoapi_type = 'python'
autoapi_dirs = ['../../motulator']
autodoc_typehints = 'description'
extensions.append("autoapi.extension")
autoapi_type = "python"
autoapi_dirs = ["../../motulator"]
autodoc_typehints = "description"
autoapi_options = [
'members',
'show-inheritance',
'show-module-summary',
'imported-members',
] # 'private-members', 'imported-members', 'undoc-members', 'special-members',
"members",
"show-inheritance",
"show-module-summary",
"imported-members",
] # "private-members", "imported-members", "undoc-members", "special-members",

autoapi_python_class_content = 'class' # 'both'
autoapi_python_class_content = "class" # "both"
autoapi_keep_files = True
autoapi_add_toctree_entry = False

from sphinx_gallery.sorting import ExplicitOrder

sphinx_gallery_conf = {
'examples_dirs':
'../../examples', # path to your example scripts
'gallery_dirs':
'auto_examples', # path to where to save gallery generated output
'nested_sections':
"examples_dirs":
"../../examples", # path to your example scripts
"gallery_dirs":
"auto_examples", # path to where to save gallery generated output
"nested_sections":
True,
'subsection_order':
"subsection_order":
ExplicitOrder([
'../../examples/vector',
'../../examples/vhz',
'../../examples/obs_vhz',
'../../examples/flux_vector',
'../../examples/signal_inj',
"../../examples/vector",
"../../examples/vhz",
"../../examples/obs_vhz",
"../../examples/flux_vector",
"../../examples/signal_inj",
]),
}

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['../../.idea', '../../__pycache__', '../../venv']
exclude_patterns = ["../../.idea", "../../__pycache__", "../../venv"]

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_book_theme'
html_theme = "sphinx_book_theme"
html_theme_options = {
"repository_url": "https://github.com/Aalto-Electric-Drives/motulator",
"use_repository_button": True,
Expand All @@ -95,4 +95,4 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']
# html_static_path = ["_static"]

0 comments on commit c5ef141

Please sign in to comment.