config.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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: 'Home',
  49. link: '/'
  50. },
  51. {
  52. text: 'Guide',
  53. link: '/guide/',
  54. collapsible: true,
  55. },
  56. {
  57. text: 'Screenshots',
  58. link: '/screenshots/',
  59. collapsible: true,
  60. },
  61. {
  62. text: 'Setup Instructions',
  63. link: '/setup/',
  64. collapsible: true,
  65. },
  66. {
  67. text: 'Advanced Configuration',
  68. link: '/advanced-config/',
  69. collapsible: true,
  70. },
  71. {
  72. text: 'Upgrading',
  73. link: '/upgrading/',
  74. collapsible: true,
  75. },
  76. {
  77. text: 'Frequently Asked Questions',
  78. link: '/faq/',
  79. collapsible: true,
  80. },
  81. {
  82. text: 'Third Party',
  83. link: '/third-party/',
  84. collapsible: true,
  85. },
  86. ],
  87. },
  88. }
  89. }
  90. }),
  91. markdown: {
  92. code: {
  93. lineNumbers: false,
  94. },
  95. },
  96. plugins: [
  97. googleAnalyticsPlugin({
  98. id: 'UA-99675467-4'
  99. }),
  100. sitemapPlugin({
  101. hostname: "https://nginxproxymanager.com",
  102. }),
  103. zoomingPlugin({
  104. selector: '.zooming',
  105. delay: 1000,
  106. options: {
  107. bgColor: 'black',
  108. zIndex: 10000,
  109. },
  110. }),
  111. searchPlugin({
  112. locales: {
  113. '/': {
  114. placeholder: 'Search',
  115. },
  116. },
  117. }),
  118. ],
  119. });