mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 13:38:33 +02:00
feat: allow custom docsUrl & custom permalink
This commit is contained in:
parent
185f7b1ed1
commit
b99605f725
12 changed files with 270 additions and 177 deletions
|
@ -20,7 +20,7 @@ module.exports = async function load(siteDir) {
|
|||
'..',
|
||||
siteConfig.customDocsPath || 'docs'
|
||||
);
|
||||
const docsData = await loadDocs({siteDir, docsDir, env});
|
||||
const docsData = await loadDocs({siteDir, docsDir, env, siteConfig});
|
||||
await generate(
|
||||
'docsData.js',
|
||||
`export default ${JSON.stringify(docsData, null, 2)};`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue