You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
746 B

const { readdirSync } = require('fs');
module.exports = {
title: 'collect.js',
description: 'Convenient and dependency free wrapper for working with arrays and objects.',
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
{ text: 'Installation', link: '/installation.md' },
{ text: 'Usage', link: '/usage.md' },
{ text: 'API', link: '/api.md' },
{ text: 'GitHub', link: 'https://github.com/ecrmnn/collect.js' },
],
sidebar: [{
title: 'Get started',
collapsable:false,
children: [
'installation',
'usage',
],
}, {
title: 'API',
collapsable: false,
children: readdirSync('docs/api', 'utf-8').map(file => `/api/${file}`),
}],
},
};