8000 feat: enhance search to the main introduction page · angellmethod/python-guide@b08cf0c · GitHub
[go: up one dir, main page]

Skip to content

Commit b08cf0c

Browse files
author
s-pace
committed
feat: enhance search to the main introduction page
1 parent 7dc0ecd commit b08cf0c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

docs/_templates/sidebarintro.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,13 @@
2020
height: 100%;
2121
}
2222
</style>
23-
<input id="doc_search" placeholder="Search the Guide" autofocus/>
24-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
25-
<script type="text/javascript"> docsearch({
26-
apiKey: '512b0d6c0c8578bed7662f5279c2249c',
27-
indexName: 'python-guide',
28-
inputSelector: "#doc_search",
29-
debug: false // Set debug to true if you want to inspect the dropdown
30-
});
31-
</script>
32-
23+
<input id="doc_search" placeholder="Search the doc" autofocus/>
24+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({
25+
apiKey: '512b0d6c0c8578bed7662f5279c2249c',
26+
indexName: 'python-guide',
27+
inputSelector: '#doc_search',
28+
debug: false // Set debug to true if you want to inspect the dropdown
29+
})" async></script>
3330

3431
<p>
3532
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.

0 commit comments

Comments
 (0)
0