Skip to content

Commit

Permalink
use algolia in sidebar search too
Browse files Browse the repository at this point in the history
  • Loading branch information
iishiishii committed Dec 19, 2024
1 parent bb44db2 commit 289597b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions books/_static/algolia.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ addEventListener("DOMContentLoaded", (event) => {
let docsearchDiv = document.createElement("DIV")
docsearchDiv.id = 'docsearch';
container.appendChild(docsearchDiv);

const sidebar_container = document.querySelector(".sidebar-primary-item");
let sidebar_docsearchDiv = document.createElement("DIV")
sidebar_docsearchDiv.id = 'docsearch';
sidebar_container.appendChild(sidebar_docsearchDiv);

setTimeout(() => {
docsearch({
Expand Down

0 comments on commit 289597b

Please sign in to comment.