Browse files

update tipue search content

  • Loading branch information...
Nick Featch Nick Featch
Nick Featch authored and Nick Featch committed Mar 16, 2018
1 parent 2eb001b commit 7948c060701dd98820c87b2a264be0fc8a4aaef1
Showing with 28 additions and 8 deletions.
  1. +1 −1 project.clj
  2. +24 −0 resources/tipuesearch_set.js
  3. +2 −6 src-clj/silk/cli/io.clj
  4. +1 −1 src-clj/silk/core/transform/postprocess.clj
@@ -1,4 +1,4 @@
(defproject org.silkyweb/silk "0.12.0"
(defproject org.silkyweb/silk "0.13.0"
:description "Silk static and dynamic publishing toolkit."
:source-paths ["src-clj" "src-cljc"]
:min-lein-version "2.0.0"
@@ -0,0 +1,24 @@
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"];
var tipuesearch_replace = {'words': []};
var tipuesearch_weight = {'weight': []};
var tipuesearch_stem = {'words': []};
var tipuesearch_related = {'searches': []};
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';
var startTimer = new Date().getTime();
@@ -122,12 +122,8 @@
(let [path (str (se/site-path project) "resource" (do/fs) "js" (do/fs))
file (str path "tipuesearch_content.js")]
(.mkdirs (io/file path))
(spit file (str
"var tipuesearch=" (json/write-str tp)
";var tipuedrop=tipuesearch;"
"var tipuesearch_stop_words = [\"and\", \"be\", \"by\", \"do\", \"for\", \"he\", \"how\", \"if\", \"is\", \"it\", \"my\", \"not\", \"of\", \"or\", \"the\", \"to\", \"up\", \"what\", \"when\"];"
"var tipuesearch_replace = {\"words\": []};"
"var tipuesearch_stem = {\"words\": []};")))))
(spit file (str "var tipuesearch=" (json/write-str tp) ";"
(slurp (io/resource "tipuesearch_set.js")))))))
(defn store-project-dir
"Writes the current project path and time to the central store."
@@ -61,4 +61,4 @@
{:title (get-title nav path node)
:text (escaped (condensed (text node)))
:tags ""
:loc (get-location path node)})))}))
:url (get-location path node)})))}))

0 comments on commit 7948c06

Please sign in to comment.