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>
pull/6398/head
Glenn Jocher 1 year ago committed by GitHub
parent 17edc5cf1b
commit efd6f35192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      docs/overrides/javascript/extra.js
  2. 5
      docs/overrides/stylesheets/style.css

@ -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
}, '*');
};

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

Loading…
Cancel
Save