Change the default nbviewer url for the generated notebooks

This commit is contained in:
Shay Carter 2024-05-28 16:28:20 -06:00
parent 7b85ca44bf
commit 7c1dc8d7e2

View file

@ -37,7 +37,7 @@ def nb_to_rst(nb_path):
resources['metadata']['basename'] = basename
resources['metadata']['name'] = basename.replace('_', ' ')
resources['metadata']['imgdir'] = imgdir
base_url = ('http://nbviewer.ipython.org/github/Unidata/python-awips/blob/master/'
base_url = ('http://nbviewer.ipython.org/github/Unidata/python-awips/blob/website/'
'examples/notebooks/')
out_lines = ['`Notebook <%s>`_' % (base_url + os.path.basename(nb_path))]
for line in out.split('\n'):