Skip to content

Commit 3fc0707

Browse files
authored
Merge pull request realpython#934 from s-pace/www/fix/search_script_position
[fix search website] Changing the position of the script (not included)
2 parents 2fe73f2 + 4e081f2 commit 3fc0707

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/_templates/sidebarintro.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@
66

77
<p style="margin-left:auto; margin-right: auto;"><iframe src="https://ghbtns.com/github-btn.html?user=realpython&repo=python-guide&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe></p>
88

9+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
10+
<style>
11+
.algolia-autocomplete{
12+
width: 100%;
13+
height: 1.5em
14+
}
15+
#doc_search{
16+
width: 100%;
17+
height: 100%;
18+
}
19+
</style>
20+
<input id="doc_search" placeholder="Search the doc" autofocus/>
21+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
22+
<script type="text/javascript"> docsearch({
23+
apiKey: '512b0d6c0c8578bed7662f5279c2249c',
24+
indexName: 'python-guide',
25+
inputSelector: "#doc_search",
26+
debug: false // Set debug to true if you want to inspect the dropdown
27+
});
28+
</script>
29+
30+
931
<p>
1032
This opinionated guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
1133
</p>

0 commit comments

Comments
 (0)