config.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import { defineUserConfig } from 'vuepress';
  2. import { defaultTheme } from 'vuepress'
  3. import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics';
  4. import { searchPlugin } from '@vuepress/plugin-search'
  5. import { sitemapPlugin } from 'vuepress-plugin-sitemap2';
  6. import zoomingPlugin from 'vuepress-plugin-zooming';
  7. export default defineUserConfig({
  8. locales: {
  9. "/": {
  10. lang: "en-US",
  11. title: "Nginx Proxy Manager",
  12. description: "Expose your services easily and securely",
  13. },
  14. },
  15. head: [
  16. ["link", { rel: "icon", href: "/icon.png" }],
  17. ["meta", { name: "description", content: "Docker container and built in Web Application for managing Nginx proxy hosts with a simple, powerful interface, providing free SSL support via Let's Encrypt" }],
  18. ["meta", { property: "og:title", content: "Nginx Proxy Manager" }],
  19. ["meta", { property: "og:description", content: "Docker container and built in Web Application for managing Nginx proxy hosts with a simple, powerful interface, providing free SSL support via Let's Encrypt"}],
  20. ["meta", { property: "og:type", content: "website" }],
  21. ["meta", { property: "og:url", content: "https://nginxproxymanager.com/" }],
  22. ["meta", { property: "og:image", content: "https://nginxproxymanager.com/icon.png" }],
  23. ["meta", { name: "twitter:card", content: "summary"}],
  24. ["meta", { name: "twitter:title", content: "Nginx Proxy Manager"}],
  25. ["meta", { name: "twitter:description", content: "Docker container and built in Web Application for managing Nginx proxy hosts with a simple, powerful interface, providing free SSL support via Let's Encrypt"}],
  26. ["meta", { name: "twitter:image", content: "https://nginxproxymanager.com/icon.png"}],
  27. ["meta", { name: "twitter:alt", content: "Nginx Proxy Manager"}],
  28. ],
  29. theme: defaultTheme({
  30. logo: '/icon.png',
  31. repo: "jc21/nginx-proxy-manager",
  32. docsRepo: 'https://github.com/jc21/nginx-proxy-manager',
  33. docsBranch: 'develop',
  34. docsDir: 'docs',
  35. editLinkPattern: ':repo/edit/:branch/:path',
  36. locales: {
  37. '/': {
  38. label: 'English',
  39. selectLanguageText: 'Languages',
  40. selectLanguageName: 'English',
  41. editLinkText: 'Edit this page on GitHub',
  42. navbar: [
  43. { text: 'Setup', link: '/setup/' }
  44. ],
  45. sidebar: {
  46. '/': [
  47. {
  48. text: 'Guide',
  49. children: ['/guide/README.md'],
  50. collapsible: true,
  51. },
  52. {
  53. text: 'Screenshots',
  54. children: ['/screenshots/README.md'],
  55. collapsible: true,
  56. },
  57. {
  58. text: 'Setup',
  59. children: ['/setup/README.md'],
  60. collapsible: true,
  61. },
  62. {
  63. text: 'Advanced Configuration',
  64. children: ['/advanced-config/README.md'],
  65. collapsible: true,
  66. },
  67. {
  68. text: 'Upgrading',
  69. children: ['/upgrading/README.md'],
  70. collapsible: true,
  71. },
  72. {
  73. text: 'Frequently Asked Questions',
  74. children: ['/faq/README.md'],
  75. collapsible: true,
  76. },
  77. {
  78. text: 'Third Party',
  79. children: ['/third-party/README.md'],
  80. collapsible: true,
  81. },
  82. ],
  83. },
  84. }
  85. }
  86. }),
  87. plugins: [
  88. googleAnalyticsPlugin({
  89. id: 'UA-99675467-4'
  90. }),
  91. sitemapPlugin({
  92. hostname: "https://nginxproxymanager.com",
  93. }),
  94. zoomingPlugin({
  95. selector: '.zooming',
  96. delay: 1000,
  97. options: {
  98. bgColor: 'black',
  99. zIndex: 10000,
  100. },
  101. }),
  102. searchPlugin({
  103. locales: {
  104. '/': {
  105. placeholder: 'Search',
  106. },
  107. },
  108. }),
  109. ],
  110. });