add search

This commit is contained in:
Dominik Richter 2016-09-26 06:20:58 +02:00
parent 7d97ab6d6c
commit 8d3d253bf0
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,19 @@
---
title: Search InSpec Docs
---
h2 Search the InSpec Documentation
javascript:
// TODO: add the inspec search here
(function() {
var cx = '014746884379529974319:rvxyzhpu2us';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
<gcse:search webSearchResultSetSize="20"></gcse:search>

View file

@ -32,3 +32,35 @@
.center {
text-align: center;
}
.gsc-adBlock, .gcsc-branding {
display: none !important;
}
.gsc-control-cse {
padding: 0 !important;
tbody {
border: none;
background: none;
}
.gsc-input-box {
height: 3rem;
table {
margin-bottom: 0;
}
}
.gsc-input input {
box-shadow: none !important;
}
.gsc-search-button {
font-family: inherit;
font-size: 11px;
padding: 5px 18px;
height: 27px;
min-width: 54px;
}
}