Skip to content

Commit 770cda9

Browse files
committed
Remove ReasonCompiler toc generation
1 parent 14923fc commit 770cda9

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

scripts/extract-tocs.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,6 @@ const createV800ManualToc = () => {
108108
fs.writeFileSync(TARGET_FILE, JSON.stringify(toc), "utf8");
109109
};
110110

111-
const createReasonCompilerToc = () => {
112-
const MD_DIR = path.join(__dirname, "../pages/docs/reason-compiler/latest");
113-
const TARGET_FILE = path.join(__dirname, "../index_data/reason_compiler_toc.json");
114-
115-
const files = glob.sync(`${MD_DIR}/*.md?(x)`);
116-
const result = files.map(processFile);
117-
const toc = createTOC(result);
118-
119-
fs.writeFileSync(TARGET_FILE, JSON.stringify(toc), "utf8");
120-
121-
};
122-
123111
const createReasonReactToc = () => {
124112
const MD_DIR = path.join(__dirname, "../pages/docs/reason-react/latest");
125113
const TARGET_FILE = path.join(__dirname, "../index_data/reason_react_toc.json");
@@ -171,7 +159,6 @@ debugToc();
171159
// main
172160
createLatestManualToc();
173161
createV800ManualToc();
174-
createReasonCompilerToc();
175162
createReasonReactToc();
176163
createGenTypeToc();
177164
createCommunityToc();

0 commit comments

Comments
 (0)