File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ {# Override path to search page so we search the stable docs, except for News pages #}
2
+ < script >
3
+ if ( window . location . pathname . startsWith ( "/news" ) ) {
4
+ inp = document . getElementById ( 'search-input' ) ;
5
+ inp . placeholder = "Search news ..." ;
6
+ inp . ariaLabel = "Search news ..." ;
7
+ } else {
8
+ document . getElementsByClassName ( 'bd-search' ) [ 0 ] . action = "/stable/search.html" ;
9
+ }
10
+ </ script >
Original file line number Diff line number Diff line change 106
106
"navbar_align" : "left" ,
107
107
"navbar_center" : ["initial-sections" , "navbar-nav" ],
108
108
"navbar_end" : ["theme-switcher" , "navbar-icon-links" ],
109
+ # Search bar is overridden to the stable docs except for the "News" section
110
+ "navbar_persistent" : ["search-button-field" , "search-stable" ],
111
+
109
112
"show_prev_next" : False ,
110
113
"logo" : {
111
114
"link" : "/index.html" ,
You can’t perform that action at this time.
0 commit comments