This is the module to convert a jupyter notebook to an html page. It will normally render everything the way it was in the notebooks, including suppressing the input of the code cells with input cells masked, and converting the links between notebooks in links between the html pages.
from fastai.gen_doc.nbdoc import *
from fastai.gen_doc.convert2html import *
show_doc(convert_nb)
convert_nb
[source]
convert_nb
(fname
,dest_path
='.'
)
Convert a notebook fname
to html file in dest_path
.
show_doc(convert_all)
convert_all
[source]
convert_all
(folder
,dest_path
='.'
,force_all
=False
)
Convert modified notebooks in folder
to html pages in dest_path
.
Here's an example to convert all the docs in this folder:
convert_all('.', '../docs')
show_doc(read_nb)