Skip to content

Commit 6198316

Browse files
authored
Dev/update-packages (#37)
* chore: `npm audit fix --force` * chore: adapted to ESM * fix: type matched * chore: rerun `npm audit fix` * chore: update @types/node to v22.15.3 and remove npm dependency * fix: update markdown-it and markdown-it-container to latest versions * chore: update vitepress to version 1.6.3 * fix: language name for code blocks `text` -> `txt`
1 parent 00e1694 commit 6198316

7 files changed

Lines changed: 6425 additions & 9357 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { link } from 'fs';
22
import { defineConfig } from 'vitepress'
3-
4-
const containerMdExtend = require('./detail-plugin.js');
5-
const markdowinItCharts = require('markdown-it-charts');
6-
//import markdownItMermaid from 'markdown-it-mermaid'
3+
import markdownItContainer from 'markdown-it-container';
4+
import containerMdExtend from './detail-plugin.js';
5+
import markdowinItCharts from 'markdown-it-charts';
6+
import mathjax3 from 'markdown-it-mathjax3';
77
import { withMermaid } from "vitepress-plugin-mermaid";
88
import { head } from './ga-plugin';
99

@@ -19,12 +19,12 @@ export default withMermaid({
1919
// lineNumbers: true,
2020
config: (md) => {
2121
md.use(
22-
require('markdown-it-container'),
22+
markdownItContainer,
2323
'spoiler',
2424
containerMdExtend(md),
2525
);
2626
md.use(markdowinItCharts);
27-
md.use(require('markdown-it-mathjax3'));
27+
md.use(mathjax3);
2828
}
2929
},
3030
themeConfig: {
@@ -188,7 +188,7 @@ export default withMermaid({
188188
[
189189
'script',
190190
{
191-
async: true,
191+
async: "true",
192192
src: 'https://www.googletagmanager.com/gtag/js?id=G-977V87X2CQ',
193193
},
194194
],

docs/.vitepress/detail-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ const containerMdExtend = (md) => ({
1616
},
1717
});
1818

19-
module.exports = containerMdExtend;
19+
export default containerMdExtend;

docs/text/chapter-6/method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int main() {
3232
}
3333
```
3434

35-
```text
35+
```txt
3636
[output]
3737
22B
3838
21B

docs/text/chapter-6/practice/order.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int main() {
5353
2 100001
5454
```
5555

56-
```text
56+
```txt
5757
[Output 2]
5858
机 5000 それなり
5959
チョコ 100 おいしい
@@ -112,4 +112,4 @@ int main() {
112112
}
113113
```
114114

115-
:::
115+
:::

docs/text/chapter-7/practice/sort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main() {
3535

3636
::: spoiler 解答
3737

38-
```text
38+
```txt
3939
-400
4040
100
4141
130

package-lock.json

Lines changed: 6405 additions & 9337 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
"license": "MIT",
1414
"devDependencies": {
1515
"@mermaid-js/mermaid-mindmap": "^9.3.0",
16-
"@types/node": "^20.3.1",
16+
"@types/node": "^22.15.3",
1717
"@wekanteam/markdown-it-mermaid": "^0.6.4",
1818
"install": "^0.13.0",
1919
"markdown-it-charts": "^1.0.5",
20-
"markdown-it-container": "^3.0.0",
20+
"markdown-it-container": "^4.0.0",
2121
"markdown-it-mathjax": "^2.0.0",
22-
"markdown-it-mermaid": "^0.2.5",
22+
"markdown-it-mermaid": "^0.2.0",
2323
"markdown-it-texmath": "^1.0.0",
24-
"mermaid": "9.1.0",
25-
"npm": "^9.7.1",
26-
"vitepress": "1.0.0-beta.1",
24+
"mermaid": "^11.6.0",
25+
"vitepress": "1.6.3",
2726
"vitepress-plugin-mermaid": "^2.0.10"
2827
},
2928
"dependencies": {
30-
"markdown-it": "^13.0.1",
29+
"markdown-it": "^14.1.0",
3130
"markdown-it-mathjax3": "^4.3.2"
32-
}
31+
},
32+
"type": "module"
3333
}

0 commit comments

Comments
 (0)