feat(v2): Add themeConfig.noIndex option #3528 (#3573)

* feat(v2): Add themeConfig.noIndex option #3528

* feat(v2): Add themeConfig.noIndex optionthrough ssrTemplate

* feat(v2): Include themeConfig.noIndex in CLI migration v1 to v2

* feat(v2): Remove themeConfig.noIndex from env dev
This commit is contained in:
Hamza Hamidi 2020-10-14 11:14:16 +02:00 committed by GitHub
parent e5d9cdc871
commit e0c644e623
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 31 additions and 3 deletions

View file

@ -80,6 +80,20 @@ module.exports = {
## Optional fields
### `noIndex`
- Type: `boolean`
This option adds `<meta name="robots" content="noindex">` in pages, to tell search engines to avoid indexing your site (more information [here](https://moz.com/learn/seo/robots-meta-directives)).
Example:
```js title="docusaurus.config.js"
module.exports = {
noIndex: true, // Defaults to false
};
```
### `onBrokenLinks`
- Type: `'ignore' | 'log' | 'warn' | 'error' | 'throw'`