vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
11.47k stars 1.86k forks source link

Vitepress dose not generate sitemap with directories:doc #3799

Closed virskor closed 2 weeks ago

virskor commented 4 weeks ago

Describe the bug

after migrate package.json

"directories": {
    "doc": "records"
  },

sitemap generate with sitemap.hostname but not add /records after host name

Reproduction

sitemap.xml

Expected behavior

loc shoud be http://test.com/records/ok.html not http://test.com/ok.html

System Info

"vitepress": "^1.1.0"

Additional context

No response

Validations

brc-dd commented 2 weeks ago

You need to set base - https://vitepress.dev/reference/site-config#base

directories.doc is probably some non-standard thing which vitepress doesn't recognize