Skip to content

Commit b4ecea6

Browse files
authored
docs: new content migration (#6584)
* docs: wip - caching * docs: wip - auth * docs: wip - api * wip: docs - frontend * docs: wip - workspace * docs: wip - deployment * docs: wip - reference * docs: wip - guides * docs: wip - cleanup
1 parent ed7eb85 commit b4ecea6

File tree

216 files changed

+3141
-4930
lines changed

Some content is hidden

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

216 files changed

+3141
-4930
lines changed

docs/docs-new/next.config.mjs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import nextra from "nextra";
22
import remarkMath from "remark-math";
3+
import remarkFrontmatter from "remark-frontmatter";
34
import remarkHtmlKatex from "remark-html-katex";
45
import linkEnvironmentVariables from "./plugins/link-environment-variables.mjs";
56

@@ -10,11 +11,11 @@ const config = {
1011
basePath: process.env.BASE_PATH || "",
1112
async redirects() {
1213
return [
13-
// {
14-
// source: "/",
15-
// destination: "/getting-started",
16-
// permanent: true,
17-
// },
14+
{
15+
source: "/",
16+
destination: "/product/introduction",
17+
permanent: true,
18+
},
1819
];
1920
},
2021
};
@@ -23,8 +24,18 @@ const withNextra = nextra({
2324
theme: "nextra-theme-docs",
2425
themeConfig: "./theme.config.tsx",
2526
defaultShowCopyCode: true,
27+
flexsearch: false,
2628
mdxOptions: {
27-
remarkPlugins: [remarkMath, remarkHtmlKatex, linkEnvironmentVariables],
29+
remarkPlugins: [
30+
remarkMath,
31+
remarkFrontmatter,
32+
remarkHtmlKatex,
33+
linkEnvironmentVariables,
34+
],
35+
},
36+
transform: async (result, options) => {
37+
console.log(`${options.route}.mdx`);
38+
return result;
2839
},
2940
});
3041

0 commit comments

Comments
 (0)