init
This commit is contained in:
commit
0285b2a5d1
12 files changed
+4243
No files matched your search
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 - 2022 Knut Sveidqvist
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
# vendor/mermaid
|
||||
|
||||
这里放的是 **mermaid 11.15.0** 的浏览器构建,供 `tools/marp-mermaid-engine.mjs` 在构建时
|
||||
把 Markdown 里的 ```` ```mermaid ```` 代码块渲染成内联 SVG 用(详见该文件的说明)。
|
||||
|
||||
- 文件:`mermaid.min.js`(UMD 单文件构建,自包含,不依赖同目录其它分片)
|
||||
- 来源:本机 npm 包 `mermaid@11.15.0` 的 `dist/mermaid.min.js`
|
||||
(具体是从 `~/.local/src/llama.cpp/tools/ui/node_modules/mermaid/dist/` 复制过来的)
|
||||
- 许可:MIT,原许可证见同目录 `LICENSE`
|
||||
- 大小:约 3.2 MB
|
||||
|
||||
## 为什么单独复制一份
|
||||
|
||||
原来插件直接引用了 llama.cpp 那份 node_modules 里的路径。复制到这里之后,这个 deck
|
||||
就是自包含的:换机器、删掉 llama.cpp 都不影响构建。
|
||||
|
||||
## 想升级 mermaid
|
||||
|
||||
从任意来源拿到新版本的 `dist/mermaid.min.js`,覆盖这个文件即可:
|
||||
|
||||
```bash
|
||||
npm pack mermaid@<version> # 或 npm i mermaid@<version> 后从 node_modules 取
|
||||
cp mermaid/dist/mermaid.min.js vendor/mermaid/mermaid.min.js
|
||||
```
|
||||
|
||||
如果用别处的文件,也可以不改本目录,改用环境变量指定:
|
||||
|
||||
```bash
|
||||
MARP_MERMAID_DIR=/path/to/mermaid/dist marp example.marp.md -o pre.html
|
||||
```
|
||||
Vendored
+3405
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user