Skip to content

Commit 2b8f688

Browse files
committed
Fix auto-expanding of subsections
1 parent 15c2284 commit 2b8f688

File tree

7 files changed

+19
-1
lines changed

7 files changed

+19
-1
lines changed

docs/Configuration/.pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nav:
2+
- index.md
23
- Core-Configuration
34
- Channel-Drivers
45
- Dialplan

docs/Configuration/Channel-Drivers/.pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nav:
2+
- index.md
23
- SIP
34
- DAHDI.md
45
- Inter-Asterisk-eXchange-protocol-version-2-IAX2

docs/Configuration/Interfaces/.pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nav:
2+
- index.md
23
- Asterisk-Manager-Interface-AMI
34
- Asterisk-REST-Interface-ARI
45
- Asterisk-Gateway-Interface-AGI.md

docs/Contributing-to-the-Documentation.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,19 @@ nav:
107107
- Page-3.md
108108
```
109109
110-
Each entry must be a name as it appears in the filesystem. Only list what you want to appear in the left sidebar. Don't list supporting files like images and don't list `index.md` files.
110+
Each entry must be a name as it appears in the filesystem. Only list what you want to appear in the left sidebar. Don't list supporting files like images.
111+
112+
/// note
113+
The plugin that handles the .pages files has an annoying habit of automatically expanding the first item in the nav list which can be very confusing to the user. So, if the first entry is a directory and you don't want it automatically expanded, make the `index.md` file the first entry. It won't show up in the sidebar but it'll keep the first section from auto-expanding.
114+
115+
```yaml title="Sample .pages file"
116+
nav:
117+
- index.md # Keeps Section-1 from auto-expanding
118+
- Section-1
119+
- Page-2.md
120+
```
121+
122+
///
111123

112124
### Deleting, renaming or moving pages or sections
113125

docs/Deployment/Basic-PBX-Functionality/.pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nav:
2+
- index.md
23
- The-Most-Basic-PBX.md
34
- Registering-Phones-to-Asterisk.md
45
- Creating-Dialplan-Extensions.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nav:
2+
- index.md
23
- Installing-Asterisk-From-Source
34
- Alternate-Install-Methods
45
- Installing-Asterisk-on-Non-Linux-Operating-Systems

docs/Getting-Started/Installing-Asterisk/Installing-Asterisk-From-Source/.pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nav:
2+
- index.md
23
- What-to-Download
34
- Prerequisites
45
- Using-Menuselect-to-Select-Asterisk-Options.md

0 commit comments

Comments
 (0)