refactor: 目录结构增加 Topic 层级 topics/qunar-ai-fullstack/

子主题目录从 topics/{slug} 移至 topics/qunar-ai-fullstack/{slug}
前端 fetch 路径改用 subtopic.path 字段

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-09-02 19:32:58 +08:00
parent 10a464eea4
commit b567cca425
17 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -345,13 +345,13 @@ async function selectTopic(slug) {
if (!topic) return; if (!topic) return;
try { try {
// Load meta to get question file list const topicPath = topic.path;
const metaRes = await fetch(`topics/${slug}/meta.json`); const metaRes = await fetch(`${topicPath}/meta.json`);
const meta = await metaRes.json(); const meta = await metaRes.json();
currentQuestions = []; currentQuestions = [];
for (const typeFile of meta.question_files) { for (const typeFile of meta.question_files) {
const qRes = await fetch(`topics/${slug}/${typeFile}.json`); const qRes = await fetch(`${topicPath}/${typeFile}.json`);
const qData = await qRes.json(); const qData = await qRes.json();
currentQuestions.push(...qData.questions); currentQuestions.push(...qData.questions);
} }
+5 -5
View File
@@ -11,7 +11,7 @@
"slug": "gc-jvm", "slug": "gc-jvm",
"name": "GC / JVM / 三色标记", "name": "GC / JVM / 三色标记",
"description": "JVM 堆内存模型、GC 算法、三色标记法、垃圾收集器", "description": "JVM 堆内存模型、GC 算法、三色标记法、垃圾收集器",
"path": "topics/gc-jvm", "path": "topics/qunar-ai-fullstack/gc-jvm",
"stats": { "stats": {
"total": 20, "total": 20,
"by_type": { "by_type": {
@@ -24,7 +24,7 @@
"slug": "ai-structured-output", "slug": "ai-structured-output",
"name": "AI 结构化输出 / Agent 架构", "name": "AI 结构化输出 / Agent 架构",
"description": "结构化输出方法、Agent 模式、受限解码", "description": "结构化输出方法、Agent 模式、受限解码",
"path": "topics/ai-structured-output", "path": "topics/qunar-ai-fullstack/ai-structured-output",
"stats": { "stats": {
"total": 20, "total": 20,
"by_type": { "by_type": {
@@ -37,7 +37,7 @@
"slug": "ai-memory", "slug": "ai-memory",
"name": "Agent 记忆管理 / 冲突处理", "name": "Agent 记忆管理 / 冲突处理",
"description": "记忆分层架构、淘汰策略、冲突检测与消解", "description": "记忆分层架构、淘汰策略、冲突检测与消解",
"path": "topics/ai-memory", "path": "topics/qunar-ai-fullstack/ai-memory",
"stats": { "stats": {
"total": 20, "total": 20,
"by_type": { "by_type": {
@@ -50,7 +50,7 @@
"slug": "ai-hallucination", "slug": "ai-hallucination",
"name": "AI 幻觉 / 目标评价 / 规范", "name": "AI 幻觉 / 目标评价 / 规范",
"description": "幻觉分类、Critic 架构、Context Engineering、评估体系", "description": "幻觉分类、Critic 架构、Context Engineering、评估体系",
"path": "topics/ai-hallucination", "path": "topics/qunar-ai-fullstack/ai-hallucination",
"stats": { "stats": {
"total": 20, "total": 20,
"by_type": { "by_type": {
@@ -63,7 +63,7 @@
"slug": "ai-tooling", "slug": "ai-tooling",
"name": "AI 工具 / Harness / 综合", "name": "AI 工具 / Harness / 综合",
"description": "AI 工具选型、Harness 架构、可靠性保障、提效分析", "description": "AI 工具选型、Harness 架构、可靠性保障、提效分析",
"path": "topics/ai-tooling", "path": "topics/qunar-ai-fullstack/ai-tooling",
"stats": { "stats": {
"total": 20, "total": 20,
"by_type": { "by_type": {