Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b4da9ce

Browse filesBrowse files
authored
Merge pull request #997 from s-pace/doc/enhance_search
[doc website] Update the search experience
2 parents 7dc0ecd + f43eff5 commit b4da9ce
Copy full SHA for b4da9ce

File tree

Expand file treeCollapse file tree

2 files changed

+29
-10
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+29
-10
lines changed

‎docs/_templates/sidebarintro.html

Copy file name to clipboardExpand all lines: docs/_templates/sidebarintro.html
+7-10Lines 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.

‎docs/_templates/sidebarlogo.html

Copy file name to clipboardExpand all lines: docs/_templates/sidebarlogo.html
+22Lines 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+
.algolia-autocomplete a{
16+
border-bottom: none !important;
17+
}
18+
#doc_search{
19+
width: 100%;
20+
height: 100%;
21+
}
22+
</style>
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>
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.