Skip to content

Commit 412adbe

Browse files
New: jupyter book support
1 parent 9f4b62a commit 412adbe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

notebooks/shared/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,26 @@ $(HTML_TARGET)book.html: $(FULLS) $(BIB) $(PUBLISH_PLUGINS)
777777
endif
778778

779779

780+
## Jupyter Book (experimental)
781+
JUPYTER_BOOK = jupyter-book
782+
jb jupyter-book: $(JB_LINKS) _build/index.html
783+
jb-links: $(JB_LINKS)
784+
785+
JB_LINKS = $(FULL_NOTEBOOKS)/_config.yml $(FULL_NOTEBOOKS)/_toc.yml $(FULL_NOTEBOOKS)/_build
786+
787+
$(FULL_NOTEBOOKS)/_config.yml: _config.yml
788+
cd $(FULL_NOTEBOOKS); ln -s ../_config.yml .
789+
790+
$(FULL_NOTEBOOKS)/_toc.yml: _toc.yml
791+
cd $(FULL_NOTEBOOKS); ln -s ../_toc.yml .
792+
793+
$(FULL_NOTEBOOKS)/_build: _build
794+
cd $(FULL_NOTEBOOKS); ln -s ../_build .
795+
796+
_build/index.html: $(FULLS)
797+
cd $(FULL_NOTEBOOKS); $(JUPYTER_BOOK) build .
798+
799+
780800
## Some checks
781801

782802
# Style checks

0 commit comments

Comments
 (0)