From 455f4c4a090bfeff6dc780821e5f4c646fd65788 Mon Sep 17 00:00:00 2001 From: Gabin Aureche Date: Tue, 12 May 2020 10:46:06 +0200 Subject: [PATCH] docs(configuration): mention active link pitfall for the homepage --- docs/configuration.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index b9bd0f76..69735ae1 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -144,6 +144,16 @@ window.$docsify = { }; ``` +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: + +```markdown +- Sidebar + - [Home](/) + - [Another page](another.md) +``` + +For more details, see [#1131](https://github.com/docsifyjs/docsify/issues/1131). + ## basePath - Type: `String`