mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
add search
This commit is contained in:
parent
7d97ab6d6c
commit
8d3d253bf0
2 changed files with 51 additions and 0 deletions
19
www/source/docs/search.html.slim
Normal file
19
www/source/docs/search.html.slim
Normal 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>
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue