From 4248a93e6e5d37355dbbac6080b508f1414a0fe3 Mon Sep 17 00:00:00 2001 From: Dennis Bijlsma Date: Mon, 15 Apr 2024 10:52:58 +0200 Subject: [PATCH] Test feedback page. --- docs/_config.yml | 3 - docs/_layouts/default.html | 21 +- docs/assets/tipuesearch/css/normalize.css | 461 ------------------ docs/assets/tipuesearch/css/tipuesearch.css | 251 ---------- docs/assets/tipuesearch/search.png | Bin 1366 -> 0 bytes docs/assets/tipuesearch/tipuesearch.min.js | 178 ------- .../assets/tipuesearch/tipuesearch_content.js | 83 ---- docs/assets/tipuesearch/tipuesearch_set.js | 80 --- docs/landing/feedback.html | 15 + docs/pages/a.md | 2 + docs/pages/b.md | 2 + docs/pages/c.md | 2 + 12 files changed, 33 insertions(+), 1065 deletions(-) delete mode 100644 docs/_config.yml delete mode 100644 docs/assets/tipuesearch/css/normalize.css delete mode 100755 docs/assets/tipuesearch/css/tipuesearch.css delete mode 100644 docs/assets/tipuesearch/search.png delete mode 100644 docs/assets/tipuesearch/tipuesearch.min.js delete mode 100644 docs/assets/tipuesearch/tipuesearch_content.js delete mode 100644 docs/assets/tipuesearch/tipuesearch_set.js create mode 100644 docs/landing/feedback.html diff --git a/docs/_config.yml b/docs/_config.yml deleted file mode 100644 index 5e61c38..0000000 --- a/docs/_config.yml +++ /dev/null @@ -1,3 +0,0 @@ -tipue_search: - include: - pages: true diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 5247294..dfccfbe 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -9,14 +9,8 @@ - - - - - - - - + + @@ -47,8 +41,17 @@ const links = [...panel.querySelectorAll("a.page")]; return links.find(link => document.location.pathname.startsWith(link.getAttribute("href"))); } - + document.addEventListener("DOMContentLoaded", event => expandCurrentSection()); + + const searchIndex = lunr(function () { + this.ref("name") + this.field("text") + + documents.forEach(function (doc) { + this.add(doc) + }, this) + }); diff --git a/docs/assets/tipuesearch/css/normalize.css b/docs/assets/tipuesearch/css/normalize.css deleted file mode 100644 index 9b77e0e..0000000 --- a/docs/assets/tipuesearch/css/normalize.css +++ /dev/null @@ -1,461 +0,0 @@ -/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ - -/** - * 1. Change the default font family in all browsers (opinionated). - * 2. Correct the line height in all browsers. - * 3. Prevent adjustments of font size after orientation changes in - * IE on Windows Phone and in iOS. - */ - -/* Document - ========================================================================== */ - -html { - font-family: sans-serif; /* 1 */ - line-height: 1.15; /* 2 */ - -ms-text-size-adjust: 100%; /* 3 */ - -webkit-text-size-adjust: 100%; /* 3 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers (opinionated). - */ - -body { - margin: 0; -} - -/** - * Add the correct display in IE 9-. - */ - -article, -aside, -footer, -header, -nav, -section { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - * 1. Add the correct display in IE. - */ - -figcaption, -figure, -main { /* 1 */ - display: block; -} - -/** - * Add the correct margin in IE 8. - */ - -figure { - margin: 1em 40px; -} - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ - -a { - background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ -} - -/** - * Remove the outline on focused links when they are also active or hovered - * in all browsers (opinionated). - */ - -a:active, -a:hover { - outline-width: 0; -} - -/** - * 1. Remove the bottom border in Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ - -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font style in Android 4.3-. - */ - -dfn { - font-style: italic; -} - -/** - * Add the correct background and color in IE 9-. - */ - -mark { - background-color: #ff0; - color: #000; -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -audio, -video { - display: inline-block; -} - -/** - * Add the correct display in iOS 4-7. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Remove the border on images inside links in IE 10-. - */ - -img { - border-style: none; -} - -/** - * Hide the overflow in IE. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers (opinionated). - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: sans-serif; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. - */ - -button, -html [type="button"], /* 1 */ -[type="reset"], -[type="submit"] { - -webkit-appearance: button; /* 2 */ -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Change the border, margin, and padding in all browsers (opinionated). - */ - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * 1. Add the correct display in IE 9-. - * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Remove the default vertical scrollbar in IE. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10-. - * 2. Remove the padding in IE 10-. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. - */ - -details, /* 1 */ -menu { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Scripting - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -canvas { - display: inline-block; -} - -/** - * Add the correct display in IE. - */ - -template { - display: none; -} - -/* Hidden - ========================================================================== */ - -/** - * Add the correct display in IE 10-. - */ - -[hidden] { - display: none; -} diff --git a/docs/assets/tipuesearch/css/tipuesearch.css b/docs/assets/tipuesearch/css/tipuesearch.css deleted file mode 100755 index 6c0b0c9..0000000 --- a/docs/assets/tipuesearch/css/tipuesearch.css +++ /dev/null @@ -1,251 +0,0 @@ - -/* -Tipue Search 6.1 -Copyright (c) 2017 Tipue -Tipue Search is released under the MIT License -http://www.tipue.com/search -*/ - - -/* fonts */ - - -#tipue_search_input, #tipue_search_foot_boxes -{ - font: 300 14px/1 Roboto, sans-serif; -} -#tipue_search_results_count, #tipue_search_warning, .tipue_search_content_url, .tipue_search_content_debug, .tipue_search_related_text -{ - font: 300 14px/1.7 Roboto, sans-serif; -} -.tipue_search_content_title -{ - font: 100 26px/1.7 Roboto, sans-serif; -} -.tipue_search_content_text, .tipue_search_related_title -{ - font: 300 15px/1.7 Roboto, sans-serif; -} -.tipue_search_content_bold, .tipue_search_related_bold -{ - font-weight: 400; -} - - -/* search box */ - - -#tipue_search_input -{ - color: #333; - max-width: 210px; - padding: 17px; - border: 1px solid #e3e3e3; - border-radius: 0; - -moz-appearance: none; - -webkit-appearance: none; - box-shadow: none; - outline: 0; - margin: 0; -} -.tipue_search_icon -{ - width: 24px; - height: 24px; -} -.tipue_search_left -{ - float: left; - padding: 15px 9px 0 0; -} -.tipue_search_right -{ - float: left; -} - - -/* search results */ - - -#tipue_search_content -{ - max-width: 750px; - padding-top: 15px; - margin: 0; -} -#tipue_search_results_count -{ - color: #333; -} -#tipue_search_warning -{ - color: #333; - margin: 7px 0; -} -#tipue_search_warning a -{ - color: #5396ea; - text-decoration: none; -} -#tipue_search_warning a:hover -{ - color: #555; -} -.tipue_search_content_title -{ - color: #666; - margin-top: 21px; -} -.tipue_search_content_title a -{ - color: #666; - text-decoration: none; -} -.tipue_search_content_title a:hover -{ - color: #666; -} -.tipue_search_content_url -{ - word-wrap: break-word; - hyphens: auto; -} -.tipue_search_content_url a, .tipue_search_related_text a -{ - color: #5396ea; - text-decoration: none; -} -.tipue_search_content_url a:hover, .tipue_search_related_text a:hover, .tipue_search_related_before, .tipue_search_related_after -{ - color: #555; -} -.tipue_search_content_text -{ - color: #333; - word-wrap: break-word; - hyphens: auto; - margin-top: 5px; -} -.tipue_search_content_bold -{ - color: #333; -} -.tipue_search_content_debug -{ - color: #333; - margin: 5px 0; -} -.tipue_search_related_title -{ - color: #333; - margin: 26px 0 7px 0; -} -.tipue_search_related_cols -{ - -webkit-columns: 230px 2; - -moz-columns: 230px 2; - columns: 230px 2; -} - -#tipue_search_foot -{ - margin: 51px 0 21px 0; -} -#tipue_search_foot_boxes -{ - padding: 0; - margin: 0; - cursor: pointer; -} -#tipue_search_foot_boxes li -{ - list-style: none; - margin: 0; - padding: 0; - display: inline; -} -#tipue_search_foot_boxes li a -{ - padding: 10px 17px 11px 17px; - background-color: #fff; - border: 1px solid #e3e3e3; - border-radius: 1px; - color: #333; - margin-right: 7px; - text-decoration: none; - text-align: center; -} -#tipue_search_foot_boxes li.current -{ - padding: 10px 17px 11px 17px; - background: #f6f6f6; - border: 1px solid #e3e3e3; - border-radius: 1px; - color: #333; - margin-right: 7px; - text-align: center; -} -#tipue_search_foot_boxes li a:hover -{ - background: #f6f6f6; -} - - -/* spinner */ - - -.tipue_search_spinner -{ - width: 50px; - height: 28px; -} -.tipue_search_spinner > div -{ - background-color: #e3e3e3; - height: 100%; - width: 2px; - display: inline-block; - margin-right: 2px; - -webkit-animation: stretchdelay 1.2s infinite ease-in-out; - animation: stretchdelay 1.2s infinite ease-in-out; -} -.tipue_search_spinner .tipue_search_rect2 -{ - -webkit-animation-delay: -1.1s; - animation-delay: -1.1s; -} -.tipue_search_spinner .tipue_search_rect3 -{ - -webkit-animation-delay: -1.0s; - animation-delay: -1.0s; -} -@-webkit-keyframes stretchdelay -{ - 0%, 40%, 100% - { - -webkit-transform: scaleY(0.4) - } - 20% - { - -webkit-transform: scaleY(1.0) - } -} -@keyframes stretchdelay -{ - 0%, 40%, 100% - { - transform: scaleY(0.4); - -webkit-transform: scaleY(0.4); - } - 20% - { - transform: scaleY(1.0); - -webkit-transform: scaleY(1.0); - } -} - - - - - - diff --git a/docs/assets/tipuesearch/search.png b/docs/assets/tipuesearch/search.png deleted file mode 100644 index b96a4a0db3908d84569df82091e62c277436b6f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1366 zcmV-c1*!UpP)^lbuwnD<1=yd+h7@xW}5*(RUealAR@m4xTUJgrBdnPF#U8QcmO1&R;$gBJPn`-K)bol%vt~% zBC;4o(W;0rw6{(K4IoX^J*rv*Z~y?ztf{IE04pSK7Yc>@Yin!k05CZ@xvkY|?J~1z z5!r8MMO7_$sRqeX9LM)U`s+ln0GxA2&FrG8z6W3(Kq4aba=H9hH`gyMEp4Bem^f)> zbE>)(z*CaP<2b$?%3~)64uGU&SvC*gtUta2pc2RNpZ(~iX*ww)RS`MjPtBLh<@3X8 z5(5X|oLc~J*34R}`c)J~-wdirQk-)qM5G2lNuG=2`23){ofs$p=iE^M-};+B97WMj zfqVe~vMl?QNP~31y;NM5JBjY$(m11MsUl zkh~qrM7OldG_$>-H2bLmI{~0jC>Mt9?BOK=J_qv|6oQp-gm(s_yn*{|Khp>ji!f z4`wzU%0v%kPXhqSJE1iD=>u+gGy6lC=oXR(eA%m^H2diTmI0WV6_=KlwudtEI_mZM z4s0yI%*?KZ((O5bQmORN%x5dVNQ;*(~|q zelvi-0Zg=iC%F*E@q8%1ZG!gRNs@e^s!ml8`BTpTtcb`8$=hajx4on#xlL7fi^#N} z;T?cq<&nH*W@T0VQbhiJ^1}#WD8rX?ZXd}rBoC_USeKU>fMo!SQ55~$K3T0+=Z6`> zQ2!v2rs<^Lz??O+y?!TW3pSqgI)L8++#$J2a`{#L#xO$|Y5*Y_RtViz&$mva(YRSG z7DYs60YF4%i^ZZe8jYKS=#ESPz;HqssQ`fRA&guAK-dsQG5{c42qPN+5GI6?83zB0 zmxo9IA4gGiqnm3-^~J~w#Bn@Na-n@p@{Rn-@|~kvtroK^`{-@^$jQmc$;rvd$r%Oy Y0Y~;h#)uzeHUIzs07*qoM6N<$g0Dz;_W%F@ diff --git a/docs/assets/tipuesearch/tipuesearch.min.js b/docs/assets/tipuesearch/tipuesearch.min.js deleted file mode 100644 index e6e80aa..0000000 --- a/docs/assets/tipuesearch/tipuesearch.min.js +++ /dev/null @@ -1,178 +0,0 @@ -(function($){$.fn.tipuesearch=function(options){var set=$.extend({'contentLocation':'tipuesearch/tipuesearch_content.json','contextBuffer':60,'contextLength':60,'contextStart':90,'debug':false,'descriptiveWords':25,'highlightTerms':true,'liveContent':'*','liveDescription':'*','minimumLength':3,'mode':'static','newWindow':false,'show':9,'showContext':true,'showRelated':true,'showTime':true,'showTitleCount':true,'showURL':true,'wholeWords':true},options);return this.each(function(){var tipuesearch_in={pages:[]};$.ajaxSetup({async:false});var tipuesearch_t_c=0;$('#tipue_search_content').hide().html('
').show();if(set.mode=='live') -{for(var i=0;i');var t_2=html.toLowerCase().indexOf('',t_1+7);if(t_1!=-1&&t_2!=-1) -{var tit=html.slice(t_1+7,t_2);} -else -{var tit=tipuesearch_string_1;} -tipuesearch_in.pages.push({"title":tit,"text":desc,"tags":cont,"url":tipuesearch_pages[i]});});}} -if(set.mode=='json') -{$.getJSON(set.contentLocation).done(function(json) -{tipuesearch_in=$.extend({},json);});} -if(set.mode=='static') -{tipuesearch_in=$.extend({},tipuesearch);} -var tipue_search_w='';if(set.newWindow) -{tipue_search_w=' target="_blank"';} -function getURLP(name) -{var _locSearch=location.search;var _splitted=(new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(_locSearch)||[,""]);var searchString=_splitted[1].replace(/\+/g,'%20');try -{searchString=decodeURIComponent(searchString);} -catch(e) -{searchString=unescape(searchString);} -return searchString||null;} -if(getURLP('q')) -{$('#tipue_search_input').val(getURLP('q'));getTipueSearch(0,true);} -$(this).keyup(function(event) -{if(event.keyCode=='13') -{getTipueSearch(0,true);}});function getTipueSearch(start,replace) -{var out='';var show_replace=false;var show_stop=false;var standard=true;var c=0;found=[];var d_o=$('#tipue_search_input').val();var d=d_o.toLowerCase();d=$.trim(d);if((d.match("^\"")&&d.match("\"$"))||(d.match("^'")&&d.match("'$"))) -{standard=false;} -var d_w=d.split(' ');if(standard) -{d='';for(var i=0;i=set.minimumLength) -{if(standard) -{if(replace) -{var d_r=d;for(var i=0;i'+d_r+'';} -if(c==1) -{out+='
'+tipuesearch_string_4;} -else -{c_c=c.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");out+='
'+c_c+' '+tipuesearch_string_5;} -if(set.showTime) -{var endTimer=new Date().getTime();var time=(endTimer-startTimer)/ 1000;out+=' ('+time.toFixed(2)+' '+tipuesearch_string_14+')';set.showTime=false;} -out+='
';found.sort(function(a,b){return b.score-a.score});var l_o=0;for(var i=0;i=start&&l_o'+found[i].title+'
';if(set.debug) -{out+='
Score: '+found[i].score+'
';} -if(set.showURL) -{var s_u=found[i].url.toLowerCase();if(s_u.indexOf('http://')==0) -{s_u=s_u.slice(7);} -out+='';} -if(found[i].desc) -{var t=found[i].desc;if(set.showContext) -{d_w=d.split(' ');var s_1=found[i].desc.toLowerCase().indexOf(d_w[0]);if(s_1>set.contextStart) -{var t_1=t.substr(s_1-set.contextBuffer);var s_2=t_1.indexOf(' ');t_1=t.substr(s_1-set.contextBuffer+s_2);t_1=$.trim(t_1);if(t_1.length>set.contextLength) -{t='... '+t_1;}}} -if(standard) -{d_w=d.split(' ');for(var f=0;f$1");}}} -else if(set.highlightTerms) -{var patr=new RegExp('('+d+')','gi');t=t.replace(patr,"$1");} -var t_d='';var t_w=t.split(' ');if(t_w.length'+t_d+'';}} -l_o++;} -if(set.showRelated&&standard) -{f=0;for(var i=0;i'+d_o+'';}} -if(c>set.show) -{var pages=Math.ceil(c / set.show);var page=(start / set.show);out+='';}} -else -{out+='
'+tipuesearch_string_8+'
';}} -else -{if(show_stop) -{out+='
'+tipuesearch_string_8+'. '+tipuesearch_string_9+'
';} -else -{out+='
'+tipuesearch_string_10+'
';if(set.minimumLength==1) -{out+='
'+tipuesearch_string_11+'
';} -else -{out+='
'+tipuesearch_string_12+' '+set.minimumLength+' '+tipuesearch_string_13+'
';}}} -$('#tipue_search_content').hide().html(out).slideDown(200);$('#tipue_search_replaced').click(function() -{getTipueSearch(0,false);});$('.tipue_search_related').click(function() -{$('#tipue_search_input').val($(this).attr('id'));getTipueSearch(0,true);});$('.tipue_search_foot_box').click(function() -{var id_v=$(this).attr('id');var id_a=id_v.split('_');getTipueSearch(parseInt(id_a[0]),id_a[1]);});}});};})(jQuery); \ No newline at end of file diff --git a/docs/assets/tipuesearch/tipuesearch_content.js b/docs/assets/tipuesearch/tipuesearch_content.js deleted file mode 100644 index 5a2ca75..0000000 --- a/docs/assets/tipuesearch/tipuesearch_content.js +++ /dev/null @@ -1,83 +0,0 @@ ---- -# Content index for Tipue Search -# https://github.com/jekylltools/jekyll-tipue-search -# v1.4 -layout: null ---- -{%- assign index = "" | split: "" -%} -{%- assign excluded_files = site.tipue_search.exclude.files -%} -{%- assign excluded_tags = site.tipue_search.exclude.tags | uniq -%} -{%- assign excluded_categories = site.tipue_search.exclude.categories | uniq -%} -{%- assign excluded_taxonomies = excluded_tags | concat: excluded_categories | uniq -%} -{%- for post in site.posts -%} - {%- unless post.exclude_from_search == true or excluded_files contains post.path -%} - {%- assign has_excluded_taxonomy = false -%} - {%- for tag in post.tags -%} - {%- if excluded_taxonomies contains tag -%} - {%- assign has_excluded_taxonomy = true -%} - {%- endif -%} - {%- endfor -%} - {%- for category in post.categories -%} - {%- if excluded_taxonomies contains category -%} - {%- assign has_excluded_taxonomy = true -%} - {%- endif -%} - {%- endfor -%} - {%- unless has_excluded_taxonomy == true -%} - {%- assign index = index | push: post | uniq -%} - {%- endunless -%} - {%- endunless -%} -{%- endfor -%} -{%- if site.tipue_search.include.pages == true -%} - {%- for page in site.html_pages -%} - {%- unless page.exclude_from_search == true or excluded_files contains page.path -%} - {%- assign has_excluded_taxonomy = false -%} - {%- for tag in page.tags -%} - {%- if excluded_taxonomies contains tag -%} - {%- assign has_excluded_taxonomy = true -%} - {%- endif -%} - {%- endfor -%} - {%- for category in page.categories -%} - {%- if excluded_taxonomies contains category -%} - {%- assign has_excluded_taxonomy = true -%} - {%- endif -%} - {%- endfor -%} - {%- unless has_excluded_taxonomy == true -%} - {%- assign index = index | push: page | uniq -%} - {%- endunless -%} - {%- endunless -%} - {%- endfor -%} -{%- endif -%} -{%- for collection in site.tipue_search.include.collections -%} - {%- assign documents = site.documents | where:"collection",collection -%} - {%- for document in documents -%} - {%- unless document.exclude_from_search == true or excluded_files contains document.path -%} - {%- assign has_excluded_taxonomy = false -%} - {%- for tag in document.tags -%} - {%- if excluded_taxonomies contains tag -%} - {%- assign has_excluded_taxonomy = true -%} - {%- endif -%} - {%- endfor -%} - {%- for category in document.categories -%} - {%- if excluded_taxonomies contains category -%} - {%- assign has_excluded_taxonomy = true -%} - {%- endif -%} - {%- endfor -%} - {%- unless has_excluded_taxonomy == true -%} - {%- assign index = index | push: document | uniq -%} - {%- endunless -%} - {%- endunless -%} - {%- endfor -%} -{%- endfor -%} -var tipuesearch = {"pages": [ -{%- for document in index -%} - {%- assign tags = document.tags | uniq -%} - {%- assign categories = document.categories | uniq -%} - {%- assign taxonomies = tags | concat: categories | uniq -%} - { - "title": {{ document.title | smartify | strip_html | normalize_whitespace | jsonify }}, - "text": {{ document.content | strip_html | normalize_whitespace | jsonify }}, - "tags": {{ taxonomies | join: " " | normalize_whitespace | jsonify }}, - "url": {{ document.url | relative_url | jsonify }} - }{%- unless forloop.last -%},{%- endunless -%} -{%- endfor -%} -]}; diff --git a/docs/assets/tipuesearch/tipuesearch_set.js b/docs/assets/tipuesearch/tipuesearch_set.js deleted file mode 100644 index fa90ad3..0000000 --- a/docs/assets/tipuesearch/tipuesearch_set.js +++ /dev/null @@ -1,80 +0,0 @@ - -/* -Tipue Search 6.1 -Copyright (c) 2017 Tipue -Tipue Search is released under the MIT License -http://www.tipue.com/search -*/ - - -/* -Stop words -Stop words list from http://www.ranks.nl/stopwords -*/ - -var tipuesearch_stop_words = ["a", "about", "above", "after", "again", "against", "all", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "between", "both", "but", "by", "can't", "cannot", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "don't", "down", "during", "each", "few", "for", "from", "further", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "he'd", "he'll", "he's", "her", "here", "here's", "hers", "herself", "him", "himself", "his", "how", "how's", "i", "i'd", "i'll", "i'm", "i've", "if", "in", "into", "is", "isn't", "it", "it's", "its", "itself", "let's", "me", "more", "most", "mustn't", "my", "myself", "no", "nor", "not", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "ours", "ourselves", "out", "over", "own", "same", "shan't", "she", "she'd", "she'll", "she's", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "to", "too", "under", "until", "up", "very", "was", "wasn't", "we", "we'd", "we'll", "we're", "we've", "were", "weren't", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "who's", "whom", "why", "why's", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"]; - - -// Word replace - -var tipuesearch_replace = {'words': [ - {'word': 'tip', 'replace_with': 'tipue'}, - {'word': 'javscript', 'replace_with': 'javascript'}, - {'word': 'jqeury', 'replace_with': 'jquery'} -]}; - - -// Weighting - -var tipuesearch_weight = {'weight': [ - {'url': 'http://www.tipue.com', 'score': 20}, - {'url': 'http://www.tipue.com/search', 'score': 30}, - {'url': 'http://www.tipue.com/is', 'score': 10} -]}; - - -// Illogical stemming - -var tipuesearch_stem = {'words': [ - {'word': 'e-mail', 'stem': 'email'}, - {'word': 'javascript', 'stem': 'jquery'}, - {'word': 'javascript', 'stem': 'js'} -]}; - - -// Related searches - -var tipuesearch_related = {'searches': [ - {'search': 'tipue', 'related': 'Tipue Search'}, - {'search': 'tipue', 'before': 'Tipue Search', 'related': 'Getting Started'}, - {'search': 'tipue', 'before': 'Tipue', 'related': 'jQuery'}, - {'search': 'tipue', 'before': 'Tipue', 'related': 'Blog'} -]}; - - -// Internal strings - -var tipuesearch_string_1 = 'No title'; -var tipuesearch_string_2 = 'Showing results for'; -var tipuesearch_string_3 = 'Search instead for'; -var tipuesearch_string_4 = '1 result'; -var tipuesearch_string_5 = 'results'; -var tipuesearch_string_6 = 'Back'; -var tipuesearch_string_7 = 'More'; -var tipuesearch_string_8 = 'Nothing found.'; -var tipuesearch_string_9 = 'Common words are largely ignored.'; -var tipuesearch_string_10 = 'Search too short'; -var tipuesearch_string_11 = 'Should be one character or more.'; -var tipuesearch_string_12 = 'Should be'; -var tipuesearch_string_13 = 'characters or more.'; -var tipuesearch_string_14 = 'seconds'; -var tipuesearch_string_15 = 'Searches related to'; - - -// Internals - - -// Timer for showTime - -var startTimer = new Date().getTime(); - diff --git a/docs/landing/feedback.html b/docs/landing/feedback.html new file mode 100644 index 0000000..24c0eeb --- /dev/null +++ b/docs/landing/feedback.html @@ -0,0 +1,15 @@ +

Thank you!

+ + diff --git a/docs/pages/a.md b/docs/pages/a.md index 855ad7a..9056b4d 100644 --- a/docs/pages/a.md +++ b/docs/pages/a.md @@ -1 +1,3 @@ # Page A + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed elementum malesuada elit, et efficitur libero. Duis laoreet ac velit et consectetur. Phasellus bibendum feugiat lacus id faucibus. Nunc consequat, purus ac rutrum rutrum, libero erat ornare velit, non fringilla ante nisl a felis. Phasellus eget semper mauris, id porta enim. Integer porttitor laoreet ipsum vel dictum. Integer eu mauris eleifend, egestas enim eu, mattis purus. Vestibulum elementum lorem eu sem aliquet auctor. Phasellus at quam nunc. Sed sagittis, dolor vel vestibulum accumsan, dolor dui congue mi, id sollicitudin felis mi eget mi. Vivamus porttitor diam ac varius posuere. Praesent dapibus felis ligula, nec pharetra odio faucibus vestibulum. Mauris ac lacus tincidunt, tristique orci vel, luctus sapien. Vivamus semper nulla vel consectetur maximus. Nam non nibh bibendum, pretium enim vitae, pharetra leo. Phasellus fermentum iaculis mi, sit amet posuere libero viverra id. diff --git a/docs/pages/b.md b/docs/pages/b.md index 63fbaed..2d212dc 100644 --- a/docs/pages/b.md +++ b/docs/pages/b.md @@ -1 +1,3 @@ # Page B + +Aliquam et orci et purus feugiat pellentesque at ac sem. Curabitur porta elit in nibh vulputate elementum. Sed ex purus, facilisis ac sagittis et, dictum nec augue. Morbi purus ex, maximus id rutrum ut, maximus et lectus. Aliquam erat volutpat. Nulla facilisi. Praesent ornare massa et lorem vestibulum, at luctus ante vulputate. Quisque commodo, metus eu varius interdum, risus orci dapibus elit, id iaculis lacus metus et felis. Aenean fringilla massa vel ante sagittis, nec imperdiet ex luctus. Donec vitae arcu lorem. In sed mi eget dui pharetra hendrerit sed vel nibh. Nulla commodo neque et dolor commodo blandit. Maecenas sit amet elit justo. Vestibulum leo diam, porttitor eget ultricies nec, commodo id odio. Sed vestibulum maximus hendrerit. diff --git a/docs/pages/c.md b/docs/pages/c.md index 5cfffec..a8f0e94 100644 --- a/docs/pages/c.md +++ b/docs/pages/c.md @@ -1 +1,3 @@ # Page C + +In ipsum felis, egestas eget diam in, vulputate bibendum urna. Morbi tempor nisl eget velit interdum, eu dignissim risus consectetur. Phasellus dictum elementum dui, at elementum massa tincidunt a. Curabitur nec consequat augue, quis vestibulum eros. Duis eget nunc convallis, pulvinar diam euismod, facilisis urna. Vivamus commodo, velit quis sollicitudin tincidunt, felis mauris egestas metus, eget varius elit erat quis dolor. Nulla id tellus eu eros ultricies malesuada. Curabitur in ultrices ligula. Phasellus eget eleifend enim. In pellentesque luctus purus, sit amet volutpat odio pulvinar sed. Curabitur at ligula condimentum, tempor sapien dictum, venenatis odio. Etiam ornare orci elit, id blandit ipsum varius quis. Praesent maximus a arcu sed faucibus.