remove judge0 code editor, upgrade vitepress to v2
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Deploy / deploy (build:staging, school, 8822) (push) Canceled after 0s

- Drop the <editor> component, Judge0 client and CodeMirror themes/deps
- Pin markdown-it-mathjax3 to ^4 to satisfy vitepress peer dependency
- Upgrade vitepress 1.6.4 -> 2.0.0-alpha.20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-22 16:18:37 +08:00
1 parent e5c16de612
commit 2db1fa5d0d
9 files changed
+1288 -2563

No files matched your search

+1 -13
View File
@@ -4,19 +4,7 @@
本网站 [https://book.xuyue.cc](https://book.xuyue.cc) 是一本编程书,其中包含了编程语言、应用领域、计算机科学等相关内容。
本网站支持代码互动,比如下面的代码区,在输入框输入**黄岩一职**,点击运行,会显示欢迎光临:
<script lang="ts" setup>
const code = `
a=input()
if a == "黄岩一职":
print("欢迎光临")
`
</script>
<editor :code="code" />
当然普通的、不互动的代码块也有,一般用于演示:
文中的代码块一般用于演示,可以复制到[自测猫](../code/index.md)中运行:
```python
print("欢迎光临")