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