Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions scripts/extract-tocs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,6 @@ const createCommunityToc = () => {
fs.writeFileSync(TARGET_FILE, JSON.stringify(toc), "utf8");
};

const createReasonCompilerToc = () => {
const MD_DIR = path.join(__dirname, "../pages/docs/reason-compiler/latest");
const TARGET_FILE = path.join(
__dirname,
"../index_data/reason_compiler_toc.json"
);

const files = glob.sync(`${MD_DIR}/*.md?(x)`);
const result = files.map(processFile);
const toc = createTOC(result);

fs.writeFileSync(TARGET_FILE, JSON.stringify(toc), "utf8");
};

/*
const debugToc = () => {
const MD_DIR = path.join(__dirname, "../pages/docs/manual/latest");
Expand All @@ -216,4 +202,3 @@ let reactManualVersions = ["latest", "v0.10.0", "v0.11.0"];
manualVersions.forEach(createManualToc);
reactManualVersions.forEach(createReactToc);
createCommunityToc();
createReasonCompilerToc();
4 changes: 0 additions & 4 deletions src/common/App.res
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ let make = (props: props): React.element => {
| _ => React.null
}}
</EnableCollapsibleNavbar>
| {base: ["docs", "reason-compiler"], version: Latest} =>
<EnableCollapsibleNavbar>
<ReasonCompilerDocsLayout> content </ReasonCompilerDocsLayout>
</EnableCollapsibleNavbar>
// common routes
| {base} =>
switch List.fromArray(base) {
Expand Down
94 changes: 0 additions & 94 deletions src/layouts/ReasonCompilerDocsLayout.res

This file was deleted.

2 changes: 0 additions & 2 deletions src/layouts/ReasonCompilerDocsLayout.resi

This file was deleted.