feat: add twoslash js/ts highlight

This commit is contained in:
camera-2018
2024-06-03 22:14:51 +08:00
parent 6b9e972463
commit b5b72ee931
5 changed files with 4011 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
{
"type": "module",
"scripts": {
"docs:dev": "cross-env NODE_OPTIONS='--max-old-space-size=8192' vitepress dev --host",
"docs:build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' vitepress build",
@@ -23,6 +24,7 @@
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.5",
"@semantic-release/release-notes-generator": "^13.0.0",
"@shikijs/vitepress-twoslash": "^1.6.1",
"@vitejs/plugin-vue": "^5.0.4",
"cross-env": "^7.0.3",
"markdown-it-mathjax3": "^4.3.2",