1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-07-25 15:37:45 +00:00

Docs base plate?

This commit is contained in:
VarMonke 2022-05-02 21:41:38 +05:30
parent 359c483c66
commit 187f15f8bc
29 changed files with 3493 additions and 52 deletions

27
docs/_templates/genindex.html vendored Normal file
View file

@ -0,0 +1,27 @@
{%- extends "basic/genindex.html" %}
{% block body %}
{{ super() }}
<!-- Inject some JavaScript to convert the index names into something useful. -->
<script>
let elements = document.querySelectorAll("table.indextable a");
// this is pretty finicky but it should work.
for(let el of elements) {
let key = el.getAttribute('href').split('#', 2)[1]
if(!key.startsWith('discord.')) {
continue;
}
if(key.startsWith('discord.ext.')) {
key = key.substr(12); // discord.ext.
}
if(el.textContent.indexOf('()') !== -1) {
key = key + '()'
}
el.textContent = key;
}
document.querySelectorAll("td").forEach(el => el.style.width = 'auto');
</script>
{% endblock %}