adoptium.net icon indicating copy to clipboard operation
adoptium.net copied to clipboard

Investigate whether docs resources can be stored in relative directory rather than static

Open gdams opened this issue 3 years ago • 7 comments

gdams avatar Feb 22 '22 09:02 gdams

Still valid?

tellison avatar Dec 02 '22 11:12 tellison

yup

gdams avatar Dec 02 '22 11:12 gdams

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.

gdams avatar Dec 02 '22 11:12 gdams

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):

image

and the missing preview

image

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:

image

and the preview will of course show the image as well

image

ascheman avatar Jan 21 '23 10:01 ascheman

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 avatar Jan 21 '23 10:01 ascheman

@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.

gdams avatar Jan 21 '23 10:01 gdams

Please, please don't drop AsciiDoc in favour of markdown.

ascheman avatar Jan 21 '23 11:01 ascheman