Skip to content

Commit 9af5f02

Browse files
committed
move api to docs folder
1 parent a18c775 commit 9af5f02

29 files changed

+182
-565
lines changed

app/routes.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ let $$default = Belt_Array.concatMany([
1313
id: "overview"
1414
}),
1515
Routes.route("syntax-lookup", "./routes/SyntaxLookupRoute.mjs"),
16-
Routes.route("blog", "./routes/BlogRoute.mjs")
16+
Routes.route("blog", "./routes/BlogRoute.mjs"),
17+
Routes.route("docs/manual/api/stdlib", "./routes/ApiRoute.mjs", {
18+
id: "api-stdlib"
19+
}),
20+
Routes.route("docs/manual/api/introduction", "./routes/ApiRoute.mjs", {
21+
id: "api-intro"
22+
}),
23+
Routes.route("docs/manual/api/belt", "./routes/ApiRoute.mjs", {
24+
id: "api-belt"
25+
}),
26+
Routes.route("docs/manual/api/dom", "./routes/ApiRoute.mjs", {
27+
id: "api-dom"
28+
})
1729
],
1830
Server.routes("./routes/MdxRoute.mjs")
1931
]);

app/routes.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ let default = [
88
route("community/overview", "./routes/CommunityRoute.mjs", ~options={id: "overview"}),
99
route("syntax-lookup", "./routes/SyntaxLookupRoute.mjs"),
1010
route("blog", "./routes/BlogRoute.mjs"),
11+
route("docs/manual/api/stdlib", "./routes/ApiRoute.mjs", ~options={id: "api-stdlib"}),
12+
route("docs/manual/api/introduction", "./routes/ApiRoute.mjs", ~options={id: "api-intro"}),
13+
route("docs/manual/api/belt", "./routes/ApiRoute.mjs", ~options={id: "api-belt"}),
14+
route("docs/manual/api/dom", "./routes/ApiRoute.mjs", ~options={id: "api-dom"}),
1115
...routes("./routes/MdxRoute.mjs"),
1216
]

app/routes/ApiRoute.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let default = () => {
2+
<div />
3+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)