mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 17:07:08 +02:00
feat: prototype custom pages site generation
This commit is contained in:
parent
cf08a20737
commit
bc7b2835b0
8 changed files with 78 additions and 9 deletions
|
@ -11,10 +11,10 @@ module.exports = function createProdConfig(props) {
|
|||
// Workaround for Webpack 4 Bug (https://github.com/webpack/webpack/issues/6522)
|
||||
config.output.globalObject('this');
|
||||
|
||||
const {siteConfig, docsData} = props;
|
||||
const {siteConfig, docsData, pagesData} = props;
|
||||
|
||||
// Find all available paths
|
||||
const paths = docsData.map(docs => docs.path);
|
||||
const paths = [...docsData, ...pagesData].map(data => data.path);
|
||||
|
||||
config.plugin('StaticSiteGenerator').use(staticSiteGeneratorPlugin, [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue