Closed zkamvar closed 1 year ago
no longer active. can delete
@tobyhodges can you confirm that this lesson is not to be processed? it's on the LC website and it was last updated in Feburary.
This one should be converted.
I am taking care of wrapping regexs in backticks
I've done a PR for the alt text but I'm unclear about the missing file
issues as these look OK to me (and render fine with make serve
locally)
@zkamvar @tobyhodges do you have any ideas why those missing file issues are generated?
I've added to the PR to change some of the image file extensions from upper to lower case as I seem to remember that can cause some issues sometimes - but the ones affected don't seem to be the ones generating errors
I've done a PR for the alt text but I'm unclear about the
missing file
issues as these look OK to me (and render fine withmake serve
locally)@zkamvar @tobyhodges do you have any ideas why those missing file issues are generated?
Hi @ostephens, this is due to the way these images were placed in the lesson: they use HTML <img>
tags instead of markdown. The images for The Workbench live inside of the episodes/fig/
directory, so the path ../fig/
is changed to fig/
in the transition. However, my parser did not anticipate raw HTML tags for images and thus, did not catch those.
That being said, it is not too difficult for me to process these in my workflow, so you shouldn't have to manually update these if you do not want to.
I've added to the PR to change some of the image file extensions from upper to lower case as I seem to remember that can cause some issues sometimes - but the ones affected don't seem to be the ones generating errors
These actually do not cause problems. As long as you correctly name them in the lesson text, they will be found.
Thanks @zkamvar - I can fix those to use markdown but currently the <img>
seems to be used to enable setting a width on the images. Not sure why tbh
What's the usual practice on images (should we be sizing the images to a particular size?)
What's the usual practice on images (should we be sizing the images to a particular size?)
Don't worry about converting these. I can do so in my workflow. Thank you for adding the alt text. That was something I could not automatically do.
And WRT to usual practice for image sizes: set a width to a percentage of the viewport, not a particular number of pixels (e.g. width="66%"
), this allows the image to scale for tablet and mobile devices.
That being said, the Workbench is pretty good about width, so I'm going to remove the width parameter when I transform them.
If you want to re-add width after the transition, you there are instructions in the workbench documentation: https://carpentries.github.io/sandpaper-docs/example.html#figures
I've actually gone ahead and created a PR anyway https://github.com/LibraryCarpentry/lc-marcedit/pull/66
That's merged - so hopefully that fixes the remaining issues for you
Thank you. I will check it later today.
@ostephens, I re-ran, but I ran into errors in Episodes 6 and 7 (which should be fixed by https://github.com/LibraryCarpentry/lc-marcedit/pull/67). The episodes ended up being untransitioned and I think that's why we saw the link errors. Once https://github.com/LibraryCarpentry/lc-marcedit/pull/67 is merged, I will try again.
I can confirm that https://github.com/LibraryCarpentry/lc-marcedit/pull/67 fixed the link issues
this has been completed in 122c8d6a04425badf273d9d0f1bd982f8bda0cd5
tracking issue for https://github.com/librarycarpentry/lc-marcedit