Skip to content

Commit 9595ce4

Browse files
Remove unboxed chapter from sidebar and add a redirect
1 parent eced089 commit 9595ce4

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

data/sidebar_manual_latest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"module",
3232
"import-export",
3333
"attribute",
34-
"unboxed",
3534
"reserved-keywords"
3635
],
3736
"Advanced Features": [

next.config.mjs

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import fs from "fs";
22
import webpack from "webpack";
3-
import rehypeSlug from 'rehype-slug';
4-
import remarkGfm from 'remark-gfm';
5-
import remarkComment from 'remark-comment';
6-
import remarkFrontmatter from 'remark-frontmatter'
3+
import rehypeSlug from "rehype-slug";
4+
import remarkGfm from "remark-gfm";
5+
import remarkComment from "remark-comment";
6+
import remarkFrontmatter from "remark-frontmatter";
77
import remarkMdxFrontmatter from "remark-mdx-frontmatter";
8-
import { createLoader } from 'simple-functional-loader'
8+
import { createLoader } from "simple-functional-loader";
99

10-
const bsconfig = JSON.parse(fs.readFileSync("./rescript.json"))
10+
const bsconfig = JSON.parse(fs.readFileSync("./rescript.json"));
1111

1212
const { ProvidePlugin } = webpack;
1313

@@ -46,10 +46,10 @@ const config = {
4646
function mainMdxLoader(plugins) {
4747
return [
4848
createLoader(function(source) {
49-
const result = `${source}\n\nMDXContent.frontmatter = frontmatter`
50-
return result
49+
const result = `${source}\n\nMDXContent.frontmatter = frontmatter`;
50+
return result;
5151
}),
52-
]
52+
];
5353
}
5454

5555
config.module.rules.push({
@@ -61,18 +61,22 @@ const config = {
6161
test: /\.mdx?$/,
6262
use: [
6363
{
64-
loader: '@mdx-js/loader',
64+
loader: "@mdx-js/loader",
6565
/** @type {import('@mdx-js/loader').Options} */
6666
options: {
67-
remarkPlugins: [remarkComment, remarkGfm, remarkFrontmatter, remarkMdxFrontmatter],
68-
providerImportSource: '@mdx-js/react',
69-
rehypePlugins: [rehypeSlug]
70-
}
71-
}
72-
]
67+
remarkPlugins: [
68+
remarkComment,
69+
remarkGfm,
70+
remarkFrontmatter,
71+
remarkMdxFrontmatter,
72+
],
73+
providerImportSource: "@mdx-js/react",
74+
rehypePlugins: [rehypeSlug],
75+
},
76+
},
77+
],
7378
});
7479

75-
7680
config.plugins.push(new ProvidePlugin({ React: "react" }));
7781
return config;
7882
},
@@ -93,11 +97,16 @@ const config = {
9397
destination: "/docs/manual/v10.0.0/migrate-from-bucklescript-reason",
9498
permanent: true,
9599
},
100+
{
101+
source: "/docs/manual/latest/unboxed",
102+
destination: "/docs/manual/v10.0.0/unboxed",
103+
permanent: true,
104+
},
96105
];
97106
},
98107
};
99108

100109
export default {
101110
transpilePackages: transpileModules,
102-
...config
103-
}
111+
...config,
112+
};

0 commit comments

Comments
 (0)