fix(docs-infra): highlight current CLI command in navigation menu (#26388)

Previously CLI was being treated like the API page, where the top level item
had to be highlighted for any command page. But now the CLI commands all
have their own navigation item, which can be selected, so there is no need
to special case CLI paths any more.

Closes #26373

PR Close #26388
This commit is contained in:
Pete Bacon Darwin 2018-10-11 08:22:47 +01:00 committed by Miško Hevery
parent 9ebb4c02a2
commit 7777a99fe5
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ export class NavigationService {
this.location.currentPath,
(navMap, url) => {
const matchSpecialUrls = /^api|^cli/.exec(url);
const matchSpecialUrls = /^api/.exec(url);
if (matchSpecialUrls) {
url = matchSpecialUrls[0];
}