Skip to content

Commit 0906896

Browse files
committed
Change prefix for table of contents generation in generate_toc.js
The prefix for the table of contents generation has been changed from the relative path of the directory to "Tutorials/".
1 parent 66aeb6e commit 0906896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate_toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function generateTableOfContents(directory, depth = 0) {
2626
// Get the stats of the file
2727
const stats = fs.statSync(filePath);
2828
// If the file is a directory, generate the table of contents recursively
29-
const prefix = path.relative(directory, currentPath).replace(/\\/g, "/") + "/";
29+
const prefix = "Tutorials" + "/";
3030
if (stats.isDirectory()) {
3131
// Capitalize the first letter of the directory name and add it to the table of contents
3232
const folderName = file.charAt(0).toUpperCase() + file.slice(1);

0 commit comments

Comments
 (0)