Skip to content

Commit 455f4c4

Browse files
committed
docs(configuration): mention active link pitfall for the homepage
1 parent eb1a3ce commit 455f4c4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/configuration.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ window.$docsify = {
144144
};
145145
```
146146

147+
If you have a link to the homepage in the sidebar and want it to be shown as active when accessing the root url, make sure to update your sidebar accordingly:
148+
149+
```markdown
150+
- Sidebar
151+
- [Home](/)
152+
- [Another page](another.md)
153+
```
154+
155+
For more details, see [#1131](https://github.com/docsifyjs/docsify/issues/1131).
156+
147157
## basePath
148158

149159
- Type: `String`

0 commit comments

Comments
 (0)