Skip to content

Commit 5c184e1

Browse files
Remove old bs migration guide from latest docs
1 parent bced3de commit 5c184e1

File tree

3 files changed

+28
-84
lines changed

3 files changed

+28
-84
lines changed

data/sidebar_manual_latest.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"introduction",
44
"installation",
55
"editor-plugins",
6-
"migrate-from-bucklescript-reason",
76
"try"
87
],
98
"Language Features": [

next.config.mjs

+28-19
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("./bsconfig.json"))
10+
const bsconfig = JSON.parse(fs.readFileSync("./bsconfig.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
},
@@ -88,11 +92,16 @@ const config = {
8892
destination: "/blog/bucklescript-is-rebranding",
8993
permanent: true,
9094
},
95+
{
96+
source: "/docs/manual/latest/migrate-from-bucklescript-reason",
97+
destination: "/docs/manual/v10.0.0/migrate-from-bucklescript-reason",
98+
permanent: true,
99+
},
91100
];
92101
},
93102
};
94103

95104
export default {
96105
transpilePackages: transpileModules,
97-
...config
98-
}
106+
...config,
107+
};

pages/docs/manual/latest/migrate-from-bucklescript-reason.mdx

-64
This file was deleted.

0 commit comments

Comments
 (0)