Skip to content

Commit

Permalink
fix api reference sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Mar 19, 2024
1 parent 3034b93 commit d5d9d12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 2 additions & 4 deletions docs/website/tools/preprocess_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,17 @@ 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"));
}
console.log(`Processed ${processedFiles} files.`);
}



preprocess_docs();

0 comments on commit d5d9d12

Please sign in to comment.