From d5d9d120e4273671e308e863850365668f87ba7c Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 19 Mar 2024 18:26:19 +0100 Subject: [PATCH] fix api reference sidebar --- docs/website/sidebars.js | 2 +- docs/website/tools/preprocess_docs.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/website/sidebars.js b/docs/website/sidebars.js index 99d081a414..703b5a94f9 100644 --- a/docs/website/sidebars.js +++ b/docs/website/sidebars.js @@ -289,7 +289,7 @@ const sidebars = { keywords: ['reference'], }, items: [ - require("./docs/api_reference/sidebar.json"), + require("./docs_processed/api_reference/sidebar.json"), 'reference/installation', 'reference/command-line-interface', 'reference/telemetry', diff --git a/docs/website/tools/preprocess_docs.js b/docs/website/tools/preprocess_docs.js index bb33b2fd06..cafd2a2ce8 100644 --- a/docs/website/tools/preprocess_docs.js +++ b/docs/website/tools/preprocess_docs.js @@ -38,12 +38,12 @@ function preprocess_docs() { fs.copyFileSync(fileName, targetFileName); continue } - - + // copy docs to correct folder const lines = fs.readFileSync(fileName, 'utf8').split(/\r?\n/); const updatedLines = lines; + // insert something to see wether it works lines.splice(8, 0, "Generated") fs.writeFileSync(targetFileName, updatedLines.join("\n")); @@ -51,6 +51,4 @@ function preprocess_docs() { console.log(`Processed ${processedFiles} files.`); } - - preprocess_docs(); \ No newline at end of file