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.
This commit is contained in:
Rapptz
2020-05-25 11:48:16 -04:00
parent 93f102ca90
commit 9b88c63163
5 changed files with 440 additions and 4 deletions

View File

@ -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);
});
});
});