Skip to content

Commit 18df25b

Browse files
author
s-pace
committed
ready to deploy
1 parent f526118 commit 18df25b

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

docs/_templates/layout.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@
1111
min-width: initial;
1212
max-width: initial;
1313
}
14-
.algolia-autocomplete{
15-
width: 100%;
16-
height: 1.5em
17-
}
18-
#q{
19-
width: 100%;
20-
height: 100%;
21-
}
2214
</style>
23-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
24-
2515

2616
{% if pagename == 'index' %}
2717
<link rel="canonical" href="https://docs.python-guide.org/"/>
@@ -120,4 +110,13 @@
120110
<div style="text-align: center;" id="waldo-tag-2171"></div>
121111
{% if show_copyright %}<p>&copy;{{ copyright }}</p>{% endif %}
122112
</div>
123-
{% endblock %}
113+
{% endblock %}
114+
<!-- at the end of the BODY -->
115+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
116+
<script type="text/javascript"> docsearch({
117+
apiKey: '512b0d6c0c8578bed7662f5279c2249c',
118+
indexName: 'python-guide',
119+
inputSelector: '#q',
120+
debug: false // Set debug to true if you want to inspect the dropdown
121+
});
122+
</script>

docs/_templates/sidebarintro.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
width: 100%;
1212
height: 1.5em
1313
}
14-
#q{
14+
#doc_search{
1515
width: 100%;
1616
height: 100%;
1717
}

0 commit comments

Comments
 (0)