I have a document I'm writing with bookdown. This document will only have a HTML version. However, I want to make a PDF file available for readers to download. I would like to make it available without placing a link in the text, that is, I would like to use the icon in the top bar of the book.
Everything is working locally. However, in GitHub I'm having problems. In GitHub, clicking on the PDF icon shows 404 error. But, locally, it works.
- In GitHub all the content of the page is in
- The PDF file was named _ main.pdf and was placed inside the
Note: I already tried to
download: 'pdf' and
download: ["_main.pdf", "PDF"] but I did not succeed. It works locally but when I send the content to GitHub it works everything; there is only an error clicking on the PDF icon in the top bar.
Below is my file _output.yml:
bookdown::gitbook: css: style.css config: toc: collapse: none edit: link: https://github.com/prdm0/aulas_computacional/edit/master/%s text: "Editar" sharing: facebook: yes twitter: yes github: yes google: no linkedin: no weibo: no instapaper: no vk: no all: ['facebook', 'google', 'twitter', 'linkedin'] toolbar: position: fixed download: 'docs/_main.pdf' search: yes