mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-05 19:07:48 +02:00
Prettify all JavaScript files (#964)
* Prettify all JavaScript files * Make trailingComma all * Delete v2/.prettierignore * Remove v2 Prettier commands in package.json
This commit is contained in:
parent
a1de6dab04
commit
9d4a5d5359
101 changed files with 441 additions and 473 deletions
|
@ -18,17 +18,17 @@ module.exports = function createServerConfig(props) {
|
|||
|
||||
// static site generator webpack plugin
|
||||
const docsLinks = Object.values(docsMetadatas).map(data => ({
|
||||
path: `${data.permalink}`
|
||||
path: `${data.permalink}`,
|
||||
}));
|
||||
const paths = [...docsLinks, ...pagesMetadatas].map(data => data.path);
|
||||
config.plugin('siteGenerator').use(staticSiteGenerator, [
|
||||
{
|
||||
entry: 'main',
|
||||
locals: {
|
||||
baseUrl: siteConfig.baseUrl
|
||||
baseUrl: siteConfig.baseUrl,
|
||||
},
|
||||
paths
|
||||
}
|
||||
paths,
|
||||
},
|
||||
]);
|
||||
|
||||
// show compilation progress bar and build time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue