diff --git a/docs/source/index.rst b/docs/source/index.rst index 2d243ebc2..7b71f28fc 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -24,6 +24,7 @@ Contents -------- .. toctree:: + :maxdepth: 2 about installation @@ -31,8 +32,12 @@ Contents usage contributors contributing-guide - modules + +.. toctree:: + :maxdepth: 3 + autogen/pipelines + modules Indices and tables ================== diff --git a/mirar/utils/docs/auto_config_docs.py b/mirar/utils/docs/auto_config_docs.py index 7db2bb701..00279d983 100644 --- a/mirar/utils/docs/auto_config_docs.py +++ b/mirar/utils/docs/auto_config_docs.py @@ -155,7 +155,7 @@ def auto_rst_config(pipeline: str, config: str): ) ) doc.newline() - doc.content(f".. image:: {relative_image_path}") + doc.content(f".. image:: ../../{relative_image_path}") doc.newline() diff --git a/pyproject.toml b/pyproject.toml index 6dee97d20..013dfd2ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,6 +112,7 @@ generated-members=["u.*"] [tool.poetry.scripts] mirar-run = 'mirar.__main__:main' +mirar-docs-autogen = "mirar.utils.docs:iterate_rst_generation" winter-stack = 'mirar.pipelines.winter.run:run_stack_of_stacks' [build-system]