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();