From 2e22335c95550bc1e0c09a4e6d42a5745e240da2 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 19 Sep 2020 12:10:20 +0200 Subject: [PATCH] [doc] Update Simple-Jekyll-Search --- docs/_includes/head.html | 1 + docs/_includes/topnav.html | 10 ++++++---- docs/assets/README.md | 3 +++ .../Simple-Jekyll-Search-1.0.8/dest/jekyll-search.js | 1 + docs/css/customstyles.css | 11 ++++++----- docs/js/jekyll-search.js | 1 - 6 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 docs/assets/Simple-Jekyll-Search-1.0.8/dest/jekyll-search.js delete mode 100644 docs/js/jekyll-search.js diff --git a/docs/_includes/head.html b/docs/_includes/head.html index 5ce66bc16d..ccd2aecd11 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -19,6 +19,7 @@ + diff --git a/docs/_includes/topnav.html b/docs/_includes/topnav.html index d931e1c279..0e15e29a64 100644 --- a/docs/_includes/topnav.html +++ b/docs/_includes/topnav.html @@ -44,21 +44,23 @@ {% endfor %} {% endfor %} -
+ -
diff --git a/docs/assets/README.md b/docs/assets/README.md index 4589ec05a9..e4267449bc 100644 --- a/docs/assets/README.md +++ b/docs/assets/README.md @@ -31,3 +31,6 @@ https://github.com/tefra/navgoco/releases/tag/0.2.1 https://jqueryui.com/ https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip +## Simple Jekyll Search + +https://github.com/christian-fei/Simple-Jekyll-Search diff --git a/docs/assets/Simple-Jekyll-Search-1.0.8/dest/jekyll-search.js b/docs/assets/Simple-Jekyll-Search-1.0.8/dest/jekyll-search.js new file mode 100644 index 0000000000..32eba0f36d --- /dev/null +++ b/docs/assets/Simple-Jekyll-Search-1.0.8/dest/jekyll-search.js @@ -0,0 +1 @@ +!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=0)}}module.exports=new LiteralSearchStrategy},{}],5:[function(require,module,exports){function setOptions(_opt){opt=_opt||{},opt.templatePattern=_opt.templatePattern||/\{(.*?)\}/g}function render(t,data){return t.replace(opt.templatePattern,function(match,prop){return data[prop]||match})}module.exports={render:render,setOptions:setOptions};var opt={};opt.templatePattern=/\{(.*?)\}/g},{}],6:[function(require,module,exports){!function(window,document,undefined){"use strict";function initWithJSON(json){store.put(opt.json),registerInput()}function initWithURL(url){jsonLoader.load(url,function(err,json){err?throwError("failed to get JSON ("+url+")"):(store.put(json),registerInput())})}function throwError(message){throw new Error("SimpleJekyllSearch --- "+message)}function validateOptions(_opt){for(var i=0;i{title}',noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]};window.SimpleJekyllSearch=function(_opt){opt=validateOptions(_opt),store.setOptions(_opt),isJSON(opt.json)?initWithJSON(opt.json):initWithURL(opt.json)},window.SimpleJekyllSearch.init=window.SimpleJekyllSearch}(window,document)},{"./JSONLoader":1,"./Repository":2,"./Templater":5}]},{},[6]); \ No newline at end of file diff --git a/docs/css/customstyles.css b/docs/css/customstyles.css index a57b0c0b75..c421f05e74 100644 --- a/docs/css/customstyles.css +++ b/docs/css/customstyles.css @@ -208,17 +208,16 @@ p.post-meta {font-size: 80%; color: #777;} .entry-date{font-size:14px;font-size:0.875rem;line-height:1.71429;margin-bottom:0;text-transform:uppercase;} /* search area */ -#search-demo-container ul#results-container { +ul#results-container { list-style: none; font-size: 12px; background-color: white; position: absolute; top: 50px; /* if you change anything about the nav, you'll prob. need to reset the top and left values here.*/ - left: 20px; z-index: -1; - width:223px; border-left: 1px solid #dedede; box-shadow: 2px 3px 2px #dedede; + padding: 0px; } @@ -230,9 +229,11 @@ ul#results-container a:hover { color: black; } -#search-demo-container a:hover { - color: black; +ul#results-container li a { + border-top:1px solid whitesmoke; + margin:10px; } + /* end search */ .filter-options { diff --git a/docs/js/jekyll-search.js b/docs/js/jekyll-search.js deleted file mode 100644 index 04d6a0d3a4..0000000000 --- a/docs/js/jekyll-search.js +++ /dev/null @@ -1 +0,0 @@ -!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o=0}var self=this;self.matches=function(string,crit){return"string"!=typeof string?!1:(string=string.trim(),doMatch(string,crit))}}module.exports=new LiteralSearchStrategy},{}],4:[function(require,module){module.exports=function(){function findMatches(store,crit,strategy){for(var data=store.get(),i=0;i{title}',noResultsText:"No results found",limit:10,fuzzy:!1};self.init=function(_opt){validateOptions(_opt),assignOptions(_opt),isJSON(opt.dataSource)?initWithJSON(opt.dataSource):initWithURL(opt.dataSource)}}var Searcher=require("./Searcher"),Templater=require("./Templater"),Store=require("./Store"),JSONLoader=require("./JSONLoader"),searcher=new Searcher,templater=new Templater,store=new Store,jsonLoader=new JSONLoader;window.SimpleJekyllSearch=new SimpleJekyllSearch}(window,document)},{"./JSONLoader":1,"./Searcher":4,"./Store":5,"./Templater":6}]},{},[7]); \ No newline at end of file