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
"Last updated" metadata not preserved after versioning #5598
I understand the problem, not sure exactly how to solve this 🤪
Maybe we should persist both in frontmatter:
the last update date of the original doc when creating a version
the date when the version was created
And do max(dateOriginalDocUpdate,dateUpdate)
Unless dateUpdate === dateVersionCreated in which case we use dateOriginalDocUpdate (is doc was not modified, just versioned/copied, so we ignore the fs date?)
That seems overly complex 😓
Maybe we should find a way to set a correct date on copied files, but I'm not sure it's possible the way we use Git history
We still don't know what should be done to fix this problem.
Fortunately, the next version of Docusauurs (v3.10) will have a VCS API that lets you provide your own logic for what is the "last updated" metadata of a file. #11512
This gives the ability to innovate and try to solve the problem in userland. If our community is able to figure out a good solution to this problem using this API, we may be able to merge it back to Docusaurus core.
Activity
slorber commentedon Sep 22, 2021
I understand the problem, not sure exactly how to solve this 🤪
Maybe we should persist both in frontmatter:
And do
max(dateOriginalDocUpdate,dateUpdate)Unless
dateUpdate === dateVersionCreatedin which case we usedateOriginalDocUpdate(is doc was not modified, just versioned/copied, so we ignore the fs date?)That seems overly complex 😓
Maybe we should find a way to set a correct date on copied files, but I'm not sure it's possible the way we use Git history
Josh-Cena commentedon Sep 22, 2021
We should find a way to specifically ignore one timestamp from the git history. Probably by adding extra logic in the doc versioning CLI?
dfranco commentedon Jan 11, 2026
I kind of have the same issue using 3.9.2.
I had to disable git created/ last updated in docusaurus config.
Is there any ETA or solutions for this issue ?
slorber commentedon Jan 16, 2026
We still don't know what should be done to fix this problem.
Fortunately, the next version of Docusauurs (v3.10) will have a VCS API that lets you provide your own logic for what is the "last updated" metadata of a file.
#11512
This gives the ability to innovate and try to solve the problem in userland. If our community is able to figure out a good solution to this problem using this API, we may be able to merge it back to Docusaurus core.
aakritigarkoti commentedon Oct 13, 2026
Reviewed this versioning metadata issue. Following along for updates as part of issue triage and documentation coordination!