Current File : /home/tradevaly/www/node_modules/collect.js/docs/.vuepress/config.js
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}`),
    }],
  },
};