diff --git a/docs/Makefile b/docs/Makefile index 82719283..bd4ef1db 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -6,7 +6,7 @@ SPHINXBUILD ?= sphinx-build SOURCEDIR = . BUILDDIR = _build -AUTOSUMMARY="source/_autosummary" +JUPYTEROUTPUTPATH="_static\notebooks\html" # Remove command is different depending on OS ifdef OS @@ -31,4 +31,8 @@ clean: %: Makefile | clean pip-licenses --format=rst --with-urls --output-file=source/primaite-dependencies.rst + jupyter nbconvert --execute --to html --output-dir _static/notebooks/html ../src/primaite/**/*.ipynb + + cp -r ../src/primaite/notebooks/_package_data _static/notebooks/html/_package_data _static/notebooks/html/_package_data + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/make.bat b/docs/make.bat index a0e2a485..6989b67c 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -58,6 +58,9 @@ IF EXIST %JUPYTEROUTPUTPATH% ( REM run and print html of notebooks JUPYTER nbconvert --execute --to html --output-dir %JUPYTEROUTPUTPATH% "%cd%\..\src\primaite\**\*.ipynb" +REM copy notebook image dependencies +robocopy ..\src\primaite\notebooks\_package_data _static\notebooks\html\_package_data + REM print the YT licenses set LICENSEBUILD=pip-licenses --format=rst --with-urls set DEPS="%cd%\source\primaite-dependencies.rst"