Skip to content

Commit

Permalink
Fix security warning (KusionStack#15)
Browse files Browse the repository at this point in the history
* remove mdx-mermaid plugin

* update package.json

* Bump trim from 0.0.1 to 0.0.3
  • Loading branch information
chai2010 authored May 25, 2022
1 parent a6a380c commit 0fa39b9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 611 deletions.
1 change: 0 additions & 1 deletion docs/governance/contribute/contribute-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Kusion 文档分为用户指南、开发文档、内部文档、参考手册和
- 文件名和目录名只能用数字、英文字母、下划线 `_` 和减号 `-` 组成
- 当前文档的图片放在当前目录的 images 目录下
- 矢量图片可以通过 [drawio 离线版](https://github.com/jgraph/drawio-desktop/releases) 绘制(并同时提交源文件),以 200% 分辨率导出 png 格式图片
- 矢量图也可以通过 [Mermaid](https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid) 在 Markdown 中直接绘制

## 2. 使用文档内容的基本模式

Expand Down
3 changes: 1 addition & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

const math = require('remark-math');
const katex = require('rehype-katex');
const mermaid = require('mdx-mermaid');

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
Expand Down Expand Up @@ -40,7 +39,7 @@ const config = {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/KusionStack/kusionstack.io/blob/main',
remarkPlugins: [math, mermaid],
remarkPlugins: [math],
rehypePlugins: [katex],
showLastUpdateAuthor: true,
showLastUpdateTime: true,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@
"docusaurus-lunr-search": "^2.1.15",
"file-loader": "^6.2.0",
"hast-util-is-element": "^1.1.0",
"mdx-mermaid": "^1.2.1",
"mermaid": "^8.14.0",
"nodejieba": "^2.6.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"rehype-katex": "^5.0.0",
"remark-math": "^3.0.1",
"url-loader": "^4.1.1"
"url-loader": "^4.1.1",
"trim": "0.0.3"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 0fa39b9

Please sign in to comment.