-
Notifications
You must be signed in to change notification settings - Fork 11
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
labsite: Re-write relative URLs #450
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mark all *.htmlf files in frontend/lab as generated in the linguist configs, so that PR reviews on GitHub are less spammed with generated files. Should have done this ages ago - apologies.
a07595a
to
6d26d88
Compare
6d26d88
to
2f20ea8
Compare
2f20ea8
to
ca51465
Compare
ca51465
to
5219662
Compare
5219662
to
cf12c1c
Compare
cf12c1c
to
2d95916
Compare
2d95916
to
8723546
Compare
8723546
to
1d04c83
Compare
1d04c83
to
0043cc0
Compare
0043cc0
to
0fb2a24
Compare
0fb2a24
to
5d09f54
Compare
5d09f54
to
500edb4
Compare
500edb4
to
bde24f4
Compare
bde24f4
to
043fb5e
Compare
043fb5e
to
393fa95
Compare
393fa95
to
ad05a5b
Compare
ad05a5b
to
c084dd6
Compare
c084dd6
to
dec28f7
Compare
dec28f7
to
6015897
Compare
6015897
to
47def89
Compare
47def89
to
3c05bb1
Compare
3c05bb1
to
0f54a6c
Compare
Re-write img URLs in labsite-gen tool from correct relative location of .md file to img/IMG.svg file to the correct location when deployed and served from root of lab.evy.dev: samples/LAB-ID/img/IMG.svg. Update all .md files alongside to use working and correct relative links to images from Markdown file perspective. We add this change so that Markdown files on GitHub show images. Previously we had broken image links for Markdown source and GitHub. I was communicating with a friend trying to advocate for the ease of creating new evy labs in Markdown and wanted to point her to GitHub when I realized links there to images don't render, but the rest is actually quite readable. This commit should fix it.
Similar to the previous commit, links to other labs, e.g. `#hsl` were broken from the Markdown perspective and on GitHub previous. We now use the correct relative URLs to files, e.g. `../ifs/hsl.md` in links in the markdown source files and rewrite them to fragments, e.g. `#hsl` when generating HTML fragments in .htmlf files.
Add --svg-width and --svg-height flags to `evy run` so that we can render SVG files at a reasonable size on GitHub. Setting the width and height inside the style attribute of the top level element of the SVG file does not flow through to GitHub.
0f54a6c
to
5bc0483
Compare
camh-
approved these changes
Oct 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📗
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Re-write img and link URLs in labsite-gen tool from correct location of relative
to source .md file to correct relative location to lab/index.html file when
deployed.
This change improves readability and generation of Markdown lab source files.
In a preparatory step mark
lab/**/*.htmlf
as generated for linguist and PRreviews.