diff --git a/apps/docs/.vitepress/config.ts b/apps/docs/.vitepress/config.ts index d61db82..160a0ae 100644 --- a/apps/docs/.vitepress/config.ts +++ b/apps/docs/.vitepress/config.ts @@ -4,6 +4,7 @@ export default defineConfig({ title: 'nginx-love Documentation', description: 'Enterprise Nginx + ModSecurity Management Platform', lang: 'en-US', + base: '/nginx-love/', // Theme appearance appearance: 'dark', @@ -202,6 +203,12 @@ export default defineConfig({ } }, + // Ignore dead links configuration + ignoreDeadLinks: [ + /^http:\/\/localhost/, + /^http:\/\/YOUR_IP/ + ], + // Markdown configuration markdown: { theme: { diff --git a/apps/docs/guide/introduction.md b/apps/docs/guide/introduction.md index 086415a..a406e86 100644 --- a/apps/docs/guide/introduction.md +++ b/apps/docs/guide/introduction.md @@ -39,5 +39,4 @@ nginx-love collects and displays performance metrics for your Nginx servers, hel ## Next Steps - [Installation Guide](/guide/installation) - Learn how to install nginx-love -- [Quick Start](/guide/quick-start) - Get up and running quickly -- [Features](/guide/features) - Explore all available features \ No newline at end of file +- [Quick Start](/guide/quick-start) - Get up and running quickly \ No newline at end of file diff --git a/apps/docs/guide/quick-start.md b/apps/docs/guide/quick-start.md index 0962ace..6c74955 100644 --- a/apps/docs/guide/quick-start.md +++ b/apps/docs/guide/quick-start.md @@ -390,7 +390,7 @@ Congratulations! You've successfully set up your first domain with the Nginx WAF - [**ModSecurity Rules**](/guide/modsecurity): Create custom WAF rules - [**Performance Optimization**](/guide/performance): Advanced monitoring and optimization - [**Log Analysis**](/guide/logs): Deep dive into log analysis and troubleshooting -- [**API Integration**](/api/): Integrate with external systems via REST API +- [**API Integration**](/api/auth): Integrate with external systems via REST API ### Maintenance and Monitoring @@ -405,7 +405,7 @@ If you encounter any issues or have questions: - Check our [troubleshooting guide](/reference/troubleshooting) - Review the [FAQ](/reference/faq) -- Browse our [API documentation](/api/) +- Browse our [API documentation](/api/auth) - Contact support for assistance ## Installation Complete diff --git a/apps/docs/index.md b/apps/docs/index.md index a157536..cdf8711 100644 --- a/apps/docs/index.md +++ b/apps/docs/index.md @@ -32,6 +32,6 @@ To get started with nginx-love, follow our [installation guide](/guide/installat ## Documentation -- [Guide](/guide/) - Learn how to use nginx-love -- [API Reference](/api/) - Explore the REST API -- [Reference](/reference/) - Find configuration options and troubleshooting tips \ No newline at end of file +- [Guide](/guide/introduction) - Learn how to use nginx-love +- [API Reference](/api/auth) - Explore the REST API +- [Reference](/reference/configuration) - Find configuration options and troubleshooting tips \ No newline at end of file diff --git a/apps/docs/package.json b/apps/docs/package.json index 2e47dc9..7593404 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -12,8 +12,9 @@ "vue": "^3.3.4" }, "devDependencies": { - "vitepress": "^2.0.0-alpha.12", + "terser": "^5.44.0", "typescript": "^5.2.2", + "vitepress": "^2.0.0-alpha.12", "vue-tsc": "^1.8.8" } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b840585..f6e5926 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -109,12 +109,15 @@ importers: specifier: ^3.3.4 version: 3.5.22(typescript@5.9.3) devDependencies: + terser: + specifier: ^5.44.0 + version: 5.44.0 typescript: specifier: ^5.2.2 version: 5.9.3 vitepress: specifier: ^2.0.0-alpha.12 - version: 2.0.0-alpha.12(typescript@5.9.3) + version: 2.0.0-alpha.12(terser@5.44.0)(typescript@5.9.3) vue-tsc: specifier: ^1.8.8 version: 1.8.27(typescript@5.9.3) @@ -1515,6 +1518,13 @@ packages: engines: {node: '>=6.0.0'} dev: true + /@jridgewell/source-map@0.3.11: + resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==} + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + dev: true + /@jridgewell/sourcemap-codec@1.5.5: resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} @@ -4393,7 +4403,7 @@ packages: vue: ^3.2.25 dependencies: '@rolldown/pluginutils': 1.0.0-beta.29 - vite: 7.1.9(@types/node@24.6.2) + vite: 7.1.9(terser@5.44.0) vue: 3.5.22(typescript@5.9.3) dev: true @@ -5009,6 +5019,10 @@ packages: resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} dev: true + /commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + dev: true + /computeds@0.0.1: resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==} dev: true @@ -7602,6 +7616,17 @@ packages: yallist: 5.0.0 dev: true + /terser@5.44.0: + resolution: {integrity: sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.11 + acorn: 8.15.0 + commander: 2.20.3 + source-map-support: 0.5.21 + dev: true + /text-hex@1.0.0: resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} dev: false @@ -8074,7 +8099,58 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@2.0.0-alpha.12(typescript@5.9.3): + /vite@7.1.9(terser@5.44.0): + resolution: {integrity: sha512-4nVGliEpxmhCL8DslSAUdxlB6+SMrhB0a1v5ijlh1xB1nEPuy1mxaHxysVucLHuWryAxLWg6a5ei+U4TLn/rFg==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + dependencies: + esbuild: 0.25.10 + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + postcss: 8.5.6 + rollup: 4.52.4 + terser: 5.44.0 + tinyglobby: 0.2.15 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /vitepress@2.0.0-alpha.12(terser@5.44.0)(typescript@5.9.3): resolution: {integrity: sha512-yZwCwRRepcpN5QeAhwSnEJxS3I6zJcVixqL1dnm6km4cnriLpQyy2sXQDsE5Ti3pxGPbhU51nTMwI+XC1KNnJg==} hasBin: true peerDependencies: @@ -8105,7 +8181,7 @@ packages: mark.js: 8.11.1 minisearch: 7.2.0 shiki: 3.13.0 - vite: 7.1.9(@types/node@24.6.2) + vite: 7.1.9(terser@5.44.0) vue: 3.5.22(typescript@5.9.3) transitivePeerDependencies: - '@types/node'