From ec730e8a945c5041663dcbf29b893905d4da7cbe Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 17 Sep 2024 11:39:51 +0200 Subject: [PATCH] re-enable throw on broken links clear cache in the right places in preprocess docs --- docs/website/docusaurus.config.js | 2 +- docs/website/tools/preprocess_docs.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/website/docusaurus.config.js b/docs/website/docusaurus.config.js index 88ec2eb017..662ed0d5d0 100644 --- a/docs/website/docusaurus.config.js +++ b/docs/website/docusaurus.config.js @@ -50,7 +50,7 @@ const config = { tagline: 'data load tool', url: 'https://dlthub.com', baseUrl: process.env.DOCUSAURUS_BASE_URL || '/docs', - onBrokenLinks: 'warn', + onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'throw', favicon: 'img/favicon.ico', staticDirectories: ['public', 'static'], diff --git a/docs/website/tools/preprocess_docs.js b/docs/website/tools/preprocess_docs.js index 8347aff4cb..c5c0c33246 100644 --- a/docs/website/tools/preprocess_docs.js +++ b/docs/website/tools/preprocess_docs.js @@ -358,6 +358,7 @@ function syncExamples() { console.log(`Synced ${count} examples`) } +fs.rmSync(MD_TARGET_DIR, {force: true, recursive: true}) syncExamples(); preprocess_docs();