diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index c7b3655..2864679 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -10,7 +10,7 @@ jobs: - uses: actions/setup-python@v3 - name: Install dependencies run: | - pip install sphinx sphinx_rtd_theme + pip install sphinx sphinx_rtd_theme sphinxcontrib-matlabdomain - name: Sphinx build run: | sphinx-build doc _build diff --git a/doc/conf.py b/doc/conf.py index 6db2e65..81abd47 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -2,6 +2,7 @@ # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html +import os # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -14,15 +15,21 @@ # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = [] +extensions = ['sphinx.ext.viewcode', 'sphinxcontrib.matlab','sphinx.ext.autodoc'] templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] - # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_theme = 'alabaster' +html_theme = 'bizstyle' html_static_path = ['_static'] + + +# -- MATLAB configuration ---------------------------------------------------- +primary_domain = 'mat' +parent_dir = os.path.abspath(os.path.join(os.getcwd(), os.pardir)) +matlab_src_dir = os.path.join(parent_dir, 'src') +