-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Over in astropy/astropy-tutorials, we'd like to add a link to the bottom of each sphinx page generated from a notebook (and only these) that contains a link to the source notebook on github. Maybe there is an easier way, but my initial thought was to add a new section to the jinja template that generates the page. But, it looks like that is hard-coded into nbsphinx.py as a string. If nbsphinx was restructured into a package, I think it could support custom .tpl files as well via an, e.g., nbsphinx_custom_tpl option in conf.py. I tried to spec this out on my own fork of nbsphinx, but got stuck on paths (trying to get the custom template to know about the nbsphinx template, and to get nbsphinx to find the custom template in, e.g., the _static path of the sphinx source directory). Any thoughts or ideas on this? Thanks!
cc @eteq