From 795004be5b7e1d07c77d83b4d99169a72666b380 Mon Sep 17 00:00:00 2001 From: Czar Echavez Date: Thu, 9 May 2024 14:16:29 +0100 Subject: [PATCH] #2472: copy image assets + applying change to makefile --- docs/Makefile | 6 +++++- docs/make.bat | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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"