mirror of
https://github.com/godotengine/doc-status.git
synced 2026-01-05 14:10:01 +03:00
Make documentation links shorter to make the table less wide
This commit is contained in:
@@ -25,7 +25,14 @@
|
||||
} else {
|
||||
td.style.backgroundColor = `hsla(0, 100%, 50%, ${0.334 - percentage / 300.0})`
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
document.querySelectorAll('td:last-child').forEach(td => {
|
||||
const docLink = td.querySelector('a');
|
||||
// Only keep the last fragment and trim the file extension to make the table less wide.
|
||||
const docLinkSplit = docLink.innerText.split('/');
|
||||
docLink.innerText = docLinkSplit[docLinkSplit.length - 1].slice(0, -5);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user