File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
packages/docusaurus-theme-classic/src/theme/NavbarItem Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,7 @@ export default function DocNavbarItem({
38
38
{ ...props }
39
39
isActive = { ( _match , location ) => {
40
40
if ( activeBaseRegex ) {
41
- console . log ( 'using activeBaseRegex' , activeBaseRegex ) ;
42
- console . log ( 'location' , location . pathname ) ;
43
- const matched = isRegexpStringMatch (
44
- activeBaseRegex ,
45
- location . pathname ,
46
- ) ;
47
- console . log ( 'matched' , matched ) ;
48
- return matched ;
41
+ return isRegexpStringMatch ( activeBaseRegex , location . pathname ) ;
49
42
}
50
43
if ( activeBasePath ) {
51
44
return location . pathname . startsWith ( activeBaseUrl ) ;
Original file line number Diff line number Diff line change @@ -437,6 +437,12 @@ const config = {
437
437
label : 'Playground' ,
438
438
activeBaseRegex : `/docs/playground` ,
439
439
} ,
440
+ {
441
+ type : 'doc' ,
442
+ position : 'left' ,
443
+ docId : 'playground' ,
444
+ label : 'Playground' ,
445
+ } ,
440
446
{
441
447
type : 'docSidebar' ,
442
448
position : 'left' ,
You can’t perform that action at this time.
0 commit comments