diff --git a/docs/python_docs/_static/autodoc.js b/docs/python_docs/_static/autodoc.js index 0825f54ea143..5b536ddcf6ae 100644 --- a/docs/python_docs/_static/autodoc.js +++ b/docs/python_docs/_static/autodoc.js @@ -20,30 +20,32 @@ /* Customizations to the Sphinx auto module plugin output */ function auto_index() { var targets = $("dl.class>dt,dl.function>dt"); - var li_node = $("li.current>span>a.current.reference.internal").parent().parent(); var html = ""; + li_node.append(html); + li_node.prepend("[toggle]") } - html += ""; - li_node.append(html); - li_node.prepend("[toggle]") } else { setTimeout(auto_index, 500); } + } $(document).ready(auto_index); \ No newline at end of file