-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML: Add download link for the current notebook #5
Comments
It would probably also be nice, instead of having a link to a copy of the file, to have a link to the Github/Bitbucket page of the (proper version of the) notebook. These links might be interesting: |
I just asked for this on the sphinx-dev mailing list: https://groups.google.com/forum/#!topic/sphinx-dev/q8dGyV6dN4A |
I've created a PR for Sphinx: sphinx-doc/sphinx#2399 |
I've mentioned the option |
Just for others who arrive here, the quick solution (not yet in the docs, as far as I can tell) is to add the following to conf.py:
Then if one right-clicks on the "show source" link and saves the file, it will have the correct .ipynb extension. It would still be nice to add a more obvious link to download the notebook (in my opinion). |
@ketch Thanks for mentioning that. I consider doc/conf.py part of the documentation, therefore it is documented. If you think it should also be mentioned somewhere else in the documentation, please make a PR!
Definitely! |
I've just released version 0.3.0, which includes the options |
Ideally, this should already work with the "Source" link (but currently it doesn't).
We could also include an (optional) link above or below the first section title (like here) or at the bottom of the page (like here).
The text was updated successfully, but these errors were encountered: