Skip to content
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

Can you please document how to link to a pdf file that is stored in _static? #341

Closed
PhilipMay opened this issue Apr 1, 2021 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@PhilipMay
Copy link

In the documentation I am missing something about how I
can link to a pdf file that is stored in _static.

Could you please add that?

Thanks
Philip

@PhilipMay PhilipMay added the documentation Improvements or additions to documentation label Apr 1, 2021
@choldgraf
Copy link
Member

Hmmm - this one feels like it is out-of-scope for the MyST parser docs, since it is more of a base Sphinx question (here are the docs for this: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-download).

@PhilipMay
Copy link
Author

@choldgraf thanks for the answer. The thing is that the linked solution is a rst style solution. But how do I do that with an "inline" link and MyST?

@jpmckinney
Copy link
Contributor

Like this:

{download}`text <_static/reference.pdf>`

@PhilipMay
Copy link
Author

Works - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants