Skip to content

Commit 5caaab7

Browse files
authored
Migrate npm to pnpm (#33)
`pnpm` is now the recommended package manager. TO enable this migration `docusaurus` also had to be updated to a common version across packages.
1 parent 831a258 commit 5caaab7

5 files changed

Lines changed: 15295 additions & 21762 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
uses: actions/setup-node@v6
2424
with:
2525
node-version: 24.x
26-
cache: npm
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: 10.28.0
2730
- name: Install dependencies
28-
run: npm ci
31+
run: pnpm install --frozen-lockfile
2932
- name: Build
30-
run: npm run build
33+
run: pnpm run build
3134
# 👆 Build steps
3235
- name: Setup Pages
3336
uses: actions/configure-pages@v3

docusaurus.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ const config: Config = {
2727
organizationName: "TangleML", // Usually your GitHub org/user name.
2828
projectName: "tangle", // Usually your repo name.
2929

30-
onBrokenLinks: "throw",
31-
onBrokenMarkdownLinks: "warn",
30+
onBrokenLinks: "warn",
3231

3332
// Even if you don't use internationalization, you can use this field to set
3433
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -102,6 +101,9 @@ const config: Config = {
102101

103102
markdown: {
104103
mermaid: true, // Enable Mermaid processing in Markdown
104+
hooks: {
105+
onBrokenMarkdownLinks: "warn",
106+
},
105107
},
106108

107109
themes: ['docusaurus-theme-openapi-docs', '@docusaurus/theme-mermaid'],
@@ -187,7 +189,7 @@ const config: Config = {
187189
},
188190
{
189191
label: "Trademarks",
190-
to: "/img/trademarks.pdf",
192+
href: "/img/trademarks.pdf",
191193
},
192194
],
193195
},

0 commit comments

Comments
 (0)