mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-10 06:42:31 +02:00
test: genRoutesConfig
This commit is contained in:
parent
084063eabe
commit
8a5807418d
3 changed files with 209 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
const {fileToComponentName} = require('./utils');
|
||||
|
||||
async function genRoutesConfig({docsData, pagesData}) {
|
||||
async function genRoutesConfig({docsData = [], pagesData = []}) {
|
||||
function genDocsRoute({path: docsPath, source}) {
|
||||
const componentName = fileToComponentName(source);
|
||||
return `
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue