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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Always use static links for downloads #1149

Merged
merged 4 commits into from Apr 23, 2024

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Apr 22, 2024

This fixes #1135 by scoping the URL rewriting to non-static links.

I think what was happening was that the URL was being re-written as an internal link, but the static attribute was causing MyST to try and resolve that re-written link as a static item.

This change now prevents rewriting for static items (we'll always want those in the static endpoint).

I didn't add a test yet - not sure where that should go, would appreciate some pointers.

@agoose77 agoose77 requested a review from fwkoch April 22, 2024 08:27
agoose77 and others added 2 commits April 23, 2024 08:31
@rowanc1 rowanc1 merged commit 7ae6870 into main Apr 23, 2024
4 of 5 checks passed
@rowanc1 rowanc1 deleted the agoose77/fix-transform-static-link branch April 23, 2024 20:36
@rowanc1 rowanc1 changed the title 馃悰 Always bundle static links 馃悰 Always use static links for downloads Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

{download} role for markdown source turns into a link
2 participants