adoptium.net
adoptium.net copied to clipboard
Investigate whether docs resources can be stored in relative directory rather than static
Still valid?
yup
For a bit of extra context... https://www.npmjs.com/package/gatsby-remark-copy-linked-files does this for Markdown files so in principle we need to find a way of doing something similar for the asciidoc files or potentially even extend the functionality of the plugin upstream.
I've asked the question in https://github.com/gatsbyjs/gatsby/discussions/37149 to see if other people are interested in this.
Could you please add a small description about the problem?
I suspect it is about error messages shown in an IDE, e.g., IntelliJ (using the IntelliJ AsciiDoctor Plugin):
and the missing preview
At least for IntelliJ this can be resolved by adding a file .asciidoctorconfig into the respective directory (/content here).
:imagesdir: {asciidoctorconfigdir}/../static/images
Then the error in IntelliJ is gone, a mouse over will even show the referenced image:
and the preview will of course show the image as well
If you feel my comment above describes the problem, you may assign the issue to me @gdams / @smlambert and add it to the Q1 2023 project.
@ascheman I should have marked this as fixed by https://github.com/adoptium/adoptium.net/pull/1397. We should hopefully no longer have this problem. Thanks for bringing the issue to my attention again thought.
Please, please don't drop AsciiDoc in favour of markdown.