Skip to content

Commit 86b8ede

Browse files
committed
chore: rebase and use section-header
1 parent 35f9e34 commit 86b8ede

File tree

9 files changed

+11
-10
lines changed

9 files changed

+11
-10
lines changed

packages/theme-default/src/components/NavHamburger/index.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ export function NavHamburger() {
99
const { isScreenOpen, toggleScreen } = useNavScreen();
1010
return (
1111
<>
12-
{createPortal(
13-
<NavScreen isScreenOpen={isScreenOpen} toggleScreen={toggleScreen} />,
14-
document.getElementById('__rspress_modal_container')!,
15-
)}
12+
{typeof window !== 'undefined' &&
13+
createPortal(
14+
<NavScreen isScreenOpen={isScreenOpen} toggleScreen={toggleScreen} />,
15+
document.getElementById('__rspress_modal_container')!,
16+
)}
1617
<button
1718
onClick={toggleScreen}
1819
aria-label="mobile hamburger"

website/docs/en/api/config/config-frontmatter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This document introduces how to configure various properties of a page using front matter, including title, description, page type, navbar, etc.
44

5-
See [Front matter](/guide/use-mdx.html#front-matter) for what front matter is and how to use it.
5+
See [Frontmatter](/guide/use-mdx/frontmatter) for what front matter is and how to use it.
66

77
## title
88

website/docs/en/guide/start/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ In addition, Rspress also supports some specific syntax, such as:
105105
- FrontMatter metadata definition.
106106
- Code line highlighting syntax.
107107

108-
Details can be found in the [Use MDX Document](/guide/use-mdx.html 'Use MDX s').
108+
Details can be found in the [Use MDX Document](/guide/use-mdx/mdx).
109109

110110
### SSG
111111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["mdx", "code-blocks", "link", "components", "container"]
1+
["mdx", "components", "frontmatter", "code-blocks", "link", "container"]
File renamed without changes.

website/docs/zh/api/config/config-frontmatter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
这篇文档介绍了如何使用 front matter 来配置页面的各种属性,包括标题、描述、页面类型、导航栏等。
44

5-
查看 [Front matter](/guide/use-mdx.html#front-matter) 了解什么是 front matter 以及如何使用它。
5+
查看 [Front matter](/guide/use-mdx/frontmatter) 了解什么是 front matter 以及如何使用它。
66

77
## title
88

website/docs/zh/guide/start/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ MDX 是一种功能强大的内容开发方式。你不仅仅可以像往常一
105105
- FrontMatter 元数据定义。
106106
- 代码行高亮语法。
107107

108-
详情可以查看[「使用 MDX」 文档](/guide/use-mdx.html '「使用 MDX」 文档')
108+
详情可以查看[「使用 MDX」 文档](/guide/use-mdx/mdx)
109109

110110
### SSG
111111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["mdx", "code-blocks", "link", "components", "container"]
1+
["mdx", "components", "frontmatter", "code-blocks", "link", "container"]
File renamed without changes.

0 commit comments

Comments
 (0)