#!/usr/bin/env python31# -*- coding: utf-8 -*-2#3# ebcpy documentation build configuration file, created by4# sphinx-quickstart on Thu Jul 11 11:40:00 2019.5#6# This file is execfile()d with the current directory set to its7# containing dir.8#9# Note that not all possible configuration values are present in this10# autogenerated file.11#12# All configuration values have a default; values that are commented out13# serve to show the default.1415# If extensions (or modules to document with autodoc) are in another directory,16# add these directories to sys.path here. If the directory is relative to the17# documentation root, use os.path.abspath to make it absolute, like shown here.18#19import os20import sys21from pathlib import Path22# pylint: disable-all2324sys.path.insert(0, os.path.abspath('../..'))25sys.setrecursionlimit(1500)26272829# -- General configuration ------------------------------------------------3031# If your documentation needs a minimal Sphinx version, state it here.32#33# needs_sphinx = '1.0'3435# Add any Sphinx extension module names here, as strings. They can be36# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom37# ones.38extensions = ['sphinx.ext.autodoc',39'sphinx.ext.intersphinx',40'sphinx.ext.ifconfig',41'sphinx.ext.viewcode',42'sphinx.ext.githubpages',43'sphinx.ext.coverage',44'm2r2', # Enable .md files45'sphinxcontrib.autodoc_pydantic'46]4748autodoc_pydantic_model_show_json = False49autodoc_pydantic_model_show_config = False50# Add any paths that contain templates here, relative to this directory.51templates_path = ['_templates']5253# The suffix(es) of source filenames.54# You can specify multiple suffix as a list of string:55#56source_suffix = ['.rst', '.md']57#source_suffix = '.rst'5859# The master toctree document.60master_doc = 'index'6162# General information about the project.63project = 'ebcpy'64copyright = '2019, EON EBC'65author = 'EON EBC'6667# The version info for the project you're documenting, acts as replacement for68# |version| and |release|, also used in various other places throughout the69# built documents.70#71# Get the version from ebcpys __init__.py:72with open(Path(__file__).parents[2].joinpath(project, "__init__.py"), "r") as file:73for line in file.readlines():74if line.startswith("__version__"):75release = line.replace("__version__", "").split("=")[1].strip().replace("'", "").replace('"', '')7677# The short X.Y version.78version = ".".join(release.split(".")[:2])79# The full version, including alpha/beta/rc tags.80release = release8182# The language for content autogenerated by Sphinx. Refer to documentation83# for a list of supported languages.84#85# This is also used if you do content translation via gettext catalogs.86# Usually you set "language" from the command line for these cases.87language = "en"8889# List of patterns, relative to source directory, that match files and90# directories to ignore when looking for source files.91# This patterns also effect to html_static_path and html_extra_path92exclude_patterns = []9394# The name of the Pygments (syntax highlighting) style to use.95pygments_style = 'sphinx'9697# If true, `todo` and `todoList` produce output, else they produce nothing.98todo_include_todos = False99100101# -- Options for HTML output ----------------------------------------------102103# The theme to use for HTML and HTML Help pages. See the documentation for104# a list of builtin themes.105#106html_theme = 'sphinx_rtd_theme'107108# Theme options are theme-specific and customize the look and feel of a theme109# further. For a list of options available for each theme, see the110# documentation.111#112# html_theme_options = {}113114# Add any paths that contain custom static files (such as style sheets) here,115# relative to this directory. They are copied after the builtin static files,116# so a file named "default.css" will overwrite the builtin "default.css".117html_static_path = []118119html_sidebars = {120"**": ["logo-text.html",121"globaltoc.html",122"localtoc.html",123"searchbox.html"]124}125126127# -- Options for HTMLHelp output ------------------------------------------128129# Output file base name for HTML help builder.130htmlhelp_basename = 'ebcpydoc'131132133# -- Options for LaTeX output ---------------------------------------------134135latex_elements = {136# The paper size ('letterpaper' or 'a4paper').137#138# 'papersize': 'letterpaper',139140# The font size ('10pt', '11pt' or '12pt').141#142# 'pointsize': '10pt',143144# Additional stuff for the LaTeX preamble.145#146# 'preamble': '',147148# Latex figure (float) alignment149#150# 'figure_align': 'htbp',151}152153# Grouping the document tree into LaTeX files. List of tuples154# (source start file, target name, title,155# author, documentclass [howto, manual, or own class]).156latex_documents = [157(master_doc, 'ebcpy.tex', 'ebcpy Documentation',158'EON EBC', 'manual'),159]160161162# -- Options for manual page output ---------------------------------------163164# One entry per manual page. List of tuples165# (source start file, name, description, authors, manual section).166man_pages = [167(master_doc, 'ebcpy', 'ebcpy Documentation',168[author], 1)169]170171172# -- Options for Texinfo output -------------------------------------------173174# Grouping the document tree into Texinfo files. List of tuples175# (source start file, target name, title, author,176# dir menu entry, description, category)177texinfo_documents = [178(master_doc, 'ebcpy', 'ebcpy Documentation',179author, 'ebcpy', 'One line description of project.',180'Miscellaneous'),181]182183184185# -- Options for Epub output ----------------------------------------------186187# Bibliographic Dublin Core info.188epub_title = project189epub_author = author190epub_publisher = author191epub_copyright = copyright192193# The unique identifier of the text. This can be a ISBN number194# or the project homepage.195#196# epub_identifier = ''197198# A unique identification for the text.199#200# epub_uid = ''201202# A list of files that should not be packed into the epub file.203epub_exclude_files = ['search.html']204205206207# Example configuration for intersphinx: refer to the Python standard library.208intersphinx_mapping = {'https://docs.python.org/': None}209210211