Update Docs with iframe navigation (#6440)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2023-11-19 19:02:13 +01:00 committed by GitHub
parent 17edc5cf1b
commit efd6f35192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -59,3 +59,11 @@ if (autoThemeInput) {
} }
}); });
} }
// Add iframe navigation
window.onhashchange = function() {
window.parent.postMessage({
type: 'navigation',
hash: window.location.pathname + window.location.search + window.location.hash
}, '*');
};

View File

@ -43,3 +43,8 @@ div.highlight {
.md-grid { .md-grid {
max-width: 1440px; max-width: 1440px;
} }
/* Language dropdown selector (default is shorter 200px in length) */
body .md-select__inner {
max-height: 500px !important;
}