View on GitHub

IOCamlJS Demos

Creating a new static site

iocaml can automatically create the files requires for a simple static site with the following features

To get started we would use the standard iocaml server to create some notebooks with a potentially custom kernel.

$ iocaml -js my_test_kernel my_notebooks/

Once happy with the notebooks a site can be created

$ iocaml -js my_test_kernel my_notebooks/ \
    -create-static-site my_site_dir \
    -static-site-base-path /online_dir

The site will be created in my_site_dir.

The option -static-site-base-path configures the internal links within the generated html to allow the notebooks to be hosted at an arbitrary url path on the server. If left out then the notebooks will be served from the root url.