Moves the search box JS from end of page to search div (#259)

Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
This commit is contained in:
Pete Lumbis 2023-01-12 21:53:57 -05:00 committed by GitHub
parent d6b32b36c1
commit 40ea0ed110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View File

@ -9,15 +9,3 @@
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
<script>
docsearch({
container: '#docSearch',
appId: '9UXKYX61NK',
indexName: 'crossplane',
apiKey: 'e07e181044d561f6a4cb7261931d980a',
placeholder: 'Search the docs'
});
</script>

View File

@ -12,4 +12,16 @@
<div class="search-container d-flex row pt-3 ps-4 docsearch opacity-50" data-bs-target="#bdSidebar" data-bs-dismiss="offcanvas" aria-label="Docs navigation">
<div class="p-0" id="docSearch"></div>
</div>
</div>
<script>
docsearch({
container: '#docSearch',
appId: '9UXKYX61NK',
indexName: 'crossplane',
apiKey: 'e07e181044d561f6a4cb7261931d980a',
placeholder: 'Search the docs'
});
</script>