You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
static asset images doesn't support versioning #1257
I have a document which need to display some images, which are put under 'docs/assets' folder, and reference in the .md file like . Just followed the
Next, 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.
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 😄
Activity
yangshun commentedon Mar 4, 2019
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 😄
sunpeinju commentedon Mar 4, 2019
@yangshun thank you!
ataft commentedon Feb 6, 2020
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?