Update Site Search
Replaced Google site search by Swiftype search. Google updating standard site search and placing query limit + advertisements. Ultimately, entire program will be deprecated. Most expedient change that would meet our needs (including auto-index) was https://swiftype.com/. Change-Id: Idd204f3c7aa2aa6064ea08e5100c941339952c8c
This commit is contained in:
parent
6e110ee7ca
commit
73ac4e1a8e
@ -10,7 +10,6 @@
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link href="{{pathto('_static/css/combined.css', 1)}}" rel="stylesheet">
|
||||
<link href="{{pathto('_static/css/styles.css', 1)}}" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
|
@ -1,3 +1,4 @@
|
||||
{% include 'swiftype_search_install.html' %}
|
||||
<nav class="navbar navbar-default" role="navigation">
|
||||
<div class="container">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
@ -14,28 +15,12 @@
|
||||
<div class="search-icon show"><i class="fa fa-search"></i> Search</div></div>
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<div class="search-container tiny">
|
||||
<div id="gcse">
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var cx = '000108871792296872333:noj9nikm74i';
|
||||
var gcse = document.createElement('script');
|
||||
gcse.type = 'text/javascript';
|
||||
gcse.async = true;
|
||||
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
|
||||
'//www.google.com/cse/cse.js?cx=' + cx;
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(gcse, s);
|
||||
})();
|
||||
</script>
|
||||
<gcse:search gname="standard"></gcse:search>
|
||||
</div>
|
||||
{% include 'swiftype_search.html' %}
|
||||
<i class="fa fa-times close-search"></i>
|
||||
</div>
|
||||
<ul class="nav navbar-nav navbar-main show">
|
||||
<li>
|
||||
<div id="gcse-mobile">
|
||||
<gcse:search gname="mobile"></gcse:search>
|
||||
</div>
|
||||
{% include 'swiftype_search_mobile.html' %}
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.openstack.org/software/" class="drop" id="dropdownMenuSoftware">Software <i class="fa fa-caret-down"></i></a>
|
||||
|
@ -59,17 +59,3 @@
|
||||
|
||||
logABug(bugTitle, bugProject, fieldComment, fieldTags);
|
||||
</script>
|
||||
|
||||
<!-- Javascript for search boxes (both sidebar and top nav) -->
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var cx = '000108871792296872333:noj9nikm74i';
|
||||
var gcse = document.createElement('script');
|
||||
gcse.type = 'text/javascript';
|
||||
gcse.async = true;
|
||||
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
|
||||
'//www.google.com/cse/cse.js?cx=' + cx;
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(gcse, s);
|
||||
})();
|
||||
</script>
|
||||
|
@ -24,19 +24,5 @@
|
||||
{% trans %}To search the OpenStack documentation, type your query into the
|
||||
box below and press Enter.{% endtrans %}
|
||||
</p>
|
||||
<div id="gcse">
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var cx = '000108871792296872333:noj9nikm74i';
|
||||
var gcse = document.createElement('script');
|
||||
gcse.type = 'text/javascript';
|
||||
gcse.async = true;
|
||||
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
|
||||
'//www.google.com/cse/cse.js?cx=' + cx;
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(gcse, s);
|
||||
})();
|
||||
</script>
|
||||
<gcse:search gname="standard"></gcse:search>
|
||||
</div>
|
||||
{% include 'swiftype_search.html' %}
|
||||
{% endblock %}
|
||||
|
@ -863,7 +863,7 @@ a, a:visited {
|
||||
min-width: 135px; }
|
||||
|
||||
a.navbar-brand {
|
||||
background: url('../images/openstack-logo-full.svg') left no-repeat;
|
||||
background: url('https://www.openstack.org/themes/openstack/images/openstack-logo-full.svg') left no-repeat;
|
||||
height: 35px;
|
||||
width: 135px; }
|
||||
|
||||
@ -873,7 +873,7 @@ a.navbar-brand {
|
||||
min-width: 75px;
|
||||
margin-top: 0; }
|
||||
a.navbar-brand {
|
||||
background: url('../images/openstack-logo-vert.svg') left no-repeat;
|
||||
background: url('https://www.openstack.org/themes/openstack/images/openstack-logo-vert.svg') left no-repeat;
|
||||
margin-left: 0px !important;
|
||||
height: 54px;
|
||||
width: 59px; } }
|
||||
@ -894,7 +894,7 @@ a.navbar-brand {
|
||||
|
||||
@media (min-width: 768px) and (max-width: 1200px) {
|
||||
.navbar-default .container {
|
||||
width: 100%; } }
|
||||
width: 98%; } }
|
||||
|
||||
ul.navbar-main {
|
||||
display: none;
|
||||
@ -1000,12 +1000,18 @@ i.fa-caret-right {
|
||||
width: 84%; }
|
||||
|
||||
@media (min-width: 768px) and (max-width: 1200px) {
|
||||
.search-container {
|
||||
width: 80%; } }
|
||||
.search-container
|
||||
{
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.search-container, #gsc-iw-id1 {
|
||||
display: none; } }
|
||||
@media (max-width: 767px), only screen and (max-device-width: 1024px) {
|
||||
.search-container
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
display: none;
|
||||
@ -1014,216 +1020,159 @@ i.fa-caret-right {
|
||||
text-transform: uppercase;
|
||||
color: #8a959e;
|
||||
font-size: 12px;
|
||||
font-weight: 400; }
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.search-icon:hover {
|
||||
cursor: pointer;
|
||||
color: #8a959e; }
|
||||
color: #8a959e;
|
||||
}
|
||||
|
||||
.search-icon i {
|
||||
margin-right: 5px;
|
||||
color: #8a959e; }
|
||||
color: #8a959e;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.search-icon {
|
||||
display: none !important; } }
|
||||
@media (max-width: 767px), only screen and (max-device-width: 1024px) {
|
||||
.search-icon
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.header-search-form, .gsc-search-box {
|
||||
position: absolute;
|
||||
z-index: 1000;
|
||||
/*left: 10px;*/
|
||||
width: 100%;
|
||||
-webkit-transition-property: width;
|
||||
-webkit-transition-duration: 1s;
|
||||
-webkit-transition-timing-function: linear;
|
||||
/* Standard syntax */
|
||||
-webkit-transition-property: width;
|
||||
transition-property: width;
|
||||
-webkit-transition-duration: 1s;
|
||||
transition-duration: 1s;
|
||||
-webkit-transition-timing-function: linear;
|
||||
transition-timing-function: linear; }
|
||||
@media (max-width: 1040px) {
|
||||
.header-search-text
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.header-search-form {
|
||||
display: none; }
|
||||
.gsc-search-box {
|
||||
position: relative;
|
||||
left: 0px; } }
|
||||
@media (max-width: 767px), only screen and (max-device-width: 1024px) {
|
||||
.header-search-form
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
.custom-search-box
|
||||
{
|
||||
position: relative !important;
|
||||
left: 0px !important;;
|
||||
}
|
||||
}
|
||||
|
||||
.gsc-input {
|
||||
color: #30739C;
|
||||
font-size: 12px;
|
||||
text-transform: lowercase;
|
||||
font-weight: 400; }
|
||||
|
||||
.mobile-search-form, #gsc-iw-id2 {
|
||||
display: none;
|
||||
.custom-search-box {
|
||||
color: #30739C !important;
|
||||
font-size: 12px !important;
|
||||
text-transform: lowercase !important;
|
||||
font-weight: 400 !important;
|
||||
width: 100% !important;
|
||||
position: relative;
|
||||
width: 100%; }
|
||||
top: 15px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.mobile-search-form, #gsc-iw-id2 {
|
||||
display: block; } }
|
||||
.custom-search-box-mobile
|
||||
{
|
||||
display: none !important;
|
||||
position: relative;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
input#gsc-i-id2.gsc-input {
|
||||
height: 30px !important; }
|
||||
@media (max-width: 767px), only screen and (max-device-width: 1024px) {
|
||||
.custom-search-box-mobile
|
||||
{
|
||||
display: block !important;
|
||||
}
|
||||
.custom-search-box {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
table.gsc-search-box {
|
||||
width: 90% !important; }
|
||||
|
||||
.header-search, .gsc-input-box {
|
||||
.header-search, .custom-search-box, .custom-search-box-mobile {
|
||||
border: 2px solid #dae5ee !important;
|
||||
border-radius: 4px;
|
||||
border-radius: 4px !important;
|
||||
height: 37px !important;
|
||||
margin: 7px 0 0 0;
|
||||
padding-left: 10px;
|
||||
margin: 7px 0 0 0 !important;
|
||||
padding: 0 !important;
|
||||
padding-left: 10px !important;
|
||||
background: #fff !important;
|
||||
width: 100%;
|
||||
-webkit-transition: width 4s;
|
||||
transition: width 4s;
|
||||
width: 100% !important;
|
||||
-webkit-transition: width 4s !important;
|
||||
transition: width 4s !important;
|
||||
-webkit-border-horizontal-spacing: 0 !important;
|
||||
-webkit-border-vertical-spacing: 0 !important; }
|
||||
-webkit-border-vertical-spacing: 0 !important;
|
||||
}
|
||||
|
||||
.header-search contenteditable .gsc-input-box:hover, .gsc-input-box:focus, .gsc-search-box .gsc-input > input:focus, .gsc-input-box-focus {
|
||||
box-shadow: none !important; }
|
||||
.header-search contenteditable .custom-search-box-mobile:hover, .custom-search-box-mobile:focus, .custom-search-box:hover, .custom-search-box:focus {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.header-search::-webkit-input-placeholder, .gsc-input-box::-webkit-input-placeholder, gcse:search::-webkit-input-placeholder {
|
||||
.header-search::-webkit-input-placeholder, .custom-search-box::-webkit-input-placeholder,custom-search-box-mobile::-webkit-input-placeholder {
|
||||
color: #C0CDDB;
|
||||
font-size: 12px;
|
||||
text-transform: lowercase;
|
||||
font-weight: 400; }
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.header-search:-moz-placeholder, .gsc-input-box:-moz-placeholder, gcse:search:-moz-placeholder {
|
||||
.header-search:-moz-placeholder, .custom-search-box-mobile:-moz-placeholder, custom-search-box:-moz-placeholder {
|
||||
/* Firefox 18- */
|
||||
color: #C0CDDB;
|
||||
font-size: 12px;
|
||||
text-transform: lowercase;
|
||||
font-weight: 400; }
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.header-search::-moz-placeholder, .gsc-input-box::-moz-placeholder, gcse:search::-moz-placeholder {
|
||||
.header-search::-moz-placeholder, .custom-search-box::-moz-placeholder, custom-search-box-mobile::-moz-placeholder {
|
||||
/* Firefox 19+ */
|
||||
color: #C0CDDB;
|
||||
font-size: 12px;
|
||||
text-transform: lowercase;
|
||||
font-weight: 400; }
|
||||
|
||||
.header-search:-ms-input-placeholder, .gsc-input-box:-ms-input-placeholder, gcse:search:-ms-input-placeholder {
|
||||
.header-search:-ms-input-placeholder, .custom-search-box:-ms-input-placeholder, custom-search-box-mobile:-ms-input-placeholder {
|
||||
color: #C0CDDB;
|
||||
font-size: 12px;
|
||||
text-transform: lowercase;
|
||||
font-weight: 400; }
|
||||
|
||||
.header-search:focus, .gsc-input-box-focus {
|
||||
.header-search:focus, .custom-search-box:focus, .custom-search-box-mobile:focus {
|
||||
border-radius: 4px;
|
||||
outline: none;
|
||||
border: 2px solid #30739C !important;
|
||||
box-shadow: none; }
|
||||
|
||||
.gsc-input-box table {
|
||||
border-top: none; }
|
||||
|
||||
td.gsc-search-button {
|
||||
display: none; }
|
||||
|
||||
.cse .gsc-control-cse, .gsc-control-cse {
|
||||
border: 0 !important; }
|
||||
|
||||
form.gsc-search-box {
|
||||
margin-bottom: 0 !important; }
|
||||
|
||||
td.gsib_b {
|
||||
display: none; }
|
||||
|
||||
#gcse {
|
||||
height: auto; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
#gcse {
|
||||
margin-left: 0; } }
|
||||
|
||||
table#gs_id50.gstl_50 {
|
||||
width: 100%;
|
||||
padding: 0px;
|
||||
height: 100%; }
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.close-search {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 12% !important;
|
||||
top: 15px;
|
||||
right: 10px;
|
||||
color: #dae5ee;
|
||||
z-index: 1001;
|
||||
font-size: 16px; }
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.close-search:hover {
|
||||
.close-search:hover
|
||||
{
|
||||
color: #30739C;
|
||||
cursor: pointer; }
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.close-search {
|
||||
display: none !important; } }
|
||||
@media (max-width: 767px), only screen and (max-device-width: 1024px) {
|
||||
.close-search
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/*Google Search Modal*/
|
||||
.gsc-modal-background-image {
|
||||
background-color: #333 !important; }
|
||||
.show
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.gsc-results-wrapper-overlay {
|
||||
border-radius: 4px !important; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.gsc-results-wrapper-overlay {
|
||||
width: 90%;
|
||||
left: 5%; } }
|
||||
|
||||
a.gs-title {
|
||||
color: #30739C !important; }
|
||||
|
||||
.gsc-tabsArea {
|
||||
border: 0 !important; }
|
||||
|
||||
.gsc-tabHeader.gsc-tabhInactive {
|
||||
border-color: #BFCCDA !important;
|
||||
background-color: #BFCCDA !important;
|
||||
color: white !important;
|
||||
border-left: 0;
|
||||
border-right: 1px solid white !important;
|
||||
border-top: 0;
|
||||
border-bottom: 0 !important;
|
||||
padding: 0 30px; }
|
||||
|
||||
.gsc-tabHeader.gsc-tabhInactive:hover {
|
||||
color: #30739C !important; }
|
||||
|
||||
.gsc-tabHeader.gsc-tabhActive {
|
||||
border-color: #30739C !important;
|
||||
border-bottom: 0 !important;
|
||||
color: #30739C !important;
|
||||
padding: 0 30px; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.gsc-tabHeader.gsc-tabhInactive {
|
||||
padding: 0 10px; }
|
||||
.gsc-tabHeader.gsc-tabhActive {
|
||||
padding: 0 10px; } }
|
||||
|
||||
.gsc-tabHeader.gsc-tabhActive:focus, .gsc-tabHeader.gsc-tabhActive:active {
|
||||
outline: none !important; }
|
||||
|
||||
a.gs-title, a.gs-title b {
|
||||
color: #30739C !important; }
|
||||
|
||||
.gsc-table-result, .gsc-thumbnail-inside, .gsc-url-top {
|
||||
padding: 0 !important; }
|
||||
|
||||
.gsc-results .gsc-cursor-box .gsc-cursor-page {
|
||||
color: #30739C !important; }
|
||||
|
||||
.show {
|
||||
display: block; }
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.show {
|
||||
display: none; } }
|
||||
@media (max-width: 767px), only screen and (max-device-width: 1024px) {
|
||||
.show
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/*End Header Navigation*/
|
||||
/*Hero*/
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
||||
<form class="docs-main-search-form">
|
||||
<input type="text" class="st-default-search-input custom-search-box" placeholder="Search OpenStack">
|
||||
</form>
|
@ -0,0 +1,8 @@
|
||||
<script type="text/javascript">
|
||||
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
|
||||
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
|
||||
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
|
||||
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
|
||||
|
||||
_st('install','aDn5L_vgZ2yzRcE893kK','2.0.0');
|
||||
</script>
|
@ -0,0 +1,3 @@
|
||||
<li>
|
||||
<input type="text" class="st-default-search-input custom-search-box-mobile" placeholder="Search OpenStack">
|
||||
</li>
|
Loading…
x
Reference in New Issue
Block a user