Skip to content

Commit 526c3b0

Browse files
committed
move markdown files into shared folder
1 parent 0079c23 commit 526c3b0

File tree

278 files changed

+7
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+7
-7
lines changed

app/routes.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
open ReactRouter.Routes
22

33
let stdlibPaths = {
4-
let rawFile = await Node.Fs.readFile("./docs/api/stdlib.json", "utf-8")
4+
let rawFile = await Node.Fs.readFile("./markdown-pages/docs/api/stdlib.json", "utf-8")
55
let json = JSON.parseOrThrow(rawFile)
66
switch json {
77
| Object(json) => Dict.keysToArray(json)
@@ -12,7 +12,7 @@ let stdlibPaths = {
1212
}
1313

1414
let beltPaths = {
15-
let rawFile = await Node.Fs.readFile("./docs/api/belt.json", "utf-8")
15+
let rawFile = await Node.Fs.readFile("./markdown-pages/docs/api/belt.json", "utf-8")
1616
let json = JSON.parseOrThrow(rawFile)
1717
switch json {
1818
| Object(json) => Dict.keysToArray(json)

app/routes/ApiRoute.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ let loader: ReactRouter.Loader.t<loaderData> = async args => {
106106
let basePath = path[0]->Option.getUnsafe
107107

108108
let apiDocs = switch basePath {
109-
| "belt" => parseApi(await Node.Fs.readFile("./docs/api/belt.json", "utf-8"))
110-
| "dom" => parseApi(await Node.Fs.readFile("./docs/api/dom.json", "utf-8"))
111-
| _ => parseApi(await Node.Fs.readFile("./docs/api/stdlib.json", "utf-8"))
109+
| "belt" => parseApi(await Node.Fs.readFile("./markdown-pages/docs/api/belt.json", "utf-8"))
110+
| "dom" => parseApi(await Node.Fs.readFile("./markdown-pages/docs/api/dom.json", "utf-8"))
111+
| _ => parseApi(await Node.Fs.readFile("./markdown-pages/docs/api/stdlib.json", "utf-8"))
112112
}
113113

114114
let stdlibToc = apiDocs->Dict.get(basePath)

0 commit comments

Comments
 (0)