Added search

This commit is contained in:
Alex Bilbie 2016-05-10 08:22:31 +01:00
parent 08ce20ec73
commit 4fecf24e81

View File

@ -23,6 +23,26 @@
<link rel="apple-touch-icon-precomposed" href="//theme.thephpleague.com/img/apple-touch-icon-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="//theme.thephpleague.com/img/apple-touch-icon-precomposed.png">
{% endif %} {% endif %}
<link rel="stylesheet" href="//theme.thephpleague.com/css/all.css"> <link rel="stylesheet" href="//theme.thephpleague.com/css/all.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/>
<style>
menu .tool {
margin: 15px 0 0 0;
padding: 0 45px;
}
menu .search {
display: inline-block;
width: 100%;
padding: 7px 10px;
color: #6abcdd;
font-size: 14px;
font-family: "Museo Sans 300";
border: 0;
outline: 0;
background: #22303f;
border-radius: 3px;
}
</style>
</head> </head>
<body> <body>
@ -59,6 +79,9 @@
<main> <main>
<menu> <menu>
<div class="tool">
<input id="search" class="search" placeholder="Search&hellip;">
</div>
{% for section in site.data.menu %} {% for section in site.data.menu %}
<h2>{{ section[0] }}</h2> <h2>{{ section[0] }}</h2>
<ul> <ul>
@ -84,6 +107,14 @@
<script src="//theme.thephpleague.com/js/scripts.js"></script> <script src="//theme.thephpleague.com/js/scripts.js"></script>
<script src="//theme.thephpleague.com/js/prism.js"></script> <script src="//theme.thephpleague.com/js/prism.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '8dd21e312297ec1560d4bace1405d856',
indexName: 'oauth2-thephpleague',
inputSelector: '#search'
});
</script>
{% if site.data.project.google_analytics_tracking_id %} {% if site.data.project.google_analytics_tracking_id %}
<script> <script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]= (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=