Skip to content

Commit d8f7760

Browse files
authored
remove reason compiler docs (#1015)
* remove reason docs * remove reasoncompiler components
1 parent 8281e31 commit d8f7760

File tree

4 files changed

+0
-115
lines changed

4 files changed

+0
-115
lines changed

scripts/extract-tocs.mjs

Lines changed: 0 additions & 15 deletions
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();

src/common/App.res

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ let make = (props: props): React.element => {
141141
| _ => React.null
142142
}}
143143
</EnableCollapsibleNavbar>
144-
| {base: ["docs", "reason-compiler"], version: Latest} =>
145-
<EnableCollapsibleNavbar>
146-
<ReasonCompilerDocsLayout> content </ReasonCompilerDocsLayout>
147-
</EnableCollapsibleNavbar>
148144
// common routes
149145
| {base} =>
150146
switch List.fromArray(base) {

src/layouts/ReasonCompilerDocsLayout.res

Lines changed: 0 additions & 94 deletions
This file was deleted.

src/layouts/ReasonCompilerDocsLayout.resi

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)