Skip to content

Commit 489d32a

Browse files
committed
fix(docs): Nextra v4 config, compatible deps, docs theme layout, add mdx components; enable static export
1 parent 9ebc08b commit 489d32a

Some content is hidden

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

41 files changed

+304
-628
lines changed
File renamed without changes.
File renamed without changes.

docs/app/join-our-communities.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Join Our Communities
3+
---
4+
5+
# Join Our Communities
6+
7+
加入我们的社区以获取最新资讯与支持。
File renamed without changes.

docs/app/layout.jsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Layout as DocsLayout, Navbar, Footer } from 'nextra-theme-docs';
2+
import { Head } from 'nextra/components';
3+
import { getPageMap } from 'nextra/page-map';
4+
import 'nextra-theme-docs/style.css';
5+
6+
export const metadata = {
7+
title: 'WorkWork Docs'
8+
};
9+
10+
export default async function RootLayout({ children }) {
11+
const navbar = (
12+
<Navbar logo={<b>WorkWork</b>} />
13+
);
14+
const footer = (
15+
<Footer>MIT {new Date().getFullYear()} © WorkWork.</Footer>
16+
);
17+
18+
return (
19+
<html lang="zh" dir="ltr" suppressHydrationWarning>
20+
<Head />
21+
<body>
22+
<DocsLayout pageMap={await getPageMap()} navbar={navbar} footer={footer}>
23+
{children}
24+
</DocsLayout>
25+
</body>
26+
</html>
27+
);
28+
}

docs/app/legal.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Legal
3+
---
4+
5+
# Legal
6+
7+
此处展示法律与条款相关文档。
File renamed without changes.

0 commit comments

Comments
 (0)