@@ -142,7 +142,7 @@ function scrollToActive() {
142142 // Inspired on source of revealjs.com
143143 let storedScrollTop = parseInt (
144144 sessionStorage . getItem ( "sidebar-scroll-top" ) ,
145- 10
145+ 10 ,
146146 ) ;
147147
148148 if ( ! isNaN ( storedScrollTop ) ) {
@@ -194,7 +194,7 @@ var findSearchInput = () => {
194194 } else {
195195 // must be at least one persistent form, use the first persistent one
196196 form = document . querySelector (
197- "div:not(.search-button__search-container) > form.bd-search"
197+ "div:not(.search-button__search-container) > form.bd-search" ,
198198 ) ;
199199 }
200200 return form . querySelector ( "input" ) ;
@@ -255,7 +255,7 @@ var addEventListenerForSearchKeyboard = () => {
255255 toggleSearchField ( ) ;
256256 }
257257 } ,
258- true
258+ true ,
259259 ) ;
260260} ;
261261
@@ -278,7 +278,7 @@ var changeSearchShortcutKey = () => {
278278 let shortcuts = document . querySelectorAll ( ".search-button__kbd-shortcut" ) ;
279279 if ( useCommandKey ) {
280280 shortcuts . forEach (
281- ( f ) => ( f . querySelector ( "kbd.kbd-shortcut__modifier" ) . innerText = "⌘" )
281+ ( f ) => ( f . querySelector ( "kbd.kbd-shortcut__modifier" ) . innerText = "⌘" ) ,
282282 ) ;
283283 }
284284} ;
@@ -404,7 +404,7 @@ function populateVersionSwitcher(data, versionSwitcherBtns) {
404404 const anchor = document . createElement ( "a" ) ;
405405 anchor . setAttribute (
406406 "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" ,
408408 ) ;
409409 anchor . setAttribute ( "href" , `${ entry . url } ${ currentFilePath } ` ) ;
410410 anchor . setAttribute ( "role" , "option" ) ;
@@ -464,7 +464,7 @@ function showVersionWarningBanner(data) {
464464 if ( preferredEntries . length !== 1 ) {
465465 const howMany = preferredEntries . length == 0 ? "No" : "Multiple" ;
466466 console . log (
467- `[PST] ${ howMany } versions marked "preferred" found in versions JSON, ignoring.`
467+ `[PST] ${ howMany } versions marked "preferred" found in versions JSON, ignoring.` ,
468468 ) ;
469469 return ;
470470 }
@@ -520,7 +520,7 @@ function showVersionWarningBanner(data) {
520520 // At least 3rem height
521521 const autoHeight = Math . max (
522522 outer . offsetHeight ,
523- 3 * parseFloat ( getComputedStyle ( document . documentElement ) . fontSize )
523+ 3 * parseFloat ( getComputedStyle ( document . documentElement ) . fontSize ) ,
524524 ) ;
525525 // Set height and vertical padding to 0 to prepare the height transition
526526 outer . style . setProperty ( "height" , 0 ) ;
@@ -575,17 +575,17 @@ function initRTDObserver() {
575575// fetch the JSON version data (only once), then use it to populate the version
576576// switcher and maybe show the version warning bar
577577var versionSwitcherBtns = document . querySelectorAll (
578- ".version-switcher__button"
578+ ".version-switcher__button" ,
579579) ;
580580const hasSwitcherMenu = versionSwitcherBtns . length > 0 ;
581581const hasVersionsJSON = DOCUMENTATION_OPTIONS . hasOwnProperty (
582- "theme_switcher_json_url"
582+ "theme_switcher_json_url" ,
583583) ;
584584const wantsWarningBanner = DOCUMENTATION_OPTIONS . show_version_warning_banner ;
585585
586586if ( hasVersionsJSON && ( hasSwitcherMenu || wantsWarningBanner ) ) {
587587 const data = await fetchVersionSwitcherJSON (
588- DOCUMENTATION_OPTIONS . theme_switcher_json_url
588+ DOCUMENTATION_OPTIONS . theme_switcher_json_url ,
589589 ) ;
590590 // TODO: remove the `if(data)` once the `return null` is fixed within fetchVersionSwitcherJSON.
591591 // We don't really want the switcher and warning bar to silently not work.
@@ -602,7 +602,7 @@ if (hasVersionsJSON && (hasSwitcherMenu || wantsWarningBanner)) {
602602 */
603603function fixMoreLinksInMobileSidebar ( ) {
604604 const dropdown = document . querySelector (
605- ".bd-sidebar-primary [id^=pst-nav-more-links]"
605+ ".bd-sidebar-primary [id^=pst-nav-more-links]" ,
606606 ) ;
607607 if ( dropdown !== null ) {
608608 dropdown . classList . add ( "show" ) ;
@@ -620,7 +620,7 @@ function setupMobileSidebarKeyboardHandlers() {
620620 // allows the mobile sidebars to be hidden or revealed via CSS.
621621 const primaryToggle = document . getElementById ( "pst-primary-sidebar-checkbox" ) ;
622622 const secondaryToggle = document . getElementById (
623- "pst-secondary-sidebar-checkbox"
623+ "pst-secondary-sidebar-checkbox" ,
624624 ) ;
625625 const primarySidebar = document . querySelector ( ".bd-sidebar-primary" ) ;
626626 const secondarySidebar = document . querySelector ( ".bd-sidebar-secondary" ) ;
0 commit comments