-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Doc] How to properly embed an SVG image into markdown doc #52
Comments
@Neilblaze could you please give a look on this one and see if you know what happened here |
@frank-zsy sorry for the delay, I'm travelling right now and will be back by the 4th instant. I'll give it a closer look once I'm back, and hopefully come up with a solution. Thanks! |
Signed-off-by: neilblaze <[email protected]>
This seemed like a Docusaurus glitch, but now it's fixed! Please take a reply, and reopen this issue if required. |
Looks great, thanks for the help~ |
Are you certain it's a bug?
Are you sure this is not an issue in Docusaurus?
Is there an existing issue for this?
Issue description
In the doc file https://open-digger.cn/docs/user_docs/metrics/global_openrank right now I use absolute URL for the embedded SVG image because a relative URL will fail to load and show a 404 page in the embed position.
But in the former version, I use
/img/global_openrank.svg
assrc
and all looks good innpm start
andnpm run build && npm run serve
. But only after deployed, the image fails to load.Besides the bug in production mode, it is also wrong in preview mode, because if I use
/img/global_openrank.svg
, I need to inject the base URL like/pull_51/img/global_openrank.svg
to make it work.I do not know how to make this work for all circumstances since it seems that
@site
does not work here.Does anyone can help with this?
The text was updated successfully, but these errors were encountered: