#2472: copy image assets + applying change to makefile
This commit is contained in:
@@ -6,7 +6,7 @@ SPHINXBUILD ?= sphinx-build
|
|||||||
SOURCEDIR = .
|
SOURCEDIR = .
|
||||||
BUILDDIR = _build
|
BUILDDIR = _build
|
||||||
|
|
||||||
AUTOSUMMARY="source/_autosummary"
|
JUPYTEROUTPUTPATH="_static\notebooks\html"
|
||||||
|
|
||||||
# Remove command is different depending on OS
|
# Remove command is different depending on OS
|
||||||
ifdef OS
|
ifdef OS
|
||||||
@@ -31,4 +31,8 @@ clean:
|
|||||||
%: Makefile | clean
|
%: Makefile | clean
|
||||||
pip-licenses --format=rst --with-urls --output-file=source/primaite-dependencies.rst
|
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)
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ IF EXIST %JUPYTEROUTPUTPATH% (
|
|||||||
REM run and print html of notebooks
|
REM run and print html of notebooks
|
||||||
JUPYTER nbconvert --execute --to html --output-dir %JUPYTEROUTPUTPATH% "%cd%\..\src\primaite\**\*.ipynb"
|
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
|
REM print the YT licenses
|
||||||
set LICENSEBUILD=pip-licenses --format=rst --with-urls
|
set LICENSEBUILD=pip-licenses --format=rst --with-urls
|
||||||
set DEPS="%cd%\source\primaite-dependencies.rst"
|
set DEPS="%cd%\source\primaite-dependencies.rst"
|
||||||
|
|||||||
Reference in New Issue
Block a user