diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..be53bea9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: ruby +cache: bundler +branches: + only: + - gh-pages +script: + - bundle exec jekyll algolia push +rvm: + - 2.2 \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..5e83d7bf --- /dev/null +++ b/Gemfile @@ -0,0 +1,7 @@ +source 'https://rubygems.org/' + +gem 'jekyll', '~> 3.5.2' + +group :jekyll_plugins do + gem 'algoliasearch-jekyll', '~> 0.8.2' +end \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 00000000..3ee7d1b6 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,75 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.5.1) + public_suffix (~> 2.0, >= 2.0.2) + algoliasearch (1.15.1) + httpclient (~> 2.8.3) + json (>= 1.5.1) + algoliasearch-jekyll (0.8.2) + algoliasearch (~> 1.4) + appraisal (~> 2.1.0) + awesome_print (~> 1.6) + json (>= 1.8.6) + nokogiri (~> 1.7, >= 1.7.2) + verbal_expressions (~> 0.1.5) + appraisal (2.1.0) + bundler + rake + thor (>= 0.14.0) + awesome_print (1.8.0) + colorator (1.1.0) + ffi (1.9.18) + forwardable-extended (2.6.0) + httpclient (2.8.3) + jekyll (3.5.2) + addressable (~> 2.4) + colorator (~> 1.0) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 1.1) + kramdown (~> 1.3) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (~> 1.7) + safe_yaml (~> 1.0) + jekyll-sass-converter (1.5.0) + sass (~> 3.4) + jekyll-watch (1.5.0) + listen (~> 3.0, < 3.1) + json (2.0.2) + kramdown (1.14.0) + liquid (4.0.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + mercenary (0.3.6) + mini_portile2 (2.2.0) + nokogiri (1.8.0) + mini_portile2 (~> 2.2.0) + pathutil (0.14.0) + forwardable-extended (~> 2.6) + public_suffix (2.0.5) + rake (12.0.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rouge (1.11.1) + safe_yaml (1.0.4) + sass (3.5.1) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + thor (0.20.0) + verbal_expressions (0.1.5) + +PLATFORMS + ruby + +DEPENDENCIES + algoliasearch-jekyll (~> 0.8.2) + jekyll (~> 3.5.2) + +BUNDLED WITH + 1.15.3 diff --git a/_config.yml b/_config.yml new file mode 100644 index 00000000..aa1746cc --- /dev/null +++ b/_config.yml @@ -0,0 +1,7 @@ +plugins: + - algoliasearch-jekyll +algolia: + application_id: '3TPMHSP0P5' + index_name: 'codamos' + record_css_selector: '.events-card, .speaker-card' +exclude: [vendor] \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 6cdc9bc1..2383e9b7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -19,6 +19,8 @@ + + + diff --git a/js/instantsearch.min.js b/js/instantsearch.min.js new file mode 100644 index 00000000..96eeb329 --- /dev/null +++ b/js/instantsearch.min.js @@ -0,0 +1,16 @@ +/*! instantsearch.js 1.11.15 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsearch=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),i=r(o);e.exports=i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),n(2),n(3);var o=n(4),i=r(o),a=n(5),s=r(a),u=n(38),c=r(u),l=n(347),f=r(l),p=n(527),d=r(p),h=n(531),m=r(h),v=n(536),g=r(v),y=n(541),b=r(y),_=n(545),w=r(_),x=n(548),C=r(x),P=n(552),E=r(P),R=n(554),O=r(R),S=n(556),j=r(S),k=n(557),T=r(k),N=n(566),F=r(N),A=n(571),M=r(A),I=n(573),D=r(I),L=n(577),U=r(L),H=n(578),V=r(H),B=n(581),q=r(B),W=n(584),z=r(W),K=n(588),Q=r(K),$=n(344),Y=r($),J=(0,i.default)(s.default);J.widgets={analytics:Q.default,clearAll:f.default,currentRefinedValues:d.default,hierarchicalMenu:m.default,hits:g.default,hitsPerPageSelector:b.default,infiniteHits:w.default,menu:C.default,refinementList:E.default,numericRefinementList:O.default,numericSelector:j.default,pagination:T.default,priceRanges:F.default,searchBox:M.default,rangeSlider:D.default,sortBySelector:U.default,starRating:V.default,stats:q.default,toggle:z.default},J.version=Y.default,J.createQueryString=c.default.url.getQueryStringFromState,t.default=J},function(e,t){"use strict";Object.freeze||(Object.freeze=function(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e})},function(e,t){"use strict";var n={};Object.setPrototypeOf||n.__proto__||function(){var e=Object.getPrototypeOf;Object.getPrototypeOf=function(t){return t.__proto__?t.__proto__:e.call(Object,t)}}()},function(e,t){"use strict";function n(e){var t=function(){for(var t=arguments.length,n=Array(t),o=0;o=p.hosts[e.hostType].length&&(h||!m)?(t.debugData=v,p._promise.reject(t)):t instanceof u.RequestTimeout?_():b()}function b(){return a("retrying request"),p._incrementHostIndex(e.hostType),t(n,c)}function _(){return a("retrying request with higher timeout"),p._incrementHostIndex(e.hostType),p._incrementTimeoutMultipler(),c.timeouts=p._getTimeoutsForRequest(e.hostType),t(n,c)}p._checkAppIdData();var w,x=new Date;if(p._useCache&&(w=e.url),p._useCache&&r&&(w+="_body_"+c.body),p._useCache&&f&&void 0!==f[w])return a("serving response from cache"),p._promise.resolve(JSON.parse(f[w]));if(d>=p.hosts[e.hostType].length)return!m||h?(a("could not get any response"),p._promise.reject(new u.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+p.applicationID,{debugData:v}))):(a("switching to fallback"),d=0,c.method=e.fallback.method,c.url=e.fallback.url,c.jsonBody=e.fallback.body,c.jsonBody&&(c.body=i(c.jsonBody)),o=p._computeRequestHeaders(l),c.timeouts=p._getTimeoutsForRequest(e.hostType),p._setHostIndexByType(0,e.hostType),h=!0,t(p._request.fallback,c));var C=p._getHostByType(e.hostType),P=C+c.url,E={body:c.body,jsonBody:c.jsonBody,method:c.method,headers:o,timeouts:c.timeouts,debug:a};return a("method: %s, url: %s, headers: %j, timeouts: %d",E.method,P,E.headers,E.timeouts),n===p._request.fallback&&a("using fallback"),n.call(p,P,E).then(g,y)}this._checkAppIdData();var r,o,a=n(24)("algoliasearch:"+e.url),l=e.additionalUA||"",f=e.cache,p=this,d=0,h=!1,m=p._useFallback&&p._request.fallback&&e.fallback;this.apiKey.length>500&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,o=this._computeRequestHeaders(l,!1)):o=this._computeRequestHeaders(l),void 0!==e.body&&(r=i(e.body)),a("request start");var v=[],g=t(p._request,{url:e.url,method:e.method,body:r,jsonBody:e.body,timeouts:p._getTimeoutsForRequest(e.hostType)});if(!e.callback)return g;g.then(function(t){c(function(){e.callback(null,t)},p._setTimeout||setTimeout)},function(t){c(function(){e.callback(t)},p._setTimeout||setTimeout)})},r.prototype._getSearchParams=function(e,t){if(void 0===e||null===e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?i(e[n]):e[n]));return t},r.prototype._computeRequestHeaders=function(e,t){var r=n(10),o=e?this._ua+";"+e:this._ua,i={"x-algolia-agent":o,"x-algolia-application-id":this.applicationID};return t!==!1&&(i["x-algolia-api-key"]=this.apiKey),this.userToken&&(i["x-algolia-usertoken"]=this.userToken),this.securityTags&&(i["x-algolia-tagfilters"]=this.securityTags),this.extraHeaders&&r(this.extraHeaders,function(e){i[e.name]=e.value}),i},r.prototype.search=function(e,t,r){var o=n(21),i=n(22);if(!o(e))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var a=this,s={requests:i(e,function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:a._getSearchParams(e.params,t)}})},u=i(s.requests,function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)}).join("&"),c="/1/indexes/*/queries";return void 0!==t.strategy&&(c+="?strategy="+t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:c,body:s,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:r})},r.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;np?this._resetInitialAppIdData(e):e},r.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||a([1,2,3]),this._setAppIdData(t)},r.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},r.prototype._partialAppIdDataUpdate=function(e){var t=n(10),r=this._getAppIdData();return t(e,function(e,t){r[t]=e}),this._setAppIdData(r)},r.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},r.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},r.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},r.prototype._setHostIndexByType=function(e,t){var r=n(17),o=r(this._hostIndexes);return o[t]=e,this._partialAppIdDataUpdate({hostIndexes:o}),e},r.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},r.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},r.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}},function(e,t,n){"use strict";function r(e,t){var r=n(10),o=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):o.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&r(t,function(e,t){o[t]=e})}function o(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),r.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return i(n,r),n}var i=n(9);i(r,Error),e.exports={AlgoliaSearchError:r,UnparsableJSON:o("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:o("RequestTimeout","Request timedout before getting a response"),Network:o("Network","Network issue, see err.more for details"),JSONPScriptFail:o("JSONPScriptFail","