# 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 project = 'marl-factory-grid' copyright = '2023, Steffen Illium, Robert Mueller, Joel Friedrich' author = 'Steffen Illium, Robert Mueller, Joel Friedrich' release = '2.5.0' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = [#'myst_parser', 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.linkcode', 'sphinx_mdinclude', ] templates_path = ['_templates'] exclude_patterns = ['marl_factory_grid.utils.proto', 'marl_factory_grid.utils.proto.fiksProto_pb2*'] # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. from pathlib import Path import sys sys.path.insert(0, (Path(__file__).parents[2]).resolve().as_posix()) sys.path.insert(0, (Path(__file__).parents[2] / 'marl_factory_grid').resolve().as_posix()) import sphinx_pdj_theme # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = 'alabaster' html_theme_path = [sphinx_pdj_theme.get_html_theme_path()] html_static_path = ['_static'] # In your configuration, you need to specify a linkcode_resolve function that returns an URL based on the object. # https://www.sphinx-doc.org/en/master/usage/extensions/linkcode.html def linkcode_resolve(domain, info): if domain in ['py', '__init__.py']: return None if not info['module']: return None filename = info['module'].replace('.', '/') return "https://github.com/illiumst/marl-factory-grid/%s.py" % filename autoclass_content = 'both' autosummary_generate = True print(sys.executable)