Skip to content

Commit 051cf82

Browse files
committed
REST API Ref: Clickable logo
1 parent a5c8e04 commit 051cf82

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/api/rest_api/rest_api_reference/rest_api_reference.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4210,6 +4210,18 @@
42104210
Redoc.hydrate(__redoc_state, container);
42114211

42124212
</script>
4213+
<script>
4214+
window.addEventListener('load', () => {
4215+
window.setTimeout(() => {
4216+
let logo = document.querySelector('img[src$="ibexa-dxp-logo.png"]');
4217+
logo.onclick = () => {
4218+
let pathParts = document.location.pathname.split('/').slice(0, 3);
4219+
document.location = pathParts.join('/') + '/api/rest_api/rest_api_usage/rest_api_usage/';
4220+
};
4221+
logo.setAttribute('style', 'cursor: pointer');
4222+
}, 500);
4223+
});
4224+
</script>
42134225
</body>
42144226

42154227
</html>

tools/api_refs/redocly.hbs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@
1919

2020
<body>
2121
{{{redocHTML}}}
22+
<script>
23+
window.addEventListener('load', () => {
24+
window.setTimeout(() => {
25+
let logo = document.querySelector('img[src$="ibexa-dxp-logo.png"]');
26+
logo.onclick = () => {
27+
let pathParts = document.location.pathname.split('/').slice(0, 3);
28+
document.location = pathParts.join('/') + '/api/rest_api/rest_api_usage/rest_api_usage/';
29+
};
30+
logo.setAttribute('style', 'cursor: pointer');
31+
}, 500);
32+
});
33+
</script>
2234
</body>
2335

2436
</html>

0 commit comments

Comments
 (0)