aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-07-04 13:24:51 -0700
committerMark Otto <[email protected]>2017-07-04 13:24:51 -0700
commitbf63d052c0d4afeb8b5e8fdf4ff376e3dd75bbd0 (patch)
tree0bf12f5e050469f5dd202d1e88cc2a0757c3bd3c /docs/_includes
parent4bf6d7cb29073296e68a1e0bb59d122e9e95e17e (diff)
downloadbootstrap-bf63d052c0d4afeb8b5e8fdf4ff376e3dd75bbd0.tar.xz
bootstrap-bf63d052c0d4afeb8b5e8fdf4ff376e3dd75bbd0.zip
stub out docsearch additions
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/footer.html18
-rw-r--r--docs/_includes/header.html4
2 files changed, 22 insertions, 0 deletions
diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html
index fe19b6a70..b0f9b786c 100644
--- a/docs/_includes/footer.html
+++ b/docs/_includes/footer.html
@@ -37,6 +37,24 @@
{% endfor %}
{% endif %}
+{% if page.slug == "getting-started" or page.slug == "css" or page.slug == "components" or page.slug == "js" %}
+<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
+<script type="text/javascript">
+ var docsearch = docsearch({
+ apiKey: '48cb48b22351bc71ea5f12f4d1ede198',
+ indexName: 'bootstrap-v3',
+ inputSelector: '#search-input',
+ transformData: function (hits) {
+ return hits.map(function (hit) {
+ hit.url = hit.url.replace('https://getbootstrap.com/docs/3.4/', '');
+ return hit;
+ });
+ },
+ debug: false // Set debug to true if you want to inspect the dropdown
+ });
+</script>
+{% endif %}
+
{% if page.slug == "customize" %}
<script>var __configBridge = {{ site.data.configBridge.config | jsonify }}</script>
{% if site.github %}
diff --git a/docs/_includes/header.html b/docs/_includes/header.html
index bf90dc408..d7077f9a0 100644
--- a/docs/_includes/header.html
+++ b/docs/_includes/header.html
@@ -28,6 +28,10 @@
{% endif %}
{% endif %}
+{% if page.slug == "getting-started" or page.slug == "css" or page.slug == "components" or page.slug == "js" %}
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css">
+{% endif %}
+
<!-- Documentation extras -->
{% if site.github %}
<link href="{{ site.baseurl }}/assets/css/docs.min.css" rel="stylesheet">