Skip to content

Commit b1d7d2f

Browse files
Barthélémy Ledouxsapegin
authored andcommitted
Docs: Update TOC of configuration (#1519)
1 parent 0636382 commit b1d7d2f

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

docs/Configuration.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ By default, Styleguidist will look for `styleguide.config.js` file in your proje
4343
- [`template`](#template)
4444
- [`theme`](#theme)
4545
- [`title`](#title)
46+
- [`tocMode`](#tocmode)
4647
- [`updateDocs`](#updatedocs)
4748
- [`updateExample`](#updateexample)
4849
- [`usageMode`](#usagemode)
@@ -58,17 +59,6 @@ Type: `String` or `Array`, optional
5859

5960
Your application static assets folder will be accessible as `/` in the style guide dev server.
6061

61-
#### `tocMode`
62-
63-
Type: `String` default: `expand`
64-
65-
Defines if the table of contents sections will behave like an accordion:
66-
67-
- `collapse`: All sections are collapsed by default
68-
- `expand`: Sections cannot be collapsed in the Table Of Contents
69-
70-
Collapse the sections created in the sidebar to reduce the height of the sidebar. This can be useful in large codebases with lots of components to avoid having to scroll too far.
71-
7262
#### `compilerConfig`
7363

7464
Type: `Object`, default:
@@ -671,6 +661,17 @@ Type: `String`, default: `<app name from package.json> Style Guide`
671661

672662
Style guide title.
673663

664+
#### `tocMode`
665+
666+
Type: `String` default: `expand`
667+
668+
Defines if the table of contents sections will behave like an accordion:
669+
670+
- `collapse`: All sections are collapsed by default
671+
- `expand`: Sections cannot be collapsed in the Table Of Contents
672+
673+
Collapse the sections created in the sidebar to reduce the height of the sidebar. This can be useful in large codebases with lots of components to avoid having to scroll too far.
674+
674675
#### `updateDocs`
675676

676677
Type: `Function`, optional

0 commit comments

Comments
 (0)