/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const getDocsFromDir = require('../scripts/getDocsFromDir'); module.exports = { // 手动配置的导航 // guide: [ // 'guide/quickStart/intro', // 'guide/quickStart/start', // { // type: 'category', // label: 'FAQ', // collapsed: false, // items: getDocsFromDir('guide/quickStart/faq'), // }, // ], /** * 根据当前目录自动生成导航配置 */ guide: [ { type: 'autogenerated', dirName: 'guide', // '.' 即当前的文档文件夹 }, ], api: [ { type: 'autogenerated', dirName: 'api', }, ], specs: [ { type: 'autogenerated', dirName: 'specs', }, ], faq: [ { type: 'autogenerated', dirName: 'faq', }, ], participate: [ { type: 'autogenerated', dirName: 'participate', }, ], demoUsage: [ { type: 'autogenerated', dirName: 'demoUsage', }, ], // api: getDocsFromDir('api'), };