Merge pull request #36 from qinfendebingshuo/copilot/fix-persona-studio-link

fix: make Persona Studio accessible via GitHub Pages
This commit is contained in:
冰朔 2026-03-10 16:04:10 +08:00 committed by GitHub
commit 86f680040f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 6 deletions

View File

@ -6,6 +6,7 @@ on:
- main # 仅 main 分支触发生产部署 - main # 仅 main 分支触发生产部署
paths: paths:
- 'docs/**' - 'docs/**'
- 'persona-studio/frontend/**'
- '.github/brain/**' - '.github/brain/**'
workflow_dispatch: workflow_dispatch:
@ -31,6 +32,11 @@ jobs:
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v5 uses: actions/configure-pages@v5
- name: Sync Persona Studio frontend to docs
run: |
mkdir -p docs/persona-studio
cp -r persona-studio/frontend/* docs/persona-studio/
- name: Upload Pages artifact - name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:

View File

@ -31,7 +31,7 @@
<br> <br>
### 🚀 [点击进入 Persona Studio →](https://guanghulab.com/persona-studio/) ### 🚀 [点击进入 Persona Studio →](https://qinfendebingshuo.github.io/guanghulab/persona-studio/)
💬 自然语言对话 &nbsp;·&nbsp; 🧠 智能代码生成 &nbsp;·&nbsp; 📧 邮件推送结果 &nbsp;·&nbsp; 🔄 对话记忆 💬 自然语言对话 &nbsp;·&nbsp; 🧠 智能代码生成 &nbsp;·&nbsp; 📧 邮件推送结果 &nbsp;·&nbsp; 🔄 对话记忆
@ -59,7 +59,7 @@
| **铸渊 Zhùyuān** | 代码守护者 | 代码审查、CI 巡检、模块协议执行、Issue 回复 | | **铸渊 Zhùyuān** | 代码守护者 | 代码审查、CI 巡检、模块协议执行、Issue 回复 |
| **冰朔 Bīng Shuò** | 系统创建者 | 系统架构设计、核心决策、广播发布 | | **冰朔 Bīng Shuò** | 系统创建者 | 系统架构设计、核心决策、广播发布 |
| **霜砚 Shuāng Yàn** | 人格导师 | 人格调校、风格管理、联觉语言系统 | | **霜砚 Shuāng Yàn** | 人格导师 | 人格调校、风格管理、联觉语言系统 |
| **知秋 Zhī Qiū** | 协助开发者 | 对话协助、代码生成、开发体验([Persona Studio](https://guanghulab.com/persona-studio/) | | **知秋 Zhī Qiū** | 协助开发者 | 对话协助、代码生成、开发体验([Persona Studio](https://qinfendebingshuo.github.io/guanghulab/persona-studio/) |
--- ---
@ -213,7 +213,7 @@
### 体验模块 ### 体验模块
| 模块 | 说明 | | 模块 | 说明 |
|------|------| |------|------|
| `persona-studio/` | 人格体协助开发体验([进入 →](https://guanghulab.com/persona-studio/) | | `persona-studio/` | 人格体协助开发体验([进入 →](https://qinfendebingshuo.github.io/guanghulab/persona-studio/) |
### 系统支撑 ### 系统支撑
| 模块 | 说明 | | 模块 | 说明 |

View File

@ -15,7 +15,7 @@
## 👉 点击进入体验 ## 👉 点击进入体验
<p align="center"> <p align="center">
<a href="https://qinfendebingshuo.github.io/persona-studio/"> <a href="https://qinfendebingshuo.github.io/guanghulab/persona-studio/">
<img src="https://img.shields.io/badge/%F0%9F%9A%80%20%E6%89%93%E5%BC%80%E4%BA%BA%E6%A0%BC%E4%BD%93%E5%AF%B9%E8%AF%9D%E7%95%8C%E9%9D%A2-Click%20Here-0969da?style=for-the-badge&logoColor=white" alt="Launch" /> <img src="https://img.shields.io/badge/%F0%9F%9A%80%20%E6%89%93%E5%BC%80%E4%BA%BA%E6%A0%BC%E4%BD%93%E5%AF%B9%E8%AF%9D%E7%95%8C%E9%9D%A2-Click%20Here-0969da?style=for-the-badge&logoColor=white" alt="Launch" />
</a> </a>
</p> </p>

View File

@ -9,7 +9,7 @@ const API_BASE = (function () {
if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') { if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') {
return 'http://localhost:3002'; return 'http://localhost:3002';
} }
return ''; return 'https://guanghulab.com';
})(); })();
/* ---- Init ---- */ /* ---- Init ---- */

View File

@ -52,7 +52,7 @@
if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') { if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') {
return 'http://localhost:3002'; return 'http://localhost:3002';
} }
return ''; return 'https://guanghulab.com';
} }
async function handleLogin(e) { async function handleLogin(e) {