From c769f517933659c9b9c987500ba4f0e0f916bde0 Mon Sep 17 00:00:00 2001 From: MG-Duan Date: Mon, 15 Sep 2025 16:10:21 +0800 Subject: [PATCH 1/4] fix: remove defineConfig to avoid esm/cjs conflict --- docs/.vitepress/config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index b6c7f28f..fe741d6d 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,6 +1,4 @@ -import { defineConfig } from 'vitepress' - -export default defineConfig({ +export default { // site-level configs title: 'SentinelTest', description: 'AI-driven test automation platform.', @@ -12,4 +10,4 @@ export default defineConfig({ // build-level configs base: '/WHartTest/', -}) \ No newline at end of file +} \ No newline at end of file From c62c9596ea6466916eaf1d2652dc944cbcfeca4b Mon Sep 17 00:00:00 2001 From: MG-Duan Date: Mon, 15 Sep 2025 16:22:43 +0800 Subject: [PATCH 2/4] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0VitePress?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=9F=BA=E7=A1=80=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.js | 121 ++++++++++++++++++++++++++++++++++---- 1 file changed, 110 insertions(+), 11 deletions(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index fe741d6d..014c1a3b 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,13 +1,112 @@ -export default { - // site-level configs - title: 'SentinelTest', - description: 'AI-driven test automation platform.', - - // theme-level configs - themeConfig: { - // theme-specific configs - }, +import { defineConfig } from 'vitepress' - // build-level configs +// https://vitepress.dev/reference/site-config +export default defineConfig({ + title: "WHartTest", + description: "WHartTest 是一个基于 Django REST Framework 构建的AI驱动测试自动化平台,核心功能是通过AI智能生成测试用例。平台集成了 LangGraph、MCP(Model Context Protocol)工具调用、项目管理、需求评审、测试用例管理以及先进的知识库管理和文档理解功能。利用大语言模型和HuggingFace嵌入模型的能力,自动化生成高质量的测试用例,并结合知识库提供更精准的测试辅助,为测试团队提供一个完整的智能测试管理解决方案.", + lastUpdated: true, + cleanUrls: true, base: '/WHartTest/', -} \ No newline at end of file + head: [ + ['meta', { name: 'keywords', content: 'WHartTest, 测试自动化, AI 测试, 知识库, LangChain, LangGraph, MCP, Django, Vue, VitePress' }], + ['meta', { property: 'og:title', content: 'WHartTest 文档' }], + ['meta', { name: 'keywords', content: 'WHartTest, 测试自动化, AI 测试, 知识库, LangChain, LangGraph, MCP, Django, Vue, VitePress' }], + ['meta', { property: 'og:title', content: 'WHartTest 文档' }], + ['meta', { property: 'og:description', content: 'AI驱动的智能测试自动化平台,集成知识库、LangGraph、MCP 工具与项目/用例/需求管理' }], + ['style', {}, ` + :root { + --vp-c-brand-1: #00a0e9; + --vp-c-brand-2: #1aaaeb; + --vp-c-brand-3: #0090d1; + --vp-button-brand-bg: linear-gradient(135deg, #00a0e9 0%, #1aaaeb 100%); + --vp-button-brand-hover-bg: linear-gradient(135deg, #0090d1 0%, #00a0e9 100%); + --vp-button-brand-text: #ffffff; + } + + .VPButton.brand { + background: linear-gradient(135deg, #00a0e9 0%, #1aaaeb 100%) !important; + border: 1px solid #00a0e9 !important; + color: white !important; + } + + .VPButton.brand:hover { + background: linear-gradient(135deg, #0090d1 0%, #00a0e9 100%) !important; + border: 1px solid #0090d1 !important; + } + `] + ], + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + logo: '/img/WHartTest.png', + + nav: [ + { text: '首页', link: '/' }, + { text: '项目介绍', link: '/project-introduction' }, + { text: '未来规划', link: '/future-planning' }, + { text: '快速上手', link: '/quick-start/django-deployment' }, + { text: 'API文档', link: '/api/knowledge-api' }, + { text: '开发指南', link: '/developer-guide/contributing' } + ], + + sidebar: { + '/quick-start/': [ + { + text: '快速上手', + items: [ + { text: '后端部署 (Django)', link: '/quick-start/django-deployment' }, + { text: '前端部署 (Vue)', link: '/quick-start/vue-deployment' }, + { text: 'MCP 工具部署', link: '/quick-start/mcp-deployment' } + ] + } + ], + '/api/': [ + { + text: 'API 文档', + items: [ + { text: '知识库 API', link: '/api/knowledge-api' }, + { text: '提示词 API', link: '/api/prompt-api' }, + { text: '需求 API', link: '/api/requirements-api' } + ] + } + ], + '/developer-guide/': [ + { + text: '开发指南', + items: [ + { text: '贡献指南', link: '/developer-guide/contributing' }, + { text: '集成指南', link: '/developer-guide/integration-guide' } + ] + } + ], + '/': [ + { + text: '介绍', + items: [ + { text: '项目介绍', link: '/project-introduction' }, + { text: '未来规划', link: '/future-planning' }, + { text: '许可证', link: '/license' } + ] + }, + { + text: '架构概览', + items: [ + { text: '前端', link: '/core-concepts/frontend-architecture' }, + { text: '后端', link: '/core-concepts/permission-system' } + ] + }, + { + text: '组件依赖', + items: [ + { text: '前端', link: '/core-concepts/frontend-dependencies' }, + { text: '后端', link: '/core-concepts/backend-dependencies' } + ] + } + ] + }, + + // 如需展示仓库链接,请在此处配置你们的仓库地址 + socialLinks: [ + { icon: 'github', link: 'https://github.com/MGdaasLab/WHartTest' } + ] + } +}) \ No newline at end of file From 3728624374b44bb0c4a76073689ac35ce53e9a75 Mon Sep 17 00:00:00 2001 From: MG-Duan Date: Mon, 15 Sep 2025 16:26:01 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E9=87=8D=E5=91=BD=E5=90=8D=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=BA=20.mjs=20=E4=BB=A5?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=20ESM=20=E5=8A=A0=E8=BD=BD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/{config.js => config.mjs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/.vitepress/{config.js => config.mjs} (100%) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.mjs similarity index 100% rename from docs/.vitepress/config.js rename to docs/.vitepress/config.mjs From 2bc29296fa972d86e8f830b91bf88125501b054a Mon Sep 17 00:00:00 2001 From: MG-Duan Date: Mon, 15 Sep 2025 16:51:46 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 350daf4c..d23d8d3c 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,8 @@ WHartTest 是一个基于 Django REST Framework 构建的AI驱动测试自动化平台,核心功能是通过AI智能生成测试用例。平台集成了 LangChain、MCP(Model Context Protocol)工具调用、项目管理、需求评审、测试用例管理以及先进的知识库管理和文档理解功能。利用大语言模型和HuggingFace嵌入模型的能力,自动化生成高质量的测试用例,并结合知识库提供更精准的测试辅助,为测试团队提供一个完整的智能测试管理解决方案。 -## 🚀 快速部署 - - - -### 1. 后端部署文档 -[后端部署文档](./WHartTest_Django/README.md) -### 2. 前端部署 -[前端部署文档](./WHartTest_Vue/README.md) -### 3. MCP 部署 -[MCP 部署文档](./WHartTest_MCP/README.md) -### 4.访问地址 -默认地址:http://localhost:5173/ -默认账户:admin -默认密码:123456 +## 文档 +详细文档请访问:https://mgdaaslab.github.io/WHartTest/ ## 页面展示