Fix issue with Algolia's docsearch object being missing in pages with tabs

Fixes https://github.com/godotengine/godot-docs/issues/7469
This commit is contained in:
panreyes
2023-06-05 02:17:56 +02:00
committed by GitHub
parent 6fdf4c8c43
commit c2f08b3659

View File

@@ -3,6 +3,11 @@
var doc_version = document.querySelector('meta[name="doc_version"]').getAttribute('content');
// If the current page uses tabs, we will need this small patch
if (typeof(docsearch) == 'undefined') {
docsearch = exports['docsearch'];
}
// Initialize the Algolia search widget
docsearch({
apiKey: 'c39cb614363a2a156811478bc2d0573b',