Skip to content

Commit f1a5e83

Browse files
committed
Merge branch 'main' of https://github.com/Mdr-C-Tutorial/C
2 parents 0647ffa + 67e89b8 commit f1a5e83

6 files changed

Lines changed: 5784 additions & 3209 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ jobs:
2626

2727
- name: Install pnpm
2828
uses: pnpm/action-setup@v4
29-
with:
30-
version: 10
3129

3230
- name: Setup Node
3331
uses: actions/setup-node@v6
3432
with:
3533
node-version-file: package.json
3634
check-latest: true
37-
cache: 'pnpm'
38-
package-manager-cache: false
35+
cache: pnpm
3936

4037
- name: Setup Pages
4138
uses: actions/configure-pages@v5
@@ -45,6 +42,7 @@ jobs:
4542

4643
- name: Build with VitePress
4744
run: pnpm run docs:build
45+
4846
- name: Upload artifact
4947
uses: actions/upload-pages-artifact@v4
5048
with:

.github/workflows/lint.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,18 @@ jobs:
2626
git config --global user.name 'github-actions[bot]'
2727
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
2828
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
2932
- name: Setup Node
3033
uses: actions/setup-node@v6
3134
with:
3235
node-version-file: package.json
3336
check-latest: true
34-
#cache: yarn
35-
package-manager-cache: false
36-
37-
- name: Setup yarn
38-
run: |
39-
corepack enable
40-
yarn set version stable
37+
cache: pnpm
4138

42-
- name: Get yarn cachedir
43-
id: yarn-cachedir
44-
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
45-
- name: Cache yarn
46-
uses: actions/cache@v5
47-
with:
48-
path: ${{ steps.yarn-cachedir.outputs.dir }}
49-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
50-
restore-keys: |
51-
${{ runner.os }}-yarn-
52-
53-
- name: Install dependencies (yarn)
54-
run: yarn install
55-
56-
- name: Cache apt
57-
uses: awalsh128/cache-apt-pkgs-action@latest
58-
with:
59-
packages: clang-format-19 clang-tidy-19
60-
execute_install_scripts: true
39+
- name: Install dependencies (pnpm)
40+
run: pnpm install
6141

6242
- name: Cpp Lint (clang-format & clang-tidy)
6343
uses: cpp-linter/cpp-linter-action@v2
@@ -66,16 +46,16 @@ jobs:
6646
with:
6747
style: file
6848
thread-comments: update
69-
version: 19
49+
# version: 19
7050
files-changed-only: false
7151
continue-on-error: true
7252

7353
- name: ESLint (+vue +prettier +ts)
74-
run: yarn run eslint --fix --ignore-pattern .gitignore
54+
run: pnpm exec eslint --fix --ignore-pattern .gitignore
7555
continue-on-error: true
7656

7757
- name: Prettier
78-
run: yarn run prettier --write .
58+
run: pnpm exec prettier --write .
7959
continue-on-error: true
8060

8161
- name: Markdown Lint
@@ -89,7 +69,6 @@ jobs:
8969
- name: Autocorrect Fix
9070
uses: huacnlee/autocorrect-action@v2
9171
with:
92-
use_npm: true
9372
args: --fix
9473
continue-on-error: true
9574

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "vitepress",
3-
"version": "1.0.0",
4-
"main": "index.js",
5-
"license": "MIT",
2+
"name": "@Mdr-C-Tutorial/C",
3+
"type": "module",
4+
"version": "0.1.0",
5+
"license": "CC-BY-NC-SA-4.0",
66
"engines": {
77
"node": ">=22"
88
},
99
"devDependencies": {
1010
"@eslint/js": "^9.39.2",
11-
"@types/node": "^25.0.3",
11+
"@types/node": "^25.0.6",
1212
"eslint": "^9.39.2",
1313
"eslint-config-prettier": "^10.1.8",
1414
"eslint-plugin-prettier": "^5.5.4",
1515
"eslint-plugin-vue": "^10.6.2",
1616
"globals": "^16.5.0",
1717
"prettier": "^3.7.4",
18-
"typescript-eslint": "^8.50.1",
18+
"typescript-eslint": "^8.52.0",
1919
"vue-eslint-parser": "^10.2.0",
2020
"workbox-window": "^7.4.0"
2121
},
@@ -35,10 +35,11 @@
3535
"markdown-it-mathjax3": "^4.3.2",
3636
"mermaid": "^11.12.2",
3737
"typescript": "^5.9.3",
38-
"vite": "^7.3.0",
38+
"vite": "^7.3.1",
3939
"vite-plugin-pwa": "^1.2.0",
4040
"vitepress": "^1.6.4",
4141
"vitepress-plugin-mermaid": "^2.0.17",
4242
"vue": "^3.5.26"
43-
}
44-
}
43+
},
44+
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48"
45+
}

0 commit comments

Comments
 (0)