Added js script to hide sidebar for Examples from docs
// "aside" selects sidebar elements, and "href" narrows it down to the
// list of examples. This is a workaround, not a permanent fix.
-var examples = $('aside a[href*="examples.html"]')
-var examples_clicked = $( ":contains('Examples')" ).filter($( ".current.reference.internal" ))
+// The next lines work with furo theme
+// var examples = $('aside a[href*="examples.html"]')
+// var examples_clicked = $( ":contains('Examples')" ).filter($( ".current.reference.internal" ))
+// examples.nextAll().hide()
+// examples_clicked.nextAll().hide()
-examples.nextAll().hide()
-examples_clicked.nextAll().hide()
+// The next lines work with pydata theme
+
+window.onload = function () {
+ var examples_clicked = $( "a[href*='#']:contains(Examples)" )
+ if (examples_clicked.length == 1) {
+ $(" nav.bd-links ").children().hide()
+ }
+};
+
+// window.onload = function() {
+// if (window.jQuery) {
+// // jQuery is loaded
+// alert("Yeah!");
+// } else {
+// // jQuery is not loaded
+// alert("Doesn't Work");
+// }
+// }
