Have you read the Contributing Guidelines on issues?
Prerequisites
Description
After enabling:
future: {
experimental_vcs: 'default-v2',
},
the production build completes successfully, but the generated sitemap.xml does not contain a <lastmod> value for a committed documentation page.
Using the same repository and configuration with experimental_vcs: 'git-ad-hoc' produces a <lastmod> value as expected.
Reproducible demo
https://github.com/eMUQI/docusaurus-vcs-sitemap-repro
Steps to reproduce
Clone the repository so that the Git history is available:
git clone https://github.com/eMUQI/docusaurus-vcs-sitemap-repro.git
cd docusaurus-vcs-sitemap-repro
npm ci
npm run verify:repro
The verification script performs two production builds:
experimental_vcs: 'default-v2'
experimental_vcs: 'git-ad-hoc'
It then counts the <url> and <lastmod> elements in each generated sitemap.
Expected behavior
When the sitemap plugin is configured with:
sitemap: {
lastmod: 'date',
},
the default-v2 production build should include a <lastmod> value for the committed documentation page, as the git-ad-hoc build does.
Actual behavior
With default-v2, the generated sitemap contains the URL but no <lastmod>
Your environment
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
After enabling:
the production build completes successfully, but the generated
sitemap.xmldoes not contain a<lastmod>value for a committed documentation page.Using the same repository and configuration with
experimental_vcs: 'git-ad-hoc'produces a<lastmod>value as expected.Reproducible demo
https://github.com/eMUQI/docusaurus-vcs-sitemap-repro
Steps to reproduce
Clone the repository so that the Git history is available:
git clone https://github.com/eMUQI/docusaurus-vcs-sitemap-repro.git cd docusaurus-vcs-sitemap-repro npm ci npm run verify:reproThe verification script performs two production builds:
experimental_vcs: 'default-v2'experimental_vcs: 'git-ad-hoc'It then counts the
<url>and<lastmod>elements in each generated sitemap.Expected behavior
When the sitemap plugin is configured with:
the
default-v2production build should include a<lastmod>value for the committed documentation page, as thegit-ad-hocbuild does.Actual behavior
With
default-v2, the generated sitemap contains the URL but no<lastmod>Your environment
Self-service