From 10293acba334da7ea016ef7ca72888bcf365fdea Mon Sep 17 00:00:00 2001 From: wizardchen Date: Thu, 6 Aug 2026 20:36:34 +0800 Subject: [PATCH] feat(website-docs): add Dockerfile and Nginx configuration for documentation site Introduce a Dockerfile for building the documentation site using VitePress and an Nginx configuration for serving the built assets. The Dockerfile sets up a multi-stage build process, while the Nginx config handles routing and caching for the /docs/ path. Update VitePress configuration to set the base path for asset links. This enhances the deployment process for the WeKnora documentation site. --- website-docs/.vitepress/config.mts | 1 + website-docs/.vitepress/theme/Landing.vue | 27 +++++++------- website-docs/Dockerfile | 32 ++++++++++++++++ website-docs/nginx.conf | 45 +++++++++++++++++++++++ 4 files changed, 92 insertions(+), 13 deletions(-) create mode 100644 website-docs/Dockerfile create mode 100644 website-docs/nginx.conf diff --git a/website-docs/.vitepress/config.mts b/website-docs/.vitepress/config.mts index 85b3a90c..75ae9885 100644 --- a/website-docs/.vitepress/config.mts +++ b/website-docs/.vitepress/config.mts @@ -66,6 +66,7 @@ export default withMermaid( titleTemplate: ':title · WeKnora 文档', description: 'WeKnora(维娜拉)官方文档:部署、配置、功能说明、API 参考与二次开发', lang: 'zh-CN', + base: '/docs/', cleanUrls: true, lastUpdated: true, srcExclude: ['README.md'], diff --git a/website-docs/.vitepress/theme/Landing.vue b/website-docs/.vitepress/theme/Landing.vue index 08bcbcaa..34ad9369 100644 --- a/website-docs/.vitepress/theme/Landing.vue +++ b/website-docs/.vitepress/theme/Landing.vue @@ -1,5 +1,6 @@