1
0
Fork 0

Fixed search problem in documentation

This commit is contained in:
Thomas Schmidts 2014-12-15 16:28:49 +01:00
parent 04bcf3f362
commit d3ccdcde8c
3 changed files with 38 additions and 8 deletions

View File

@ -34,7 +34,6 @@
<div class="book-summary">
<div class="book-search">
<a id="clear-search" href="#">&times;</a>
<input type="text" placeholder="Type to search" class="form-control" />
</div>
<ul class="summary">
@ -85,10 +84,4 @@ $(function(){
}
});
});
</script>
<script type="text/javascript">
$('#clear-search').on('click', function(event){
event.preventDefault();
$('.book-search input').val("").trigger("keyup");
});
</script>
</script>

View File

@ -0,0 +1,15 @@
{% extends "./layout.html" %}
{% block title %}Glossary | {{ title }}{% endblock %}
{% block content %}
<div class="page page-toc">
<h1>Glossary</h1>
{% for item in glossaryIndex %}
<section class="normal glossary" id="{{ item.id }}">
<h2><a href="#{{ item.id }}">{{ item.name }}</a></h2>
<p>{{ item.description }}</p>
</section>
{% endfor %}
</div>
{% endblock %}

View File

@ -0,0 +1,22 @@
<!DOCTYPE HTML>
<html lang="en-US" {% block htmlTag %}{% endblock %}>
{{ htmlSnippet("html:start")|default("") }}
<head>
{{ htmlSnippet("head:start")|default("") }}
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="{% block description %}{% endblock %}">
<meta name="generator" content="GitBook {{ gitbook.version }}">
{% block head %}{% endblock %}
{{ htmlSnippet("head:end")|default("") }}
</head>
<body>
{{ htmlSnippet("body:start")|default("") }}
{% block style %}{% endblock %}
{% block content %}{% endblock %}
{% block javascript %}{% endblock %}
{{ htmlSnippet("body:end")|default("") }}
</body>
{{ htmlSnippet("html:end")|default("") }}
</html>