-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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.xml is not populating a site map #2103
Sitemap.xml is not populating a site map #2103
Comments
Seems like a potentially significant issue for two reasons:
|
@austin-schaefer would you say this a P1? There is no work around I can thinking of.. |
@bradleycamacho Reading through the issue it looks like they changed the default path that they create the sitemap at, I was able to find it here: https://docs.newrelic.com/sitemap/sitemap-0.xml The site map index doesn't include the sub-folder that the sitemap files are placed in currently, but there is a PR open to fix that issue: fix(gatsby-plugin-sitemap): Sitemap path bug #31184 If you are running into issues affected by the above, there seems to be a workaround by setting the output config to |
Oh weird. I tried that path yesterday but didn't see it. Must've typo'ed it. Nice catch, @rudouglas |
for time being, i updated swiftype UI to use that sitemap path |
Oh wow, thanks @rudouglas! I'll share that with our stakeholders. I will keep this issue open as I believe we still need to fix a few of those remaining issues @rudouglas linked to. |
Ye @roadlittledawn it seems to throw a |
Testing this on Developer site for build times 😛: It looks like setting
But if we set something specific like Testing this on the docs site to confirm |
@rudouglas @roadlittledawn let me know if we want to ask Gatsby for any insights to this issue. We can drop this in the shared slack room if you need pointers. |
Ye @jpvajda that might be the best way to go, it works differently on the docs site than it does on the developer site, which may also be down to versioning, but might save time to ask them to weigh in? |
@rudouglas I updated the theme's demo site config to explicitly set
It also looked like the I updated the package to |
@roadlittledawn it sounds like we may be good on this issue then? 🥰 |
@roadlittledawn ok ye |
Description
GTS uses a search tool to allow our support engineers to search multiple content sources at once. The tool was able to index Product Docs using the sitemap here: https://docs.newrelic.com/sitemap.xml/ but that appears to be gone now.
We likely need to update https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/ . Complicating things, it seems like there are some issues with Gatsby sitemaps in general: gatsbyjs/gatsby#31095
Expected
It seems like our current config for the sitemap is broken and doesn't generate the sitemap at https://docs.newrelic.com/sitemap/sitemap-index.xml
Eng work
output
option to themegatsby-config.js
to explicitly set file path.<link rel="sitemap" />
in<head>
has the correcthref
for the path we set.The text was updated successfully, but these errors were encountered: