Skip to content

Commit

Permalink
fix: fix reference docs toc generation (#7832)
Browse files Browse the repository at this point in the history
  • Loading branch information
maribethb authored Feb 5, 2024
1 parent 506970a commit 66980fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/gulpfiles/docs_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ const createToc = function(done) {
const files = fs.readdirSync(DOCS_DIR);
const map = buildAlternatePathsMap(files);
const referencePath = '/blockly/reference/js';
fs.writeSync(toc, 'toc:\n');

const tocHeader = `toc:
- title: Overview
path: /blockly/reference/js/blockly.md\n`;
fs.writeSync(toc, tocHeader);

// Generate a section of TOC for each section/heading in the overview file.
const sections = fileContent.split('##');
Expand Down

0 comments on commit 66980fe

Please sign in to comment.