Back to Opencv

Opencv Version Switcher

docs_sphinx/_templates/opencv-version-switcher.html

5.0.0971 B
Original Source

{# Navbar version switcher: a plain `` rendered right after the navbar-logo slot, mirroring the legacy docs.opencv.org header where the version selector sits inline with the wordmark. Single source of truth: the options are built client-side from window.OPENCV\_DOC\_VERSIONS, defined in \_static/version.js — the SAME list the legacy Doxygen pages carry. There is no build-time scrape and no second list: publishing a release is one edit to that file. We load it via pathto('\_static/version.js', 1) (the theme's own idiom for JS assets) so the script resolves relative to each page, which means the dropdown populates fully in a local sphinx-build preview AND on the deployed site, regardless of how deep the page sits or which prefix it lands under. The option whose label equals this build's release is marked selected; every other option carries that version's site-absolute path and the onchange handler navigates the same tab there. #}{{ release }}