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

Default value of sitemap option is not correct #469

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

oziks
Copy link
Contributor

@oziks oziks commented Jun 11, 2021

The current documentation explains that the default value of the sitemap option is sitemap.xml whereas in the code it is written sitemap/sitemap-index.xml (see here

mergedOptions.sitemap = new URL(path.posix.join(pathPrefix, 'sitemap', 'sitemap-index.xml'), mergedOptions.host).toString();
).

This pull request corrects this documentation error.

The current documentation explains that the default value of the sitemap option is `sitemap.xml` whereas in the code it is written `sitemap/sitemap-index.xml` (see here https://github.com/mdreizin/gatsby-plugin-robots-txt/blob/e04abbc660c611d927148840420395a93a6afe91/src/gatsby-node.js#L75).

This commit corrects this documentation error.
@mdreizin mdreizin merged commit 66ccd4f into mdreizin:master Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants