File tree Expand file tree Collapse file tree 8 files changed +40
-30
lines changed Expand file tree Collapse file tree 8 files changed +40
-30
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' nextra ' : patch
3
+ ---
4
+
5
+ update package version range for ` @theguild/remark-mermaid ` to be at least ` ^0.1.3 ` https://github.com/nextauthjs/next-auth/pull/12029#discussion_r1801785960
Original file line number Diff line number Diff line change
1
+ ---
2
+ ' nextra ' : patch
3
+ ' nextra-theme-docs ' : patch
4
+ ---
5
+
6
+ Fix ` frontMatter.sidebarTitle ` didn't affect without ` frontMatter.title ` set
7
+
8
+ now priority for sidebar title is:
9
+
10
+ 1 . ` title ` property from ` _meta ` file
11
+ 1 . ` frontMatter.sidebarTitle `
12
+ 1 . ` frontMatter.title `
13
+ 1 . formatted with [ Title] ( https://title.sh ) based on filename
Original file line number Diff line number Diff line change 1
1
export default {
2
- index : 'Introduction ' ,
2
+ index : '' ,
3
3
guide : '' ,
4
4
'-- Themes' : {
5
5
type : 'separator' ,
Original file line number Diff line number Diff line change
1
+ import { Screenshot } from ' components/screenshot'
2
+ import { Video } from ' components/video'
3
+ import { Callout , FileTree } from ' nextra/components'
4
+ import menuImage from ' public/assets/docs/menu.png'
5
+
1
6
# Page Configuration
2
7
3
8
In Nextra, the site and page structure can be configured via the co-located
@@ -7,11 +12,6 @@ customize it further.
7
12
Those configurations affect the overall layout of the theme, especially the
8
13
navigation bar and the sidebar.
9
14
10
- import { Screenshot } from ' components/screenshot'
11
- import { Video } from ' components/video'
12
- import { Callout , FileTree } from ' nextra/components'
13
- import menuImage from ' public/assets/docs/menu.png'
14
-
15
15
<Callout >
16
16
Read more about Nextra's ` _meta.js ` files
17
17
[ here] ( /docs/guide/organize-files#_metajs ) .
@@ -45,7 +45,7 @@ export default {
45
45
<Callout >
46
46
If any routes are not listed in the ` _meta.js ` file, they will be appended to
47
47
the end of the sidebar and sorted alphabetically, and the title will be
48
- formatted with [ Title] ( https://title.sh ) .
48
+ formatted with [ Title] ( https://title.sh ) based on filename .
49
49
</Callout >
50
50
51
51
## Folders
Original file line number Diff line number Diff line change
1
+ ---
2
+ sidebarTitle : Introduction
3
+ ---
4
+
5
+ import { Cards } from ' nextra/components'
6
+
1
7
# Introduction
2
8
3
9
** Nextra** is a framework on top of Next.js, that lets you build content focused
@@ -6,8 +12,6 @@ Markdown-based content with ease.
6
12
7
13
## Quick Start
8
14
9
- import { Cards } from ' nextra/components'
10
-
11
15
To start using Nextra, you need to select a theme first:
12
16
13
17
<Cards num = { 2 } >
Original file line number Diff line number Diff line change 133
133
"@mdx-js/react" : " ^3.0.0" ,
134
134
"@napi-rs/simple-git" : " ^0.1.9" ,
135
135
"@shikijs/twoslash" : " ^1.0.0" ,
136
- "@theguild/remark-mermaid" : " ^0.1.2 " ,
136
+ "@theguild/remark-mermaid" : " ^0.1.3 " ,
137
137
"@theguild/remark-npm2yarn" : " ^0.3.2" ,
138
138
"better-react-mathjax" : " ^2.0.3" ,
139
139
"clsx" : " ^2.0.0" ,
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ async function collectFiles({
121
121
const content = await fs . readFile ( filePath , 'utf8' )
122
122
const { data } = grayMatter ( content )
123
123
if ( ! data . title ) {
124
- data . sidebarTitle = pageTitleFromFilename ( name )
124
+ data . sidebarTitle || = pageTitleFromFilename ( name )
125
125
}
126
126
127
127
return {
You can’t perform that action at this time.
0 commit comments