mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
add a trigger for addon search
This commit is contained in:
@@ -117,3 +117,8 @@ html_theme_options = {"link_main_doc": False}
|
||||
redirects = {"reference/openmp/openmp": "../../about/compatibility/openmp.html"}
|
||||
|
||||
numfig = False
|
||||
|
||||
html_js_files = [
|
||||
"readthedocs.js",
|
||||
]
|
||||
|
||||
|
||||
6
docs/readthedocs.js
Normal file
6
docs/readthedocs.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// Trigger the Read the Docs Addons Search modal when clicking on "Search docs" input from the topnav.
|
||||
document.querySelector("[role='search'] input").addEventListener("focusin", () => {
|
||||
const event = new CustomEvent("readthedocs-search-show");
|
||||
document.dispatchEvent(event);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user