From 812e50417a4352793140d3a20226b62d6ca7f6cb Mon Sep 17 00:00:00 2001 From: Thomas Delteil Date: Mon, 14 Oct 2019 15:35:56 -0700 Subject: [PATCH] fix autodoc for spurrious toggles (#16452) --- docs/python_docs/_static/autodoc.js | 34 +++++++++++++++-------------- 1 file changed, 18 insertions(+), 16 deletions(-) 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