You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configuration for the sidebar menu item. More details in [Default Theme: Sidebar](./default-theme-sidebar).
115
115
116
-
```js
116
+
```ts
117
117
exportdefault {
118
118
themeConfig: {
119
119
sidebar: [
@@ -174,26 +174,33 @@ Setting this value to `false` prevents rendering of aside container.\
174
174
Setting this value to `true` renders the aside to the right.\
175
175
Setting this value to `left` renders the aside to the left.
176
176
177
-
## outline
177
+
If you want to disable it for all viewports, you should use `outline:false` instead.
178
178
179
-
- Type: `number| [number, number] |'deep'|false`
180
-
- Default: `2`
181
-
- Can be overridden per page via [frontmatter](./frontmatter-config#outline)
182
-
183
-
The levels of header to display in the outline. You can specify a particular level by passing a number, or you can provide a level range by passing a tuple containing the bottom and upper limits. When passing `'deep'` which equals `[2, 6]`, all header levels are shown in the outline except `h1`. Set `false` to hide outline.
179
+
## outline
184
180
185
-
## outlineTitle
181
+
- Type: `Outline|Outline['level'] |false`
182
+
- Level can be overridden per page via [frontmatter](./frontmatter-config#outline)
186
183
187
-
- Type: `string`
188
-
- Default: `Onthispage`
184
+
Setting this value to `false` prevents rendering of outline container. Refer this interface for more details:
189
185
190
-
Can be used to customize the title of the right sidebar (on the top of outline links). This is useful when writing documentation in another language.
186
+
```ts
187
+
interfaceOutline {
188
+
/**
189
+
* The levels of headings to be displayed in the outline.
190
+
* Single number means only headings of that level will be displayed.
191
+
* If a tuple is passed, the first number is the minimum level and the second number is the maximum level.
192
+
* `'deep'` is same as `[2, 6]`, which means all headings from `<h2>` to `<h6>` will be displayed.
193
+
*
194
+
* @default2
195
+
*/
196
+
level?:number| [number, number] |'deep'
191
197
192
-
```js
193
-
exportdefault {
194
-
themeConfig: {
195
-
outlineTitle: 'In hac pagina'
196
-
}
198
+
/**
199
+
* The title to be displayed on the outline.
200
+
*
201
+
* @default'On this page'
202
+
*/
203
+
label?:string
197
204
}
198
205
```
199
206
@@ -203,7 +210,7 @@ export default {
203
210
204
211
You may define this option to show your social account links with icons in nav.
205
212
206
-
```js
213
+
```ts
207
214
exportdefault {
208
215
themeConfig: {
209
216
socialLinks: [
@@ -275,7 +282,7 @@ export interface Footer {
275
282
276
283
Edit Link lets you display a link to edit the page on Git management services such as GitHub, or GitLab. See [Default Theme: Edit Link](./default-theme-edit-link) for more details.
277
284
278
-
```js
285
+
```ts
279
286
exportdefault {
280
287
themeConfig: {
281
288
editLink: {
@@ -374,7 +381,7 @@ Learn more in [Default Theme: Carbon Ads](./default-theme-carbon-ads)
374
381
375
382
Can be used to customize text appearing above previous and next links. Helpful if not writing docs in English. Also can be used to disable prev/next links globally. If you want to selectively enable/disable prev/next links, you can use [frontmatter](./default-theme-prev-next-links).
Copy file name to clipboardExpand all lines: docs/reference/frontmatter-config.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ aside: false
159
159
- Type: `number| [number, number] |'deep'|false`
160
160
- Default: `2`
161
161
162
-
The levels of header in the outline to display for the page. It's same as [config.themeConfig.outline](./default-theme-config#outline), and it overrides the theme config.
162
+
The levels of header in the outline to display for the page. It's same as [config.themeConfig.outline.level](./default-theme-config#outline), and it overrides the value set in site-level config.
0 commit comments