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:
parent
9ebb4c02a2
commit
7777a99fe5
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue