madness 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/public/css/main.css +52 -35
- data/app/public/css/main.css.map +2 -2
- data/app/styles/_breadcrumbs.scss +8 -0
- data/app/styles/_general.scss +4 -0
- data/app/styles/_manifest.scss +2 -0
- data/app/styles/_nav.scss +35 -0
- data/app/styles/_search.scss +5 -3
- data/app/styles/main.scss +5 -36
- data/app/views/document.slim +1 -1
- data/app/views/search.slim +3 -1
- data/lib/madness/search.rb +4 -2
- data/lib/madness/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91073bba6282e1195778820ef4eb77520335b869
|
4
|
+
data.tar.gz: 66b12aa8b722075a8b743919cdeea3122f067ad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23a6123512688fa71015cf30850e75279740cf61c808f188c363f775bad4edf2bfa1e1a670173e10592a3ff05ab9429a353dd20321df38fef35ffa94f5b7b1b7
|
7
|
+
data.tar.gz: 189608801bd34f5bec7372fafee9062d5ef41a5cc7b63e0da652dd23d4a572f8cd714bb17708216592cc5cd1f2c2235ab22017a11d79bbbf63a37d3f1273d81c
|
data/README.md
CHANGED
data/app/public/css/main.css
CHANGED
@@ -211,40 +211,8 @@ kbd {
|
|
211
211
|
.search-field:focus {
|
212
212
|
border-color: #4078c0; }
|
213
213
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
p {
|
218
|
-
margin-top: 0;
|
219
|
-
margin-bottom: 10px; }
|
220
|
-
|
221
|
-
blockquote {
|
222
|
-
margin: 0;
|
223
|
-
padding: 0 15px;
|
224
|
-
color: #777;
|
225
|
-
border-left: 4px solid #ddd; }
|
226
|
-
blockquote > :first-child {
|
227
|
-
margin-top: 0; }
|
228
|
-
blockquote > :last-child {
|
229
|
-
margin-bottom: 0; }
|
230
|
-
|
231
|
-
p, blockquote, ul, ol, dl, table, pre {
|
232
|
-
margin-top: 0;
|
233
|
-
margin-bottom: 16px; }
|
234
|
-
|
235
|
-
body {
|
236
|
-
max-width: 1300px;
|
237
|
-
margin: 0 auto; }
|
238
|
-
|
239
|
-
main {
|
240
|
-
padding: 0 20px 100px 20px;
|
241
|
-
margin-left: 250px;
|
242
|
-
border: 1px solid #ccc;
|
243
|
-
border-width: 0 1px;
|
244
|
-
min-height: 100vh; }
|
245
|
-
main:before, main:after {
|
246
|
-
display: table;
|
247
|
-
content: ""; }
|
214
|
+
.search-excerpt {
|
215
|
+
white-space: pre-wrap; }
|
248
216
|
|
249
217
|
.breadcrumbs {
|
250
218
|
margin-top: 6px;
|
@@ -259,14 +227,21 @@ nav {
|
|
259
227
|
width: 250px;
|
260
228
|
overflow-y: auto;
|
261
229
|
position: fixed;
|
262
|
-
padding: 10px 0
|
230
|
+
padding: 10px 0;
|
263
231
|
border-right: 1px solid #eee; }
|
232
|
+
@media print {
|
233
|
+
nav {
|
234
|
+
display: none; } }
|
264
235
|
nav a, nav span {
|
265
236
|
display: block;
|
266
237
|
padding: 3px 20px 3px 30px;
|
267
238
|
margin-bottom: 4px; }
|
268
239
|
nav a:hover, nav span:hover {
|
269
240
|
background: #e4e4e4; }
|
241
|
+
nav:after {
|
242
|
+
content: "";
|
243
|
+
height: 90px;
|
244
|
+
display: block; }
|
270
245
|
|
271
246
|
::-webkit-scrollbar {
|
272
247
|
width: 6px; }
|
@@ -275,4 +250,46 @@ nav {
|
|
275
250
|
background: #ddd;
|
276
251
|
-webkit-border-radius: 3px; }
|
277
252
|
|
253
|
+
* {
|
254
|
+
box-sizing: border-box; }
|
255
|
+
|
256
|
+
p {
|
257
|
+
margin-top: 0;
|
258
|
+
margin-bottom: 10px; }
|
259
|
+
|
260
|
+
blockquote, .search-excerpt {
|
261
|
+
margin: 0;
|
262
|
+
padding: 0 15px;
|
263
|
+
color: #777;
|
264
|
+
border-left: 4px solid #ddd; }
|
265
|
+
blockquote > :first-child, .search-excerpt > :first-child {
|
266
|
+
margin-top: 0; }
|
267
|
+
blockquote > :last-child, .search-excerpt > :last-child {
|
268
|
+
margin-bottom: 0; }
|
269
|
+
|
270
|
+
p, blockquote, .search-excerpt, ul, ol, dl, table, pre {
|
271
|
+
margin-top: 0;
|
272
|
+
margin-bottom: 16px; }
|
273
|
+
|
274
|
+
.quiet {
|
275
|
+
color: #777; }
|
276
|
+
|
277
|
+
body {
|
278
|
+
max-width: 1300px;
|
279
|
+
margin: 0 auto; }
|
280
|
+
|
281
|
+
.main {
|
282
|
+
padding: 0 20px 100px 20px;
|
283
|
+
margin-left: 250px;
|
284
|
+
border: 1px solid #ccc;
|
285
|
+
border-width: 0 1px;
|
286
|
+
min-height: 100vh; }
|
287
|
+
@media print {
|
288
|
+
.main {
|
289
|
+
margin-left: 0;
|
290
|
+
border-width: 0; } }
|
291
|
+
.main:before, .main:after {
|
292
|
+
display: table;
|
293
|
+
content: ""; }
|
294
|
+
|
278
295
|
/*# sourceMappingURL=main.css.map */
|
data/app/public/css/main.css.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"mappings": "AAAA,IAAK;EACH,oBAAoB,EAAE,IAAI;EAC1B,wBAAwB,EAAE,IAAI;EAC9B,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,8HAA8H;EAC3I,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;EAChB,SAAS,EAAE,UAAU;;AAGvB,eAAgB;EACd,WAAW,EAAE,MAAM;;AAGrB,sBAAuB;EACrB,UAAU,EAAE,GAAG;EACf,aAAa,EAAE,IAAI;EACnB,WAAW,EAAE,IAAI;EACjB,WAAW,EAAE,GAAG;;AAGlB,EAAG;EACD,MAAM,EAAE,QAAQ;EAChB,cAAc,EAAE,KAAK;EACrB,SAAS,EAAE,MAAM;EAC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AAY,EAAE,IAAI;EAElB,SAAS,EAAE,IAAI;EACf,UAAU,EAAE,WAAW;EACvB,gBAAgB,EAAE,IAAI;;ACLxB,EAAG;EACD,UAAU,EAAE,WAAW;EAEvB,QAAQ,EAAE,OAAO;EACjB,MAAM,EAAE,CAAC;EAET,QAAQ,EAAE,MAAM;EAEhB,MAAM,EAAE,CAAC;EACT,aAAa,EAAE,cAAc;EAE7B,MAAM,EAAE,GAAG;EACX,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,MAAM;EACd,gBAAgB,EAAE,OAAO;EAGzB,mBAAmB,EAAE,IAAI;EAEzB,UAAU;IACR,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,EAAE;EAEb,SAAS;IACP,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,EAAE;;AC1Bf,GAAI;EACF,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,OAAO;EAChB,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,IAAI;EACjB,KAAK,EAAE,IAAI;EACX,cAAc,EAAE,MAAM;EACtB,gBAAgB,EAAE,OAAO;EACzB,MAAM,EAAE,cAAc;EACtB,mBAAmB,EAAE,IAAI;EACzB,aAAa,EAAE,GAAG;EAClB,UAAU,EAAE,mBAAmB;;ACXjC,YAAa;EACX,aAAa,EAAE,IAAI;;AAGrB,aAAc;EACZ,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,QAAQ;EACjB,SAAS,EAAE,KAAK;EAChB,KAAK,EAAE,GAAG;EACV,SAAS,EAAE,KAAK;EAEhB,MAAM,EAAE,cAAc;EACtB,aAAa,EAAE,GAAG;EAElB,mBAAQ;IACN,YAAY,EAAE,OAAO;;
|
4
|
-
"sources": ["../../styles/_typography.scss","../../styles/_table.scss","../../styles/_anchor.scss","../../styles/_list.scss","../../styles/_code.scss","../../styles/_coderay.scss","../../styles/_image.scss","../../styles/_line.scss","../../styles/_keyboard.scss","../../styles/_search.scss","../../styles/_general.scss","../../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Gf,uDAAc;IACZ,aAAa,EAAE,CAAC;;AAIpB,sDAAsC;EACpC,UAAU,EAAE,CAAC;EACb,aAAa,EAAE,IAAI;;AAGrB,MAAO;EACL,KAAK,EAAE,IAAI;;AC5Bb,IAAK;EACH,SAAS,EAAE,MAAM;EACjB,MAAM,EAAE,MAAM;;AAGhB,KAAM;EAKJ,OAAO,EAAE,iBAAiB;EAC1B,WAAW,EAAE,KAAK;EAClB,MAAM,EAAC,cAAc;EACrB,YAAY,EAAE,KAAK;EACnB,UAAU,EAAE,KAAK;EARjB,YAAa;IADf,KAAM;MAEF,WAAW,EAAE,CAAC;MACd,YAAY,EAAE,CAAC;EAQjB,yBAAkB;IAChB,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,EAAE",
|
4
|
+
"sources": ["../../styles/_typography.scss","../../styles/_table.scss","../../styles/_anchor.scss","../../styles/_list.scss","../../styles/_code.scss","../../styles/_coderay.scss","../../styles/_image.scss","../../styles/_line.scss","../../styles/_keyboard.scss","../../styles/_search.scss","../../styles/_breadcrumbs.scss","../../styles/_nav.scss","../../styles/_general.scss","../../styles/main.scss"],
|
5
5
|
"names": [],
|
6
6
|
"file": "main.css"
|
7
7
|
}
|
data/app/styles/_general.scss
CHANGED
data/app/styles/_manifest.scss
CHANGED
@@ -0,0 +1,35 @@
|
|
1
|
+
nav {
|
2
|
+
@media print {
|
3
|
+
display: none;
|
4
|
+
}
|
5
|
+
background: #eee;
|
6
|
+
height: 100vh;
|
7
|
+
width: 250px;
|
8
|
+
overflow-y: auto;
|
9
|
+
position: fixed;
|
10
|
+
padding: 10px 0;
|
11
|
+
border-right: 1px solid #eee;
|
12
|
+
a, span {
|
13
|
+
&:hover {
|
14
|
+
background: #e4e4e4;
|
15
|
+
}
|
16
|
+
display: block;
|
17
|
+
padding: 3px 20px 3px 30px;
|
18
|
+
margin-bottom: 4px;
|
19
|
+
}
|
20
|
+
&:after {
|
21
|
+
content: "";
|
22
|
+
height: 90px;
|
23
|
+
display: block;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
// Nicer sidebar scrollbars
|
29
|
+
::-webkit-scrollbar {
|
30
|
+
width: 6px;
|
31
|
+
}
|
32
|
+
::-webkit-scrollbar-thumb {
|
33
|
+
background: #ddd;
|
34
|
+
-webkit-border-radius: 3px;
|
35
|
+
}
|
data/app/styles/_search.scss
CHANGED
data/app/styles/main.scss
CHANGED
@@ -5,7 +5,11 @@ body {
|
|
5
5
|
margin: 0 auto;
|
6
6
|
}
|
7
7
|
|
8
|
-
main {
|
8
|
+
.main {
|
9
|
+
@media print {
|
10
|
+
margin-left: 0;
|
11
|
+
border-width: 0;
|
12
|
+
}
|
9
13
|
padding: 0 20px 100px 20px;
|
10
14
|
margin-left: 250px;
|
11
15
|
border:1px solid #ccc;
|
@@ -22,38 +26,3 @@ main {
|
|
22
26
|
}
|
23
27
|
}
|
24
28
|
|
25
|
-
.breadcrumbs {
|
26
|
-
margin-top: 6px;
|
27
|
-
border-bottom: 1px solid #ccc;
|
28
|
-
a {
|
29
|
-
display: inline-block;
|
30
|
-
padding: 7px 0;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
nav {
|
35
|
-
background: #eee;
|
36
|
-
height: 100vh;
|
37
|
-
width: 250px;
|
38
|
-
overflow-y: auto;
|
39
|
-
position: fixed;
|
40
|
-
padding: 10px 0 100px 0;
|
41
|
-
border-right: 1px solid #eee;
|
42
|
-
a, span {
|
43
|
-
&:hover {
|
44
|
-
background: #e4e4e4;
|
45
|
-
}
|
46
|
-
display: block;
|
47
|
-
padding: 3px 20px 3px 30px;
|
48
|
-
margin-bottom: 4px;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
// Nicer sidebar scrollbars
|
53
|
-
::-webkit-scrollbar {
|
54
|
-
width: 6px;
|
55
|
-
}
|
56
|
-
::-webkit-scrollbar-thumb {
|
57
|
-
background: #ddd;
|
58
|
-
-webkit-border-radius: 3px;
|
59
|
-
}
|
data/app/views/document.slim
CHANGED
data/app/views/search.slim
CHANGED
data/lib/madness/search.rb
CHANGED
@@ -30,11 +30,13 @@ module Madness
|
|
30
30
|
index = Index.new path: index_dir
|
31
31
|
|
32
32
|
results = []
|
33
|
-
|
33
|
+
index.search_each(query, limit: 20) do |doc_id, score|
|
34
34
|
filename = index[doc_id][:file].sub("#{@path}/", '')[0...-3]
|
35
35
|
highlights = index.highlight "content:(#{query.tr(' ',' OR ')}) ", doc_id, field: :content,
|
36
|
-
pre_tag: "
|
36
|
+
pre_tag: "", post_tag: "",
|
37
37
|
excerpt_length: 100
|
38
|
+
|
39
|
+
highlights.map! { |excerpt| CGI.escapeHTML excerpt } if highlights
|
38
40
|
|
39
41
|
results << {
|
40
42
|
score: score,
|
data/lib/madness/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -274,6 +274,7 @@ files:
|
|
274
274
|
- app/public/css/main.css.map
|
275
275
|
- app/public/favicon.ico
|
276
276
|
- app/styles/_anchor.scss
|
277
|
+
- app/styles/_breadcrumbs.scss
|
277
278
|
- app/styles/_code.scss
|
278
279
|
- app/styles/_coderay.scss
|
279
280
|
- app/styles/_general.scss
|
@@ -282,6 +283,7 @@ files:
|
|
282
283
|
- app/styles/_line.scss
|
283
284
|
- app/styles/_list.scss
|
284
285
|
- app/styles/_manifest.scss
|
286
|
+
- app/styles/_nav.scss
|
285
287
|
- app/styles/_search.scss
|
286
288
|
- app/styles/_table.scss
|
287
289
|
- app/styles/_typography.scss
|