Skip to content

Commit a23d4f1

Browse files
committed
Website: update config to enforce link integrity
1 parent 2736505 commit a23d4f1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

website/docusaurus.config.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ const config: Config = {
2525
organizationName: 'o1-labs', // Usually your GitHub org/user name.
2626
projectName: 'openmina', // Usually your repo name.
2727

28-
onBrokenLinks: 'warn', // Temporarily set to warn while we fix broken links
29-
onBrokenMarkdownLinks: 'warn',
28+
onBrokenLinks: 'throw', // Throw error on broken links to enforce link integrity
29+
onBrokenMarkdownLinks: 'throw',
30+
onBrokenAnchors: 'warn',
31+
32+
// Static directories for assets
33+
staticDirectories: ['static'],
3034

3135
// Even if you don't use internationalization, you can use this field to set
3236
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -108,7 +112,7 @@ const config: Config = {
108112
label: 'Researchers',
109113
},
110114
{
111-
href: '/api-docs/',
115+
href: 'https://o1-labs.github.io/openmina/api-docs/',
112116
label: 'API Docs',
113117
position: 'left',
114118
},
@@ -144,7 +148,7 @@ const config: Config = {
144148
},
145149
{
146150
label: 'API Documentation',
147-
to: '/api-docs/',
151+
href: 'https://o1-labs.github.io/openmina/api-docs/',
148152
},
149153
],
150154
},

0 commit comments

Comments
 (0)