Skip to content

Commit aed63c6

Browse files
authored
Unbreak docs (#121)
1 parent 4c14bc4 commit aed63c6

File tree

2 files changed

+1238
-2100
lines changed

2 files changed

+1238
-2100
lines changed

docusaurus.config.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ const config: Config = {
2222
trailingSlash: false,
2323

2424
onBrokenLinks: 'throw',
25-
onBrokenMarkdownLinks: 'warn',
25+
markdown: {
26+
hooks: {
27+
onBrokenMarkdownLinks: 'warn',
28+
},
29+
},
2630

2731
// Even if you don't use internationalization, you can use this field to set
2832
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -161,6 +165,22 @@ const config: Config = {
161165
} satisfies Preset.ThemeConfig,
162166

163167
plugins: [
168+
function nodePolyfillPlugin() {
169+
return {
170+
name: 'node-polyfill-plugin',
171+
configureWebpack() {
172+
return {
173+
resolve: {
174+
fallback: {
175+
path: false,
176+
fs: false,
177+
os: false,
178+
},
179+
},
180+
};
181+
},
182+
};
183+
},
164184
[
165185
'docusaurus-plugin-openapi-docs',
166186
{

0 commit comments

Comments
 (0)