Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap doesn't seem to be generating in v1.3.1 #4079

Closed
4 tasks done
lewislarsen opened this issue Jul 26, 2024 · 1 comment
Closed
4 tasks done

Sitemap doesn't seem to be generating in v1.3.1 #4079

lewislarsen opened this issue Jul 26, 2024 · 1 comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@lewislarsen
Copy link

Describe the bug

The sitemap seemingly isn't being generated for my instance of Vitepress.

Below is a snippet from my configuration file, I have read the documentation and from what I know, I've configured the base path correctly as page navigation is functional in production. I deploy with GitHub pages if that makes any difference, however I can't get a sitemap to generate locally either. (With an adjusted hostname)

    base: "/",
    sitemap: {
      hostname: 'https://docs.vanguardbackup.com/'
    },

My full configuration file can be found here.

Reproduction

Create a Vitepress project, define the hostname and base and visit the /sitemap.xml path.

Expected behavior

The sitemap should be generated and accessible at /sitemap.xml.

System Info

System:
    OS: macOS 15.0
    CPU: (8) arm64 Apple M1 Pro
    Memory: 87.41 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.4.0 - /opt/homebrew/bin/node
    npm: 10.8.1 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 126.0.6478.183
    Safari: 18.0
  npmPackages:
    vitepress: ^1.3.1 => 1.3.1

Additional context

No response

Validations

@lewislarsen lewislarsen added the bug: pending triage Maybe a bug, waiting for confirmation label Jul 26, 2024
@brc-dd
Copy link
Member

brc-dd commented Jul 26, 2024

sitemap is not part of themeConfig, move it outside that

use typescript or put // @ts-check comment on top of your file to find these typos in future

@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants