File tree 1 file changed +4
-0
lines changed
src/pydata_sphinx_theme/assets/scripts
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -490,11 +490,15 @@ function initRTDObserver() {
490
490
return ;
491
491
}
492
492
if ( mutation . addedNodes [ 0 ] . data . search ( "Inserted RTD Footer" ) != - 1 ) {
493
+ console . log ( "XXX FOUND MUTATED NODE XXX" ) ;
493
494
let flyout = mutation . addedNodes [ 0 ] . cloneNode ( true ) ;
495
+ console . log ( flyout ) ;
494
496
// copy the flyout menu to whichever of the 2 target nodes didn't already get
495
497
// written to by the RTD injection script.
496
498
document . querySelectorAll ( '[data-rtd-target="rtd"]' ) . forEach ( ( node ) => {
499
+ console . log ( "XXX FOUND A TARGET NODE XXX" ) ;
497
500
if ( ! node . hasChildNodes ( ) ) {
501
+ console . log ( "XXX FOUND CHILDLESS NODE XXX" ) ;
498
502
node . appendChild ( flyout ) ;
499
503
flyout . onclick = toggleFlyout ;
500
504
// replicate the onclick function RTD uses: it can't be cloned by cloneNode()
You can’t perform that action at this time.
0 commit comments