mirror of https://github.com/crossplane/docs.git
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:
parent
d6b32b36c1
commit
40ea0ed110
|
@ -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>
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue