config.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import {defineConfig} from 'vitepress'
  2. // https://vitepress.dev/reference/site-config
  3. function thisYear() {
  4. return new Date().getFullYear()
  5. }
  6. export default defineConfig({
  7. lang: 'en-US',
  8. title: 'Nginx UI',
  9. description: 'Yet another Nginx Web UI',
  10. themeConfig: {
  11. // https://vitepress.dev/reference/default-theme-config
  12. nav: [
  13. {text: 'Home', link: '/'},
  14. {text: 'Guide', link: '/guide/about'},
  15. {text: 'Reference', link: '/reference/api-examples'},
  16. {text: 'Demo', link: 'https://nginxui.jackyu.cn'}
  17. ],
  18. sidebar: {
  19. '/guide/': [
  20. {
  21. text: 'Introduction',
  22. items: [
  23. {text: 'What is Nginx UI?', link: '/guide/about'},
  24. {text: 'Getting Started', link: '/guide/getting-started'},
  25. {text: 'Nginx Proxy Example', link: '/guide/nginx-proxy-example'},
  26. {text: 'Contributing', link: '/guide/contributing'},
  27. {text: 'License', link: '/guide/license'}
  28. ]
  29. }
  30. ]
  31. },
  32. footer: {
  33. message: 'Released under the AGPL-3.0 License.',
  34. copyright: 'Copyright © 2021-' + thisYear() + ' Nginx UI Team'
  35. },
  36. socialLinks: [
  37. {icon: 'github', link: 'https://github.com/0xJacky/nginx-ui'}
  38. ]
  39. }
  40. })