jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

How to include/link internal html files

Open puja-trivedi opened this issue 1 year ago • 2 comments

Describe the bug

context I want to include/link internal html files in my jupyter book.

expectation I do not want the html files to be downloaded when clicked on, I want them to open in a window. My expectation is to have an internal file reference with explicit text that is not downloadable.

bug When I list the files in my .md like this:* [File Name](DirX/file1.html), I noticed after jupyter-book build and deployment to gh-pages the html files are renamed and moved to a directory called _downloads and when I look at the deployed jupyter book, there is a download icon next to the html link. When I click on the file name, it is automatically downloaded rather than being opened in a window.

Reproduce the bug

explained above

List your environment

Jupyter Book : 0.15.1 External ToC : 0.3.1 MyST-Parser : 0.18.1 MyST-NB : 0.17.2 Sphinx Book Theme : 1.0.1 Jupyter-Cache : 0.6.1 NbClient : 0.7.4

puja-trivedi avatar Sep 06 '23 18:09 puja-trivedi

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Sep 06 '23 18:09 welcome[bot]

I am looking for the same thing. I wouldn't necessarily care about it going to _downloads, but each time I generate the book, it uses different folders under _downloads, which means I can't provide permanent links!

P-N-L avatar Jun 07 '24 13:06 P-N-L