-
Notifications
You must be signed in to change notification settings - Fork 192
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
Images in output.md not rendered when converted to html #391
Comments
Good spot! Absolute paths is one way, or we could also copy the images directory to the results folder. The best way would be to base64 encode the images so that they are included in the HTML file. |
To be honest, it wouldn't be a terrible idea to rewrite this functionality. I don't love that it's done with an R script, as it means that every pipeline has to have R in the container. Could be better to have it in a Python script, as we're using conda.. |
Issues with needing R aside (which I agree isn't ideal for a single package), I'm going to go one step further and ask if we actually need to generate this file at all? It's a duplicate of what's already available online so why not just use/point to that one exclusively for results documentation? |
Yes, the same question passed through my mind to be honest. It is a relic of the early days of the NGI pipelines really. But I think that is probably is still useful in our use case - specifically when pipeline results are delivered to a user who has no knowledge (or interest) of the pipeline that generated those results. I guess we could just link to the online docs though. Maybe a shortcut file?? Remember those? 😆
|
Good point @drpatelh! If we could simply link to whats online I think that's the best way to do it and also is anyways the same piece of information. |
I guess the only real problem is that |
We can always refer to a permalink of the docs |
I just tested the example Referring to specific versions won't work on the nf-core website, but pinning to a commit hash on GitHub.com should be fine.. |
Looks like you can use tag (release) names directly in the GitHub URLs too, so we don't have to worry about fetching commit hashes: https://github.com/nf-core/atacseq/blob/1.0.0/docs/output.md |
I have now rewritten the markdown conversion in Python and this includes base64 including images. See #501 |
The conversion in Python is working great now but still no images being rendered in the output |
Thanks to @svarona for this proposed fix: |
haha, is that it? That the images weren't being staged in the work directory? Of course! Nothing to do with the script itself - no wonder I couldn't replicate the problem 🤦 Nice work @svarona! |
Oh my 🤦♂️ And everyone was super crazy about "what is wrong there 🤔 " .... thanks a lot @svarona ! |
Fix in #600 |
The template contains a process called
output_documentation
that converts the pipeline's output documentation i.e.docs/output.md
to html format in order to be stored with the results. However, if there are images embedded or linked in this document then these wont be rendered properly and so the links just appear to be broken. Im wondering whether using absolute instead of relative paths will solve this... 🤔The text was updated successfully, but these errors were encountered: