Skip to content

Commit f2ed6a2

Browse files
committed
正文收纳进 docs/,删除 GitBook 遗留 SUMMARY.md 与 _book
1 parent d18d307 commit f2ed6a2

185 files changed

Lines changed: 6 additions & 65 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vitepress/config.mts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ export default defineConfig({
1010
// 部署在 https://flaggo.github.io/python3-source-code-analysis/
1111
base: '/python3-source-code-analysis/',
1212

13-
// 用仓库根目录作为内容源;首页为 index.md(背景 + Roadmap)
14-
srcDir: '.',
15-
// 不作为页面渲染的文件:README 仅供 GitHub 仓库使用,不进站点
16-
srcExclude: ['README.md', 'SUMMARY.md', '_book/**', '**/node_modules/**'],
13+
// 正文全部收纳在 docs/ 下;首页为 docs/index.md(背景 + Roadmap)
14+
srcDir: 'docs',
1715

1816
lastUpdated: true,
1917
cleanUrls: true,
@@ -109,7 +107,7 @@ export default defineConfig({
109107
},
110108

111109
editLink: {
112-
pattern: 'https://github.com/flaggo/python3-source-code-analysis/edit/master/:path',
110+
pattern: 'https://github.com/flaggo/python3-source-code-analysis/edit/master/docs/:path',
113111
text: '编辑此页面'
114112
},
115113

.vitepress/theme/MiniVM.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
import { ref, shallowRef, computed, onUnmounted } from 'vue'
3-
import TOY_SRC from '../../practice/mini-vm/minivm.py?raw'
3+
import TOY_SRC from '../../docs/practice/mini-vm/minivm.py?raw'
44
import { getPyodide } from './pyodide'
55
66
const EXAMPLES = {

.vitepress/theme/MiniVMPlayground.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
import { ref, computed, nextTick } from 'vue'
3-
import TOY_SRC from '../../practice/mini-vm/minivm.py?raw'
3+
import TOY_SRC from '../../docs/practice/mini-vm/minivm.py?raw'
44
import { getPyodide } from './pyodide'
55
66
// 注入到 Pyodide 的「驱动」:把编辑后的 VM 源码 exec 进独立命名空间,

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ build:
2020
$(NPM) run build
2121

2222
clean:
23-
rm -rf _book .vitepress/dist .vitepress/cache
23+
rm -rf _book .vitepress/dist .vitepress/cache .playwright-mcp

SUMMARY.md

Lines changed: 0 additions & 52 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)