File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -917,7 +917,7 @@ If you have a link to the homepage in the sidebar and want it to be shown as act
917
917
918
918
For more details, see [ #1131 ] ( https://github.com/docsifyjs/docsify/issues/1131 ) .
919
919
920
- ## themeColor ⚠️
920
+ ## themeColor ⚠️ : id =themecolor
921
921
922
922
!> Deprecated as of v5. Use the ` --theme-color ` [ theme property] ( themes#theme-properties ) to [ customize] ( themes#customization ) your theme color.
923
923
@@ -931,7 +931,7 @@ window.$docsify = {
931
931
};
932
932
```
933
933
934
- ## topMargin ⚠️
934
+ ## topMargin ⚠️ : id =topmargin
935
935
936
936
!> Deprecated as of v5. Use the ` --scroll-padding-top ` [ theme property] ( themes#theme-properties ) to specify a scroll margin when using a sticky navbar.
937
937
Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ export class HashHistory extends History {
47
47
48
48
if ( el && el . tagName === 'A' && ! isExternal ( el . href ) ) {
49
49
navigating = true ;
50
+
51
+ // Do not compare hash containing these classes.
52
+ if ( [ 'app-name-link' , 'page-link' ] . includes ( el . className ) ) {
53
+ return ;
54
+ }
55
+
56
+ if ( el . hash === location . hash ) {
57
+ cb ( { event : e , source : 'navigate' } ) ;
58
+ }
50
59
}
51
60
} ) ;
52
61
You can’t perform that action at this time.
0 commit comments