Merge pull request #133 from srcarter3/website

Change the default nbviewer url for the generated notebooks
This commit is contained in:
tiffanycmeyer13 2024-05-29 08:12:10 -05:00 committed by GitHub
commit 6799540f30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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'):