Skip to content

Commit 409e3ca

Browse files
authored
Update docs dependencies (#1073)
1 parent 4f6dbc8 commit 409e3ca

File tree

8 files changed

+1669
-1253
lines changed

8 files changed

+1669
-1253
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- run: yarn test:e2e
6363

64-
# The docs have a separate installation using Node 20 due to needing newer dependencies
64+
# The docs have a separate installation using Node 22 due to needing newer dependencies
6565
docs:
6666
name: build docs
6767

@@ -71,11 +71,11 @@ jobs:
7171
- name: Check out code
7272
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
7373

74-
- name: Install Node.js 20
74+
- name: Install Node.js 22
7575
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
7676
with:
7777
cache: yarn
78-
node-version: 20
78+
node-version: 22
7979

8080
- run: yarn --immutable
8181
working-directory: ./docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ package-lock.json
99
docs/.vuepress/.cache
1010
docs/.vuepress/.temp
1111
docs/.yarn/*
12+
!docs/.yarn/patches/
1213
!docs/.yarn/releases/

docs/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

docs/.vuepress/client.mjs renamed to docs/.vuepress/client.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// @ts-check
2-
import { defineClientConfig } from 'vuepress/client';
3-
import { defineMermaidConfig } from 'vuepress-plugin-md-enhance/client';
1+
import { defineMermaidConfig } from '@vuepress/plugin-markdown-chart/client';
42

53
defineMermaidConfig({
64
// This can use a CSS variable because text is rendered in HTML tags
@@ -22,9 +20,3 @@ defineMermaidConfig({
2220
},
2321
// some spacing options available under "flowchart"
2422
});
25-
26-
export default defineClientConfig({
27-
enhance: context => {
28-
context.app.directive;
29-
},
30-
});

docs/.vuepress/config.mjs renamed to docs/.vuepress/config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// @ts-check
21
import { viteBundler } from '@vuepress/bundler-vite';
2+
import { markdownChartPlugin } from '@vuepress/plugin-markdown-chart';
33
import { searchPlugin } from '@vuepress/plugin-search';
44
import { defaultTheme } from '@vuepress/theme-default';
55
import { defineUserConfig } from 'vuepress';
6-
import { mdEnhancePlugin } from 'vuepress-plugin-md-enhance';
76

87
export default defineUserConfig({
98
title: 'beachball',
@@ -40,7 +39,7 @@ export default defineUserConfig({
4039
],
4140
}),
4241
plugins: [
43-
mdEnhancePlugin({
42+
markdownChartPlugin({
4443
mermaid: true,
4544
}),
4645
searchPlugin(),

docs/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
{
2-
"name": "beachball-docs",
2+
"name": "@beachball/docs",
33
"version": "0.0.0",
44
"description": "Separate package with separate build to get rid of very outdated deps while keeping beachball v2 on Node 14",
55
"private": true,
6+
"type": "module",
67
"scripts": {
78
"docs": "vuepress dev --host localhost",
89
"docs:build": "vuepress build",
910
"release:docs": "yarn docs:build && yarn gh-pages -d .vuepress/dist --dotfiles"
1011
},
1112
"devDependencies": {
1213
"@vuepress/bundler-vite": "^2.0.0-rc.18",
14+
"@vuepress/plugin-markdown-chart": "^2.0.0-rc.109",
1315
"@vuepress/plugin-search": "^2.0.0-rc.61",
1416
"@vuepress/theme-default": "^2.0.0-rc",
1517
"gh-pages": "^6.0.0",
1618
"mermaid": "^11.4.0",
1719
"sass-embedded": "^1.81.0",
18-
"vuepress": "^2.0.0-rc",
19-
"vuepress-plugin-md-enhance": "^2.0.0-rc.59"
20+
"vuepress": "^2.0.0-rc"
2021
},
2122
"engines": {
22-
"node": ">=20",
23+
"node": ">=22",
2324
"yarn": "^4"
2425
},
2526
"packageManager": "[email protected]"

docs/tsconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"noEmit": true,
4+
"allowJs": true,
5+
"checkJs": true,
6+
"strict": true,
7+
"lib": ["es2022", "dom"],
8+
"module": "es2022",
9+
"moduleResolution": "bundler",
10+
"types": []
11+
},
12+
"include": ["./.vuepress/*.js"]
13+
}

0 commit comments

Comments
 (0)