File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
docs/api/rest_api/rest_api_reference Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 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);
You can’t perform that action at this time.
0 commit comments