-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
static asset images doesn't support versioning #1257
Comments
Unfortunately, this is one of the known limitations of versioning. One workaround you can do is to never not the asset that is relied on in the old version and instead add the new asset under a different name. We will address this bug and fix it properly in #789 when we rethink how we're implementing versions. You're welcome to send a patch for this bug 😄 |
@yangshun thank you! |
I see that versioning has been added to Docusaurus v2 now (https://v2.docusaurus.io/docs/versioning). However, it doesn't appear that this issue has been addressed. Should this issue be re-opened? |
🐛 Bug Report
I have a document which need to display some images, which are put under 'docs/assets' folder, and reference in the .md file like
![sample](assets/image1.png)
. Just followed theNext, I want to create a new version of the document and need to use an updated version of the image. I executed
docusaurus-version
and old version .md files are backed up, but the 'docs/assets` folder isn't backed up to 'versioned_docs'. So two versions of md files reference to same one 'docs/assets' folder. I can't replace the image in the folder directly, since it impacts old document.I think static assets of each version also need to be backed up by
docusaurus-version
. Current behavior looks like to be a bug.Have you read the Contributing Guidelines on issues?
yes
To Reproduce
(Write your steps here:)
Expected behavior
(Write what you thought would happen.)
Actual Behavior
(Write what happened. Add screenshots, if applicable.)
Reproducible Demo
(Paste the link to an example repo, including a
siteConfig.js
, and exact instructions to reproduce the issue.)The text was updated successfully, but these errors were encountered: