executablebooks / jupyter-book

Create beautiful, publication-quality books and documents from computational content.
http://jupyterbook.org
BSD 3-Clause "New" or "Revised" License
3.76k stars 652 forks source link

How to include/link internal html files #2054

Open puja-trivedi opened 10 months ago

puja-trivedi commented 10 months ago

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

welcome[bot] commented 10 months ago

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:

P-N-L commented 4 weeks ago

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!