mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
fix: fix reference docs toc generation (#7832)
This commit is contained in:
committed by
GitHub
parent
506970ab30
commit
66980fe983
@@ -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('##');
|
||||
|
||||
Reference in New Issue
Block a user