1
0

config.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: 'Demo', link: 'https://nginxui.jackyu.cn'}
  16. ],
  17. sidebar: {
  18. '/guide/': [
  19. {
  20. text: 'Introduction',
  21. items: [
  22. {text: 'What is Nginx UI?', link: '/guide/about'},
  23. {text: 'Getting Started', link: '/guide/getting-started'},
  24. {text: 'Nginx Proxy Example', link: '/guide/nginx-proxy-example'},
  25. {text: 'Contributing', link: '/guide/contributing'},
  26. {text: 'License', link: '/guide/license'}
  27. ]
  28. },
  29. {
  30. text: 'Configuration',
  31. items: [
  32. {text: 'Server', link: '/guide/config-server'},
  33. {text: 'Nginx Log', link: '/guide/config-nginx-log'},
  34. {text: 'Open AI', link: '/guide/config-openai'}
  35. ]
  36. }
  37. ]
  38. },
  39. search: {
  40. provider: 'local'
  41. },
  42. footer: {
  43. message: 'Released under the AGPL-3.0 License.',
  44. copyright: 'Copyright © 2021-' + thisYear() + ' Nginx UI Team'
  45. },
  46. socialLinks: [
  47. {icon: 'github', link: 'https://github.com/0xJacky/nginx-ui'}
  48. ]
  49. }
  50. })