feat(sitemap): remove trailingSlash option; respect noIndex config (#6248)

This commit is contained in:
Joshua Chen 2022-01-06 00:56:17 +08:00 committed by GitHub
parent 37b70e3ab4
commit 8fe1ddf46a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 23 additions and 57 deletions

View file

@ -42,6 +42,15 @@ Accepted fields:
</APITable>
:::info
This plugin also respects some site config:
- [`noIndex`](../docusaurus.config.js.md#noindex): results in no sitemap generated
- [`trailingSlash`](../docusaurus.config.js.md#trailing-slash): determines if the URLs in the sitemap have trailing slashes
:::
### Example configuration {#ex-config}
You can configure this plugin through preset options or plugin options.