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

4 years ago
  1. const { readdirSync } = require('fs');
  2. module.exports = {
  3. title: 'collect.js',
  4. description: 'Convenient and dependency free wrapper for working with arrays and objects.',
  5. themeConfig: {
  6. nav: [
  7. { text: 'Home', link: '/' },
  8. { text: 'Installation', link: '/installation.md' },
  9. { text: 'Usage', link: '/usage.md' },
  10. { text: 'API', link: '/api.md' },
  11. { text: 'GitHub', link: 'https://github.com/ecrmnn/collect.js' },
  12. ],
  13. sidebar: [{
  14. title: 'Get started',
  15. collapsable:false,
  16. children: [
  17. 'installation',
  18. 'usage',
  19. ],
  20. }, {
  21. title: 'API',
  22. collapsable: false,
  23. children: readdirSync('docs/api', 'utf-8').map(file => `/api/${file}`),
  24. }],
  25. },
  26. };