2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-27 14:46:01 +03:00

basic docs search

This commit is contained in:
Mark Otto
2014-12-24 02:44:38 -08:00
parent 952be04cb0
commit 73e59c26e6
8 changed files with 70 additions and 5 deletions
+6
View File
@@ -2,6 +2,12 @@
<a href="{{ site.baseurl }}/" class="navbar-brand">
Bootstrap
</a>
<div class="bs-docs-search">
<input type="text" class="form-control" id="search-input" placeholder="Search...">
<ul class="dropdown-menu bs-docs-search-results" id="search-results"></ul>
</div>
{% for group in site.data.nav %}
{% assign link = group.pages | first %}
{% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}