From 198983f902b55080e4063dbd12871111159e7f6f Mon Sep 17 00:00:00 2001 From: Tom Jeatt Date: Wed, 1 Nov 2023 14:14:54 +0000 Subject: [PATCH] revert config change and throw error if broken links found --- docs/docusaurus.config.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 9aacb19d..ec3ecdad 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -22,8 +22,8 @@ const config = { organizationName: "bob-collective", projectName: "bob", - onBrokenLinks: "warn", - onBrokenMarkdownLinks: "warn", + onBrokenLinks: "throw", + onBrokenMarkdownLinks: "throw", // Even if you don't use internalization, you can use this field to set useful // metadata like html lang. For example, if your site is Chinese, you may want @@ -35,14 +35,13 @@ const config = { plugins: [ [ - 'docusaurus-plugin-typedoc', + "docusaurus-plugin-typedoc", { - entryPoints: ['../sdk/src/*'], - out: 'api/ts-sdk', - tsconfig: 'tsconfig.json', + entryPoints: ["../sdk/src/*"], + out: "api/ts-sdk", + tsconfig: "tsconfig.json", }, ], - ], presets: [ [ @@ -163,7 +162,8 @@ const config = { }, themes: [ "@docusaurus/theme-mermaid", - ["@easyops-cn/docusaurus-search-local", + [ + "@easyops-cn/docusaurus-search-local", { indexBlog: false, indexDocs: true, @@ -171,7 +171,8 @@ const config = { hashed: true, highlightSearchTermsOnTargetPage: true, language: ["en"], - }], + }, + ], ], scripts: [ {