@@ -142,7 +142,7 @@ function scrollToActive() {
142
142
// Inspired on source of revealjs.com
143
143
let storedScrollTop = parseInt (
144
144
sessionStorage . getItem ( "sidebar-scroll-top" ) ,
145
- 10
145
+ 10 ,
146
146
) ;
147
147
148
148
if ( ! isNaN ( storedScrollTop ) ) {
@@ -194,7 +194,7 @@ var findSearchInput = () => {
194
194
} else {
195
195
// must be at least one persistent form, use the first persistent one
196
196
form = document . querySelector (
197
- "div:not(.search-button__search-container) > form.bd-search"
197
+ "div:not(.search-button__search-container) > form.bd-search" ,
198
198
) ;
199
199
}
200
200
return form . querySelector ( "input" ) ;
@@ -255,7 +255,7 @@ var addEventListenerForSearchKeyboard = () => {
255
255
toggleSearchField ( ) ;
256
256
}
257
257
} ,
258
- true
258
+ true ,
259
259
) ;
260
260
} ;
261
261
@@ -278,7 +278,7 @@ var changeSearchShortcutKey = () => {
278
278
let shortcuts = document . querySelectorAll ( ".search-button__kbd-shortcut" ) ;
279
279
if ( useCommandKey ) {
280
280
shortcuts . forEach (
281
- ( f ) => ( f . querySelector ( "kbd.kbd-shortcut__modifier" ) . innerText = "⌘" )
281
+ ( f ) => ( f . querySelector ( "kbd.kbd-shortcut__modifier" ) . innerText = "⌘" ) ,
282
282
) ;
283
283
}
284
284
} ;
@@ -404,7 +404,7 @@ function populateVersionSwitcher(data, versionSwitcherBtns) {
404
404
const anchor = document . createElement ( "a" ) ;
405
405
anchor . setAttribute (
406
406
"class" ,
407
- "dropdown-item list-group-item list-group-item-action py-1"
407
+ "dropdown-item list-group-item list-group-item-action py-1" ,
408
408
) ;
409
409
anchor . setAttribute ( "href" , `${ entry . url } ${ currentFilePath } ` ) ;
410
410
anchor . setAttribute ( "role" , "option" ) ;
@@ -464,7 +464,7 @@ function showVersionWarningBanner(data) {
464
464
if ( preferredEntries . length !== 1 ) {
465
465
const howMany = preferredEntries . length == 0 ? "No" : "Multiple" ;
466
466
console . log (
467
- `[PST] ${ howMany } versions marked "preferred" found in versions JSON, ignoring.`
467
+ `[PST] ${ howMany } versions marked "preferred" found in versions JSON, ignoring.` ,
468
468
) ;
469
469
return ;
470
470
}
@@ -520,7 +520,7 @@ function showVersionWarningBanner(data) {
520
520
// At least 3rem height
521
521
const autoHeight = Math . max (
522
522
outer . offsetHeight ,
523
- 3 * parseFloat ( getComputedStyle ( document . documentElement ) . fontSize )
523
+ 3 * parseFloat ( getComputedStyle ( document . documentElement ) . fontSize ) ,
524
524
) ;
525
525
// Set height and vertical padding to 0 to prepare the height transition
526
526
outer . style . setProperty ( "height" , 0 ) ;
@@ -575,17 +575,17 @@ function initRTDObserver() {
575
575
// fetch the JSON version data (only once), then use it to populate the version
576
576
// switcher and maybe show the version warning bar
577
577
var versionSwitcherBtns = document . querySelectorAll (
578
- ".version-switcher__button"
578
+ ".version-switcher__button" ,
579
579
) ;
580
580
const hasSwitcherMenu = versionSwitcherBtns . length > 0 ;
581
581
const hasVersionsJSON = DOCUMENTATION_OPTIONS . hasOwnProperty (
582
- "theme_switcher_json_url"
582
+ "theme_switcher_json_url" ,
583
583
) ;
584
584
const wantsWarningBanner = DOCUMENTATION_OPTIONS . show_version_warning_banner ;
585
585
586
586
if ( hasVersionsJSON && ( hasSwitcherMenu || wantsWarningBanner ) ) {
587
587
const data = await fetchVersionSwitcherJSON (
588
- DOCUMENTATION_OPTIONS . theme_switcher_json_url
588
+ DOCUMENTATION_OPTIONS . theme_switcher_json_url ,
589
589
) ;
590
590
// TODO: remove the `if(data)` once the `return null` is fixed within fetchVersionSwitcherJSON.
591
591
// We don't really want the switcher and warning bar to silently not work.
@@ -602,7 +602,7 @@ if (hasVersionsJSON && (hasSwitcherMenu || wantsWarningBanner)) {
602
602
*/
603
603
function fixMoreLinksInMobileSidebar ( ) {
604
604
const dropdown = document . querySelector (
605
- ".bd-sidebar-primary [id^=pst-nav-more-links]"
605
+ ".bd-sidebar-primary [id^=pst-nav-more-links]" ,
606
606
) ;
607
607
if ( dropdown !== null ) {
608
608
dropdown . classList . add ( "show" ) ;
@@ -620,7 +620,7 @@ function setupMobileSidebarKeyboardHandlers() {
620
620
// allows the mobile sidebars to be hidden or revealed via CSS.
621
621
const primaryToggle = document . getElementById ( "pst-primary-sidebar-checkbox" ) ;
622
622
const secondaryToggle = document . getElementById (
623
- "pst-secondary-sidebar-checkbox"
623
+ "pst-secondary-sidebar-checkbox" ,
624
624
) ;
625
625
const primarySidebar = document . querySelector ( ".bd-sidebar-primary" ) ;
626
626
const secondarySidebar = document . querySelector ( ".bd-sidebar-secondary" ) ;
0 commit comments