mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
feat: pass loaded siteConfig as props for React component
This commit is contained in:
parent
c0194a1f53
commit
11b0d15238
5 changed files with 21 additions and 10 deletions
|
@ -39,7 +39,7 @@ module.exports = async function start(siteDir, cliOptions = {}) {
|
|||
console.error(chalk.red(err.stack));
|
||||
});
|
||||
};
|
||||
const docsRelativeDir = props.siteConfig.customDocsPath || 'docs';
|
||||
const docsRelativeDir = props.siteConfig.customDocsPath;
|
||||
const fsWatcher = chokidar.watch(
|
||||
[`../${docsRelativeDir}/**/*.md`, 'blog/**/*.md', 'siteConfig.js'],
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue