Skip to content

Commit ee73a92

Browse files
REST API Ref HTML (#2922)
Co-authored-by: adriendupuis <[email protected]>
1 parent a884139 commit ee73a92

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/api/rest_api/rest_api_reference/rest_api_reference.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4364,6 +4364,22 @@
43644364
<script>
43654365
window.addEventListener('load', () => {
43664366
window.setTimeout(() => {
4367+
// Remove badges from TOC
4368+
document.querySelectorAll('.menu-content [role="menuitem"] [type="badge"]').forEach(el => el.remove());
4369+
4370+
// Apply badge styling
4371+
document.querySelectorAll('.api-content [data-section-id] h2 [type="primary"]').forEach(el => {
4372+
const color = el.getAttribute('color');
4373+
el.style.backgroundColor = "#FFF";
4374+
el.style.border = "1px solid " + color;
4375+
el.style.padding = "1px 8px";
4376+
el.style.marginRight = "8px";
4377+
el.style.color = color;
4378+
el.style.fontWeight = "initial";
4379+
el.style.borderRadius = "0px";
4380+
});
4381+
4382+
// Style logo
43674383
let logo = document.querySelector('img[src$="ibexa-dxp-logo.png"]');
43684384
logo.onclick = () => {
43694385
let pathParts = document.location.pathname.split('/').slice(0, 3);

0 commit comments

Comments
 (0)