diff options
| author | Rapptz <[email protected]> | 2020-05-25 11:48:16 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-12-18 21:18:47 -0500 |
| commit | 9b88c631639167433bfd2c244b3be04d3a52a66d (patch) | |
| tree | 9e71c65d119643bca4b5408f558a13ed3c732da5 /docs/_static/custom.js | |
| parent | Add support for Member.pending boolean attribute (diff) | |
| download | discord.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.js | 8 |
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); + }); }); }); |