config.js 945 B

12345678910111213141516171819202122232425262728293031323334
  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. head: [
  6. ['link', {
  7. rel: 'icon',
  8. type: 'image/png',
  9. href: 'https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/google/298/gem-stone_1f48e.png',
  10. }],
  11. ],
  12. themeConfig: {
  13. nav: [
  14. { text: 'Home', link: '/' },
  15. { text: 'Installation', link: '/installation.md' },
  16. { text: 'Usage', link: '/usage.md' },
  17. { text: 'API', link: '/api.md' },
  18. { text: 'GitHub', link: 'https://github.com/ecrmnn/collect.js' },
  19. ],
  20. sidebar: [{
  21. title: 'Get started',
  22. collapsable: false,
  23. children: [
  24. 'installation',
  25. 'usage',
  26. ],
  27. }, {
  28. title: 'API',
  29. collapsable: false,
  30. children: readdirSync('docs/api', 'utf-8').map(file => `/api/${file}`),
  31. }],
  32. },
  33. };