Use nbcourse :
nbcourse list
build_book Build pdf book
build_pages Build html pages
convert_to_html Convert executed notebook to html page
convert_to_slides Convert executed notebook to reveal slides
copy_material Copy notebook and theme material to output directory
copy_reveal Copy reveal.js to output directory
execute_notebooks Write executed notebooks to output directory
output_dir Create empty output directory
zip_archive Build a single zip archive for all material
zip_chapters Build zip archives for single chapter downloads
Edit the
nbcourse.yml
file and run:
nbcourse [-n 4] [target] # [to run on 4 parallel threads]
The result will be located in
build/
directory.
Publishing with
GitLab Pages
is as simple as adding a
.gitlab-ci.yml
such as:
pages:
image: boileaum/jupyter
script:
- pip install nbcourse
- nbcourse -n 5
- mv build public
artifacts:
paths:
- public