vuejs / vitepress

Vite & Vue powered static site generator.

Home Page:https://vitepress.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vitepress dose not generate sitemap with directories:doc

virskor opened this issue · comments

commented

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

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