See https://ioam.github.io/nbsite/Usage.html for more details.
-
Set up environment so you can run the examples
-
Install nbsite:
conda install -c conda-forge sphinx beautifulsoup4 graphviz numpydoc && pip install sphinx_ioam_theme nbsite
-
cd docs
-
Generate rst containers for notebooks:
nbsite_nbpagebuild.py bokeh datashader ../examples .
-
Build site:
sphinx-build -b html . ./_build/html
followed bynbsite_fix_links.py _build/html
-
Inspect result:
pushd _build/html && python -m http.server
-
Clean up for deployment:
nbsite_cleandisthtml.py ./_build/html take_a_chance
-
Deploy to S3 bucket:
pushd _build/html && aws s3 sync --delete --acl public-read . s3://datashader.org