mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
8756e68bff
OpenCV New Documentation #29206 This PR introduces end to end working new Documentation in OpenCV. Co-authored by: @abhishek-gola @omrope79 @Akansha-977 @Prasadayus @varun-jaiswal17 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
41 lines
2.2 KiB
HTML
41 lines
2.2 KiB
HTML
{%- set _search = ('../' * ((pagename or '').count('/') + 2)) ~ 'doc/doxygen/html/search/' %}
|
|
{# Set magnifier directly; a CSS var here resolves against search.css and 404s. #}
|
|
<style>
|
|
#MSearchSelect { background-image: url('{{ _search }}mag_sel.svg') !important; }
|
|
html[data-theme="dark"] #MSearchSelect { background-image: url('{{ _search }}mag_seld.svg') !important; }
|
|
</style>
|
|
{# Navbar trigger: native PyData look (.search-button-field), but NOT the
|
|
.search-button__button class — that is the theme's own show-modal hook. #}
|
|
<button id="opencvSearchTrigger" type="button" class="btn search-button-field"
|
|
title="{{ _('Search') }}" aria-label="{{ _('Search') }}">
|
|
<i class="fa-solid fa-magnifying-glass"></i>
|
|
<span class="search-button__default-text">{{ _('Search') }}</span>
|
|
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
|
|
</button>
|
|
{# Centered modal overlay (layout.html moves it to <body> and toggles the open
|
|
class). Holds the Doxygen search box; results render via Doxygen's search.js. #}
|
|
<div id="opencvSearchOverlay" class="opencv-search-overlay" role="dialog"
|
|
aria-modal="true" aria-label="{{ _('Search') }}">
|
|
<div class="opencv-search-modal">
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<span id="MSearchSelect"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"> </span>
|
|
<input type="text" id="MSearchField" value="" placeholder="Search the docs ..."
|
|
accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span>
|
|
<span class="right">
|
|
<span id="MSearchKbd" class="search-button__kbd-shortcut">
|
|
<kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd>
|
|
</span>
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()">
|
|
<img id="MSearchCloseImg" border="0" src="{{ _search }}close.svg" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|