deps: remove PWA and impl mermaid.

- I HATE PERSISTENT CACHE!
This commit is contained in:
SilverAg.L 2025-06-13 00:08:44 +08:00
parent 788719c178
commit 895093b98e
Signed by: AgxCOy
GPG Key ID: DC1A288A6AD79CC5
16 changed files with 956 additions and 2993 deletions

4
.vscode/tasks.json vendored
View File

@ -3,9 +3,9 @@
"tasks": [
{
"type": "npm",
"script": "docs:dev",
"script": "dev",
"problemMatcher": [],
"label": "npm: docs:dev",
"label": "pnpm: dev",
"detail": "vuepress-vite dev src",
"isBackground": true,
"runOptions": {

View File

@ -190,7 +190,12 @@ bool TActionExt::EditVariable(
如需链式允许一系列触发,比如 $t_1 \to t_2 \to \ldots \to t_n$ ,也是如法炮制。以此类推,就形成触发链:
![通过“允许触发”一级一级破坏“禁止”,把链条打通](trigger_chain.webp)
```mermaid
flowchart LR
A(["intro.0"]) -- “允许” --> TD(["[x] intro.1"])
TD -- “允许” --> n1(["[x] intro.2"])
```
而在程序代码当中,顺序是通过代码行的先后次序来体现的:
```python

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -5,16 +5,16 @@
"license": "MIT",
"type": "module",
"scripts": {
"docs:build": "vuepress-vite build docs",
"docs:clean-dev": "vuepress-vite dev docs --clean-cache",
"docs:dev": "vuepress-vite dev docs",
"docs:update-package": "pnpm dlx vp-update"
"build": "vuepress-vite build docs",
"dev": "vuepress-vite dev docs",
"up-deps": "pnpm dlx vp-update"
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.19",
"@vuepress/plugin-docsearch": "2.0.0-rc.76",
"@vuepress/plugin-pwa": "2.0.0-rc.76",
"@vuepress/plugin-remove-pwa": "2.0.0-rc.103",
"katex": "^0.16.21",
"mermaid": "^11.6.0",
"vue": "^3.5.13",
"vuepress": "2.0.0-rc.19",
"vuepress-theme-hope": "2.0.0-rc.71"

3865
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1200" class="icon" viewBox="0 0 3280.944 2800"><path fill="#41b883" d="M1645.332 601.004h375.675L1081.82 2238.478 142.636 601.004h718.477l220.708 379.704 216.013-379.704z"/><path fill="#41b883" d="M142.636 601.004l939.185 1637.474 939.186-1637.474h-375.675l-563.51 982.484-568.208-982.484z"/><path fill="#35495e" d="M513.188 601.004l568.207 987.23 563.511-987.23h-347.498l-216.013 379.704-220.708-379.704zM1607.792 1311.83l594.678 2.293 187.353-316.325-598.662 2.292zM2198.506 1909.57C2867.436 732.7 2939.502 605.426 2937.874 603.78c-.715-.723 45.303-1.314 102.262-1.314s103.562.428 103.562.951c0 .523-208.57 367.978-463.491 816.567L2216.715 2235.6l-102.1.596-102.102.596z"/><path fill="#41b883" d="M1680.563 2233.328c0-1.34 168.208-298.145 440.375-777.048a4135645.775 4135645.775 0 00337.619-594.19l146.13-257.25 170.746-.04 170.747-.04-5.536 9.741c-3.044 5.358-43.727 77.302-90.407 159.875-85.356 150.992-337.562 595.163-656.602 1156.373l-172 302.559-170.536.588c-93.795.322-170.536.069-170.536-.567z"/><path fill="#35495e" d="M1429.783 1625.351l594.679 2.292 187.353-316.324-598.662 2.292z"/><path fill="#41b883" d="M1524.207 1464.903l608.285 6.877 173.746-320.909h-619.072z"/></svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -76,8 +76,8 @@ export default hopeTheme(
tabs: true,
tasklist: true,
vPre: true,
// katex
math: true,
mermaid: true,
math: true, // katex
},
// 多语言配置
@ -107,59 +107,6 @@ export default hopeTheme(
components: {
components: ["Badge", "VPCard"],
},
// 如果你需要 PWA。安装 @vuepress/plugin-pwa 并取消下方注释
pwa: {
favicon: "/favicon.ico",
cacheHTML: false,
cacheImage: false,
appendBase: true,
apple: {
icon: "/assets/icon/apple-icon-152.png",
statusBarColor: "black",
},
manifest: {
icons: [
{
src: "/assets/icon/chrome-mask-512.png",
sizes: "512x512",
purpose: "maskable",
type: "image/png",
},
{
src: "/assets/icon/chrome-mask-192.png",
sizes: "192x192",
purpose: "maskable",
type: "image/png",
},
{
src: "/assets/icon/chrome-512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "/assets/icon/chrome-192.png",
sizes: "192x192",
type: "image/png",
},
],
// shortcuts: [
// {
// name: "Demo",
// short_name: "Demo",
// url: "/demo/",
// icons: [
// {
// src: "/assets/icon/guide-maskable.png",
// sizes: "192x192",
// purpose: "maskable",
// type: "image/png",
// },
// ],
// },
// ],
},
},
},
},
{

View File

@ -1,4 +1,5 @@
import { defineUserConfig } from "vuepress";
import { removePwaPlugin } from "@vuepress/plugin-remove-pwa"
import theme from "./src/theme.hope.js";
export default defineUserConfig({
@ -15,8 +16,10 @@ export default defineUserConfig({
theme,
// 和 PWA 一起启用
shouldPrefetch: false,
plugins: [
removePwaPlugin({}),
],
head: [
// 导入相应链接