docs(v2): fix syntax error for plugin config (#2570)

* Fix syntax error for plugin config

* Update using-plugins.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
Noah Silvera 2020-04-09 19:43:02 -07:00 committed by GitHub
parent 2510d3f18f
commit dcf91ebfe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 12 deletions

View file

@ -380,12 +380,14 @@ If you have installed `@docusaurus/preset-classic`, you don't need to install it
```js title="docusaurus.config.js"
module.exports = {
plugins: [
'@docusaurus/plugin-sitemap',
{
cacheTime: 600 * 1000, // 600 sec - cache purge period
changefreq: 'weekly',
priority: 0.5,
},
[
'@docusaurus/plugin-sitemap',
{
cacheTime: 600 * 1000, // 600 sec - cache purge period
changefreq: 'weekly',
priority: 0.5,
},
]
],
};
```