Skip to content

Commit b1156d8

Browse files
committed
delete pages folder
1 parent 89112cc commit b1156d8

19 files changed

+7
-563
lines changed

app/routes.res

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ let default = [
2121
route("syntax-lookup", "./routes/SyntaxLookupRoute.mjs", ~options={id: "syntax-lookup"}),
2222
route("blog", "./routes/BlogRoute.mjs", ~options={id: "blog-index"}),
2323
route("blog/archived", "./routes/BlogRoute.mjs", ~options={id: "blog-archived"}),
24-
// TODO RR7 get the api index to work with the same template
25-
// route("docs/manual/api", "./routes/ApiRoute.mjs", ~options={id: "api-index"}),
2624
route("docs/manual/api/stdlib", "./routes/ApiRoute.mjs", ~options={id: "api-stdlib"}),
2725
route("docs/manual/api/introduction", "./routes/ApiRoute.mjs", ~options={id: "api-intro"}),
2826
route("docs/manual/api/belt", "./routes/ApiRoute.mjs", ~options={id: "api-belt"}),

app/routes/ApiRoute.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ let groupItems = apiDocs => {
7878
let parentNode =
7979
rootItems->Array.find(item => item.children->Array.some(node => node.name === parentName))
8080

81-
// TODO: this can probably be refactored
81+
// TODO POST RR7: this can probably be refactored
8282
parentNode->Option.forEach(
8383
parentNode =>
8484
parentNode.children->Array.forEach(
@@ -108,7 +108,7 @@ let loader: ReactRouter.Loader.t<loaderData> = async args => {
108108
let toctree = groupItems(apiDocs)
109109

110110
let data = {
111-
// TODO RR7: refactor this function to only return the module and not the toctree
111+
// TODO POST RR7: refactor this function to only return the module and not the toctree
112112
// or move the toc logic to this function
113113
// TODO move the loader function to its own file
114114
try {

app/routes/MdxRoute.res

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ let loader: Loader.t<loaderData> = async ({request}) => {
134134

135135
let mdx = await loadMdx(request, ~options={remarkPlugins: [Mdx.gfm]})
136136

137-
// TODO: actually render the blog pages
138137
if pathname->String.includes("blog") {
139138
let posts = blogPosts()
140139

@@ -179,8 +178,8 @@ let loader: Loader.t<loaderData> = async ({request}) => {
179178
}
180179
}
181180

182-
// TODO: this can be optionally called if we need markdown
183-
// TODO: extract this out into a separate function
181+
// TODO POST RR7: extract this out into a separate function
182+
// it can probably be cached or something
184183
let fileContents = await (await allMdx())
185184
->Array.filter(mdx => (mdx.path :> string)->String.includes(pathname))
186185
->Array.get(0)
@@ -244,7 +243,7 @@ let default = () => {
244243

245244
let {entries, categories} = loaderData
246245

247-
// TODO: get actual meta categories working
246+
// TODO RR7: get actual meta categories working
248247
let metaTitleCategory =
249248
(pathname :> string)->String.includes("docs/manual")
250249
? "ReScript Language Manual"

app/routes/SyntaxLookupRoute.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ let convert = (mdx: Mdx.attributes): SyntaxLookup.item => {
99
id: mdx.id->Option.getOrThrow,
1010
keywords: mdx.keywords->Option.getOr([]),
1111
name: mdx.name->Option.getOrThrow,
12+
// TODO RR7 this can be removed I think
1213
children: <div> {React.string("TODO: render MDX here")} </div>,
1314
status: SyntaxLookup.Status.fromString(mdx.status->Option.getOr("active")),
1415
summary: mdx.summary->Option.getOrThrow,

pages/_app.js

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

pages/blog.js

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

pages/blog/[slug].js

Lines changed: 0 additions & 1 deletion
This file was deleted.

pages/blog/archived.js

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

pages/blogpost-guide.mdx

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

pages/brand.mdx

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

0 commit comments

Comments
 (0)