aboutsummaryrefslogtreecommitdiff
path: root/docs/_static/custom.js
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-05-25 11:48:16 -0400
committerRapptz <[email protected]>2020-12-18 21:18:47 -0500
commit9b88c631639167433bfd2c244b3be04d3a52a66d (patch)
tree9e71c65d119643bca4b5408f558a13ed3c732da5 /docs/_static/custom.js
parentAdd support for Member.pending boolean attribute (diff)
downloaddiscord.py-9b88c631639167433bfd2c244b3be04d3a52a66d.tar.xz
discord.py-9b88c631639167433bfd2c244b3be04d3a52a66d.zip
Add attributetable and add some class-level sections.
The extensions have yet to receive this treatment and CSS needs work, but for now this is fine.
Diffstat (limited to 'docs/_static/custom.js')
-rw-r--r--docs/_static/custom.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/_static/custom.js b/docs/_static/custom.js
index 235a14ea..0f1ea7fc 100644
--- a/docs/_static/custom.js
+++ b/docs/_static/custom.js
@@ -27,5 +27,13 @@ $(document).ready(function () {
activeLink = $('.sphinxsidebar a[href="#' + currentSection.attr('id') + '"]');
activeLink.parent().addClass('active');
}
+
+ const tables = document.querySelectorAll('.py-attribute-table[data-move-to-id]');
+ tables.forEach(table => {
+ let element = document.getElementById(table.getAttribute('data-move-to-id'));
+ let parent = element.parentNode;
+ // insert ourselves after the element
+ parent.insertBefore(table, element.nextSibling);
+ });
});
});