Skip to content

Commit 3132ebf

Browse files
committed
remove reason docs
1 parent 8281e31 commit 3132ebf

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

scripts/extract-tocs.mjs

-15
Original file line numberDiff line numberDiff line change
@@ -181,20 +181,6 @@ const createCommunityToc = () => {
181181
fs.writeFileSync(TARGET_FILE, JSON.stringify(toc), "utf8");
182182
};
183183

184-
const createReasonCompilerToc = () => {
185-
const MD_DIR = path.join(__dirname, "../pages/docs/reason-compiler/latest");
186-
const TARGET_FILE = path.join(
187-
__dirname,
188-
"../index_data/reason_compiler_toc.json"
189-
);
190-
191-
const files = glob.sync(`${MD_DIR}/*.md?(x)`);
192-
const result = files.map(processFile);
193-
const toc = createTOC(result);
194-
195-
fs.writeFileSync(TARGET_FILE, JSON.stringify(toc), "utf8");
196-
};
197-
198184
/*
199185
const debugToc = () => {
200186
const MD_DIR = path.join(__dirname, "../pages/docs/manual/latest");
@@ -216,4 +202,3 @@ let reactManualVersions = ["latest", "v0.10.0", "v0.11.0"];
216202
manualVersions.forEach(createManualToc);
217203
reactManualVersions.forEach(createReactToc);
218204
createCommunityToc();
219-
createReasonCompilerToc();

0 commit comments

Comments
 (0)