madness 0.8.6 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '059589d3e91375b3beb52ebdf2865c67df70794ab6af66fa83b78c5920d7c612'
4
- data.tar.gz: '09b618f48a2980b7a2cfa83f124aabf04c475a917159aa9a1d54fb187043edbe'
3
+ metadata.gz: d3199e7003a86f77e67b7ff3baec33a2edd12538c5c09c703be48e8fe92ea9e1
4
+ data.tar.gz: 4415b0ba5c2d5b4666cee26f528e15f05de02e7c6de660ae674a2ed8edd97b6a
5
5
  SHA512:
6
- metadata.gz: 110284469f241455afa9fd2b9b83fe0c12f2aa6e566a53bd0193000a25c3a8b064eaceec471079bb810918765bab45c42d65e9cd8bd8f452a4058e9281ef7109
7
- data.tar.gz: cc2b7df3ed3d8252814822c1dc69e048d8b0c53ff9ed7d7f5ed807e1f07808df0cf28f1a6d534bee2781248da1055fdd8f98f597e7dfb2c3a4b129e49fe1d78c
6
+ metadata.gz: d55e979365fb328a88e4794441c7c461c06f6f05297c1d2fc5c4eb5e43ea8f9d5aeefe53bcf12af751f493bcbf03d3824522914b158cff867c993f1f05b779a1
7
+ data.tar.gz: b5b46e4052ebd035859c95d66ab2f5ebc233beadd395c06e01e9621d6f9cd7e115ac677c0aa99205650b5bcdfa27524c2368bb060cfd16382d2b800e90b3a66f
data/README.md CHANGED
@@ -124,8 +124,6 @@ auto_nav: true
124
124
  highlighter: true
125
125
  line_numbers: true
126
126
  copy_code: true
127
- index: false
128
- search_limit: 100
129
127
  dtoc: Table of Contents
130
128
  theme: _theme
131
129
  open: false
@@ -139,15 +137,7 @@ $ madness create config
139
137
 
140
138
  ## Search
141
139
 
142
- Madness comes with a full text search page. To activate it, you need to
143
- generate a search index by running `madness --index` or
144
- `madness path/to/docs --index`.
145
-
146
- This will create an `_index` sub folder, and will add a new search page
147
- to your documentation server.
148
-
149
- You will need to run this command from time to time, as your
150
- documents change or new documents are added.
140
+ Madness comes with a full text search page.
151
141
 
152
142
  ## Images and Static Files
153
143
 
@@ -310,35 +310,6 @@ nav {
310
310
  .icon-search:before {
311
311
  content: '\e802'; }
312
312
 
313
- .autocomplete-suggestions {
314
- border: 1px solid #ccc;
315
- background: #fff;
316
- cursor: default;
317
- overflow: auto; }
318
-
319
- .autocomplete-suggestion {
320
- padding: 5px 10px;
321
- white-space: nowrap;
322
- overflow: hidden; }
323
-
324
- .autocomplete-no-suggestion {
325
- padding: 2px 5px; }
326
-
327
- .autocomplete-selected {
328
- background: #ddd; }
329
-
330
- .autocomplete-suggestions strong {
331
- font-weight: bold; }
332
-
333
- .autocomplete-group {
334
- padding: 2px 5px; }
335
-
336
- .autocomplete-group strong {
337
- font-weight: bold;
338
- color: #000;
339
- display: block;
340
- border-bottom: 1px solid #000; }
341
-
342
313
  * {
343
314
  box-sizing: border-box; }
344
315
 
@@ -18,12 +18,11 @@
18
18
  "_breadcrumbs.scss",
19
19
  "_nav.scss",
20
20
  "_icons.scss",
21
- "_autocomplete.scss",
22
21
  "_general.scss"
23
22
  ],
24
23
  "sourcesContent": [
25
24
  "@import \"manifest\";\n\nbody {\n max-width: 1300px;\n margin: 0 auto;\n}\n\n.main {\n padding: 0 20px 100px 20px;\n\n &:before, &:after {\n display: table;\n content: \"\";\n }\n\n &:after {\n // clear: both;\n }\n\n @include desktop {\n &.with-sidebar {\n min-height: 100vh;\n margin-left: 250px;\n }\n }\n \n &.without-sidebar {\n max-width: 980px;\n margin: 0 auto;\n }\n}\n\n",
26
- "@import \"mixins\";\n\n@import \"typography\";\n@import \"table\";\n@import \"anchor\";\n@import \"list\";\n@import \"code\";\n@import \"coderay\";\n@import \"image\";\n@import \"line\";\n@import \"keyboard\";\n@import \"search\";\n@import \"breadcrumbs\";\n@import \"nav\";\n@import \"icons\";\n@import \"autocomplete\";\n\n// Last\n@import \"general\";",
25
+ "@import \"mixins\";\n\n@import \"typography\";\n@import \"table\";\n@import \"anchor\";\n@import \"list\";\n@import \"code\";\n@import \"coderay\";\n@import \"image\";\n@import \"line\";\n@import \"keyboard\";\n@import \"search\";\n@import \"breadcrumbs\";\n@import \"nav\";\n@import \"icons\";\n\n// Last\n@import \"general\";",
27
26
  "// Mixins\n$breakpoint: 768px;\n\n@mixin mobile {\n\t@media only screen and (max-width: $breakpoint - 1) {\n\t\t@content;\n\t}\n}\n\n@mixin desktop {\n\t@media only screen and (min-width: $breakpoint) {\n\t\t@content;\n\t}\n}\n",
28
27
  "body {\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n color: #333;\n // font-family: \"Helvetica Neue\", Helvetica, \"Segoe UI\", Arial, freesans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-family: \"Segoe UI\", \"Helvetica Neue\", Helvetica,Arial, freesans, sans-serif;\n font-size: 16px;\n line-height: 1.6;\n word-wrap: break-word;\n}\n\nstrong, .strong {\n font-weight: bolder;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 1em;\n margin-bottom: 16px;\n font-weight: bold;\n line-height: 1.4;\n}\n\nh1 {\n margin: 0.67em 0;\n padding-bottom: 0.3em;\n font-size: 2.25em;\n line-height: 1.2;\n border-bottom: 1px solid #eee;\n}\n\nh2 {\n padding-bottom: 0.3em;\n font-size: 1.75em;\n line-height: 1.225;\n border-bottom: 1px solid #eee;\n}\n\nh3 {\n font-size: 1.5em;\n line-height: 1.43;\n}\n\nh4 {\n font-size: 1.25em;\n}\n\nh5 {\n font-size: 1em;\n}\n\nh6 {\n font-size: 1em;\n color: #777;\n}\n\ncode, pre, kbd {\n font-family: Consolas, \"Liberation Mono\", Menlo, Courier, monospace;\n font-size: 1em;\n}\n",
29
28
  "table {\n border-spacing: 0;\n border-collapse: collapse;\n\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n \n th {\n font-weight: bold;\n }\n\n th, td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n }\n\n tr:nth-child(2n) {\n background-color: #f8f8f8;\n }\n}\n",
@@ -38,9 +37,8 @@
38
37
  ".breadcrumbs {\n margin-top: 6px;\n border-bottom: 1px solid #ccc;\n a {\n display: inline-block;\n padding: 7px 0;\n }\n}\n",
39
38
  "nav {\n @media print {\n display: none;\n }\n\n @include mobile {\n display: none;\n }\n\n // background: #eee;\n // border-right: 1px solid #ccc;\n\n height: 100vh;\n width: 250px;\n overflow-y: auto;\n position: fixed;\n\n .icon-bar {\n border-bottom: 1px dotted #ddd;\n }\n\n a.document, span.document, .caption {\n border-bottom: 1px dotted #ddd;\n // &:hover {\n // background: #e4e4e4;\n // }\n\n display: block;\n padding: 5px 20px 5px 30px;\n }\n\n a.icon {\n display: inline-block;\n font-size: 1.5em;\n width: 50%;\n padding: 3px 20px 3px 30px;\n &.wide {\n width: 100%\n }\n // &:hover {\n // background: #e4e4e4;\n // }\n }\n\n\n &:after {\n content: \"\";\n height: 90px;\n display: block;\n }\n}\n\n\n// Nicer sidebar scrollbars\n::-webkit-scrollbar {\n width: 6px;\n}\n::-webkit-scrollbar-thumb {\n background: #ddd;\n -webkit-border-radius: 3px;\n}\n",
40
39
  "@font-face {\n font-family: 'fontello';\n src: url('../fonts/fontello.eot?68354463');\n src: url('../fonts/fontello.eot?68354463#iefix') format('embedded-opentype'),\n url('../fonts/fontello.woff2?68354463') format('woff2'),\n url('../fonts/fontello.woff?68354463') format('woff'),\n url('../fonts/fontello.ttf?68354463') format('truetype'),\n url('../fonts/fontello.svg?68354463#fontello') format('svg');\n font-weight: normal;\n font-style: normal;\n}\n \n[class^=\"icon-\"]:before, [class*=\" icon-\"]:before {\n font-family: \"fontello\";\n font-style: normal;\n font-weight: normal;\n speak: none;\n \n display: inline-block;\n text-decoration: inherit;\n width: 1em;\n margin-right: .2em;\n text-align: center;\n /* opacity: .8; */\n \n /* For safety - reset parent styles, that can break glyph codes*/\n font-variant: normal;\n text-transform: none;\n \n /* fix buttons height, for twitter bootstrap */\n line-height: 1em;\n \n /* Animation center compensation - margins should be symmetric */\n /* remove if not needed */\n margin-left: .2em;\n \n /* you can be more comfortable with increased icons size */\n /* font-size: 120%; */\n \n /* Font smoothing. That was taken from TWBS */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n \n /* Uncomment for 3D effect */\n /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */\n}\n \n.icon-export:before { content: '\\e800'; }\n.icon-home:before { content: '\\e801'; }\n.icon-search:before { content: '\\e802'; }\n",
41
- ".autocomplete-suggestions { \n border: 1px solid #ccc; \n background: #fff;\n cursor: default; \n overflow: auto; \n}\n.autocomplete-suggestion { \n padding: 5px 10px; \n white-space: nowrap; \n overflow: hidden; \n}\n.autocomplete-no-suggestion { \n padding: 2px 5px;\n}\n.autocomplete-selected { \n background: #ddd;\n}\n.autocomplete-suggestions strong { \n font-weight: bold; \n}\n.autocomplete-group { \n padding: 2px 5px; \n}\n.autocomplete-group strong { \n font-weight: bold; \n color: #000; \n display: block; \n border-bottom: 1px solid #000; \n}\n",
42
40
  "* {\n box-sizing: border-box;\n}\n\np {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\nblockquote {\n margin: 0;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n\n &>:first-child {\n margin-top: 0;\n }\n\n &>:last-child {\n margin-bottom: 0;\n }\n}\n\np, blockquote, ul, ol, dl, table, pre {\n margin-top: 0;\n margin-bottom: 16px;\n}\n\n.quiet {\n color: #777;\n}\n"
43
41
  ],
44
42
  "names": [],
45
- "mappings": "AGAA,AAAA,IAAI,CAAC;EACH,oBAAoB,EAAE,IAAI;EAC1B,wBAAwB,EAAE,IAAI;EAC9B,KAAK,EAAE,IAAI;EAEX,WAAW,EAAE,mEAAmE;EAChF,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;EAChB,SAAS,EAAE,UAAU,GACtB;;AAED,AAAA,MAAM,EAAE,O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U,EAAE,CAAC,GACd;EARH,AAUE,UAVQ,IAUL,UAAU,CAAC;IACZ,aAAa,EAAE,CAAC,GACjB;;AAGH,AAAA,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC;EACpC,UAAU,EAAE,CAAC;EACb,aAAa,EAAE,IAAI,GACpB;;AAED,AAAA,MAAM,CAAC;EACL,KAAK,EAAE,IAAI,GACZ;;AhB7BD,AAAA,IAAI,CAAC;EACH,SAAS,EAAE,MAAM;EACjB,MAAM,EAAE,MAAM,GACf;;AAED,AAAA,KAAK,CAAC;EACJ,OAAO,EAAE,iBAAiB,GAsB3B;EAvBD,AAGE,KAHG,CAGD,MAAM,EAHV,KAAK,CAGS,KAAK,CAAC;IAChB,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,EAAE,GACZ;EEHF,MAAM,mCFUH;IAbJ,AAaI,KAbC,AAaA,aAAa,CAAC;MACb,UAAU,EAAE,KAAK;MACjB,WAAW,EAAE,KAAK,GACnB,EAAA;EAhBL,AAmBE,KAnBG,AAmBF,gBAAgB,CAAC;IAChB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE,MAAM,GACf"
46
44
  }
@@ -13,7 +13,6 @@
13
13
  @import "breadcrumbs";
14
14
  @import "nav";
15
15
  @import "icons";
16
- @import "autocomplete";
17
16
 
18
17
  // Last
19
18
  @import "general";
@@ -7,16 +7,10 @@ html
7
7
  meta name="viewport" content="width=device-width, initial-scale=1"
8
8
  link href='/css/main.css' rel='stylesheet' type='text/css'
9
9
 
10
- - if nav.with_search? or config.copy_code
11
- script src="/js/vendor/jquery.min.js"
12
-
13
10
  - if config.copy_code
11
+ script src="/js/vendor/jquery.min.js"
14
12
  script src="/js/vendor/clipboard.min.js"
15
13
  script src="/js/clipboard.js"
16
14
 
17
- - if nav.with_search?
18
- script src="/js/vendor/jquery.autocomplete-min.js"
19
- script src="/js/autocomplete.js"
20
-
21
15
  body
22
16
  == yield
@@ -2,22 +2,13 @@
2
2
 
3
3
  .main class=(config.sidebar ? 'with-sidebar' : 'without-sidebar')
4
4
  form.search-form action="/_search" method="get"
5
- input.search-field.autocomplete type="text" name="q" value="#{params[:q]}" placeholder="Search" autofocus=true
5
+ input.search-field type="text" name="q" value="#{params[:q]}" placeholder="Search" autofocus=true
6
6
  input type="submit" value="Search" style='display:none'
7
7
 
8
8
  hr
9
9
 
10
10
  - if results
11
- - results.each_with_index do |result, index|
11
+ - results.each do |label, url|
12
12
  h4
13
- = index+1
14
- = ". "
15
- a href="#{result[:file]}" = result[:label]
16
-
17
- ul
18
- - if result[:highlights]
19
- - result[:highlights].each do |highlight|
20
- li.search-excerpt == highlight
21
- - else
22
- li.search-excerpt.quiet No excerpt
13
+ a href="#{url}" = label
23
14
 
@@ -65,7 +65,6 @@ module Madness
65
65
  config.port = args['--port'].to_i if args['--port']
66
66
  config.bind = args['--bind'] if args['--bind']
67
67
  config.toc = args['--toc'] if args['--toc']
68
- config.search_limit = args['--search-limit'].to_i if args['--search-limit']
69
68
  config.auth = args['--auth'] if args['--auth']
70
69
  config.auth_realm = args['--auth-realm'] if args['--auth-realm']
71
70
 
@@ -75,7 +74,6 @@ module Madness
75
74
  config.highlighter = false if args['--no-syntax']
76
75
  config.line_numbers = false if args['--no-line-numbers']
77
76
  config.copy_code = false if args['--no-copy-code']
78
- config.index = true if args['--index']
79
77
  config.open = true if args['--open']
80
78
 
81
79
  config.theme = File.expand_path(args['--theme'], config.path) if args['--theme']
@@ -83,7 +81,6 @@ module Madness
83
81
 
84
82
  # Generate index and toc, if requested by the user.
85
83
  def generate_stuff
86
- build_index if config.index
87
84
  build_toc if config.toc
88
85
  end
89
86
 
@@ -120,13 +117,6 @@ module Madness
120
117
  say "-" * 60
121
118
  end
122
119
 
123
- # Build the search index
124
- def build_index
125
- search = Search.new
126
- say_status :index, "generating #{search.index_dir}"
127
- search.build_index
128
- end
129
-
130
120
  # Generate the table of contents file
131
121
  def build_toc
132
122
  say_status :toc, "generating #{config.toc}"
@@ -60,18 +60,10 @@ Options:
60
60
  documentation path.
61
61
  (Config option: theme)
62
62
 
63
- --index
64
- Build or rebuild the index for the search page.
65
- (Config option: index)
66
-
67
63
  --toc FILE
68
64
  Generate a table of contents file.
69
65
  (Config option: toc)
70
66
 
71
- --search-limit LIMIT
72
- Maximum number of results to show on the search page [default: 100].
73
- (Config option: search_limit)
74
-
75
67
  --auth USER:PASS
76
68
  Enable basic authentication.
77
69
  (Config option: auth)
@@ -85,7 +77,7 @@ Options:
85
77
  (Config option: open)
86
78
 
87
79
  --and-quit
88
- Quit instead of running the server. Useful with --index or --toc.
80
+ Quit instead of running the server. Useful with --toc.
89
81
 
90
82
  Examples:
91
83
  madness
@@ -93,8 +85,7 @@ Examples:
93
85
  madness docs --no-auto-h1 -p 4567
94
86
  madness docs --open
95
87
  madness --no-sidebar --no-auto-nav
96
- madness --index --and-quit
97
- madness --toc "Table of Contents.md" --index --and-quit
88
+ madness --toc "Table of Contents.md" --and-quit
98
89
  madness --auth user:secret --port 4000
99
90
  madness --theme _mytheme
100
91
  madness create config
@@ -131,6 +131,7 @@ module Madness
131
131
 
132
132
  # If the document does not start with an H1 tag, add it.
133
133
  def prepend_h1
134
+ return unless doc.first_child
134
135
  return if doc.first_child.type == :header and doc.first_child.header_level == 1
135
136
  h1 = CommonMarker.render_doc("# #{title}").first_child
136
137
  doc.first_child.insert_before h1
@@ -19,7 +19,7 @@ module Madness
19
19
  end
20
20
 
21
21
  def with_search?
22
- @with_search ||= Search.new.has_index?
22
+ true
23
23
  end
24
24
 
25
25
  private
@@ -1,67 +1,44 @@
1
- require 'ferret'
2
-
3
1
  module Madness
4
2
  class Search
5
3
  include ServerHelper
6
- include Ferret
7
- include Ferret::Index
8
4
  using StringRefinements
9
5
 
10
6
  def initialize(path=nil)
11
7
  @path = path || docroot
12
8
  end
13
9
 
14
- def has_index?
15
- Dir.exist? index_dir
10
+ def index
11
+ @index ||= index!
16
12
  end
17
13
 
18
- def build_index
19
- Dir.mkdir index_dir unless Dir.exist? index_dir
20
-
21
- index = Index.new path: index_dir, create: true
22
-
23
- Dir["#{@path}/**/*.md"].each do |file|
24
- record = { file: file, content: searchable_content(file) }
25
- index << record unless skip_index? file
14
+ def search(query)
15
+ query = query.downcase
16
+ result = {}
17
+
18
+ index.each do |file, content|
19
+ file = file.remove("#{@path}/")[0...-3]
20
+ url = file_url file
21
+ label = file_label file
22
+ next unless content.include? query
23
+ result[label] = url
26
24
  end
27
25
 
28
- index.optimize()
29
- index.close()
26
+ result
30
27
  end
31
28
 
32
- def search(query)
33
- index = Index.new path: index_dir
29
+ private
34
30
 
35
- results = []
36
- index.search_each(query, limit: config.search_limit) do |doc_id, score|
37
- filename = index[doc_id][:file].sub("#{@path}/", '')[0...-3]
38
- highlights = index.highlight "content:(#{query.tr(' ',' OR ')}) ", doc_id, field: :content,
39
- pre_tag: "<strong>", post_tag: "</strong>",
40
- excerpt_length: 100
41
-
42
- results << {
43
- score: score,
44
- file: file_url(filename),
45
- label: file_label(filename),
46
- highlights: highlights
47
- }
31
+ def index!
32
+ results = {}
33
+ Dir["#{@path}/**/*.md"].sort.each do |file|
34
+ next if skip_index? file
35
+ filename = file_url(file.sub("#{@path}/", '')[0...-3]).downcase
36
+ content = File.read(file).downcase
37
+ results[file] = "#{filename} #{content}"
48
38
  end
49
-
50
- index.close()
51
39
  results
52
40
  end
53
41
 
54
- def remove_index_dir
55
- return unless Dir.exist? index_dir
56
- FileUtils.rm_r index_dir
57
- end
58
-
59
- def index_dir
60
- "#{@path}/_index"
61
- end
62
-
63
- private
64
-
65
42
  # We are going to avoid indexing of README.md when there is also an
66
43
  # index.md in the same directory, to keep behavior consistent with the
67
44
  # display logic
@@ -74,15 +51,6 @@ module Madness
74
51
  end
75
52
  end
76
53
 
77
- # This is poor-mans markdown strip.
78
- # Convert to HTML, strip tags and return plain text suitable to act as
79
- # the content for the search index.
80
- def searchable_content(file)
81
- content = File.read file
82
- content = CommonMarker.render_html content
83
- content.remove(/<\/?[^>]*>/).gsub("\n", " ")
84
- end
85
-
86
54
  def file_label(filename)
87
55
  filename
88
56
  .remove(/\/(index|README)$/)
@@ -16,17 +16,6 @@ module Madness
16
16
  }
17
17
  end
18
18
 
19
- get '/_search/autocomplete' do
20
- query = params[:query]
21
- return { suggestions: [] } if query.empty?
22
-
23
- results = Search.new.search query
24
- suggestions = results.map { |r| { value: r[:label], data: r[:file] } }
25
-
26
- response = { suggestions: suggestions }
27
- response.to_json
28
- end
29
-
30
19
  get '/*' do
31
20
  path = params[:splat].first
32
21
 
@@ -50,9 +50,7 @@ module Madness
50
50
  auto_h1: true,
51
51
  highlighter: true,
52
52
  line_numbers: true,
53
- search_limit: 100,
54
53
  copy_code: true,
55
- index: false,
56
54
  theme: nil,
57
55
  open: false,
58
56
  auto_nav: true,
@@ -10,9 +10,7 @@
10
10
  # highlighter: true
11
11
  # line_numbers: true
12
12
  # copy_code: true
13
- # index: false
14
13
  # toc: Table of Contents
15
- # search_limit: 100
16
14
  # theme: _theme
17
15
  # open: false
18
16
  # auth: false
@@ -1,3 +1,3 @@
1
1
  module Madness
2
- VERSION = "0.8.6"
2
+ VERSION = "0.9.0"
3
3
  end
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.8.6
4
+ version: 0.9.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: 2020-12-26 00:00:00.000000000 Z
11
+ date: 2020-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coderay
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.6'
69
- - !ruby/object:Gem::Dependency
70
- name: ferret
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.11'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.11'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: naturally
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -228,13 +214,10 @@ files:
228
214
  - app/public/fonts/fontello.ttf
229
215
  - app/public/fonts/fontello.woff
230
216
  - app/public/fonts/fontello.woff2
231
- - app/public/js/autocomplete.js
232
217
  - app/public/js/clipboard.js
233
218
  - app/public/js/vendor/clipboard.min.js
234
- - app/public/js/vendor/jquery.autocomplete-min.js
235
219
  - app/public/js/vendor/jquery.min.js
236
220
  - app/styles/_anchor.scss
237
- - app/styles/_autocomplete.scss
238
221
  - app/styles/_breadcrumbs.scss
239
222
  - app/styles/_code.scss
240
223
  - app/styles/_coderay.scss
@@ -299,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
282
  - !ruby/object:Gem::Version
300
283
  version: '0'
301
284
  requirements: []
302
- rubygems_version: 3.1.4
285
+ rubygems_version: 3.2.3
303
286
  signing_key:
304
287
  specification_version: 4
305
288
  summary: Instant Markdown Server
@@ -1,15 +0,0 @@
1
- $(function() {
2
- $('.autocomplete').autocomplete({
3
- serviceUrl: '/_search/autocomplete',
4
- minChars: 2,
5
- noCache: false,
6
- preventBadQueries: false,
7
- triggerSelectOnValidInput: false,
8
- autoSelectFirst: false,
9
- preserveInput: false,
10
- showNoSuggestionNotice: true,
11
- onSelect: function(suggestion) {
12
- window.location = "/" + suggestion.data;
13
- }
14
- });
15
- })
@@ -1,8 +0,0 @@
1
- /**
2
- * Ajax Autocomplete for jQuery, version 1.2.21
3
- * (c) 2014 Tomas Kirda
4
- *
5
- * Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
6
- * For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
7
- */
8
- !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(a){"use strict";function b(c,d){var e=function(){},f=this,g={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:b.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:e,onSearchComplete:e,onSearchError:e,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(b){return"string"==typeof b?a.parseJSON(b):b},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};f.element=c,f.el=a(c),f.suggestions=[],f.badQueries=[],f.selectedIndex=-1,f.currentValue=f.element.value,f.intervalId=0,f.cachedResponse={},f.onChangeInterval=null,f.onChange=null,f.isLocal=!1,f.suggestionsContainer=null,f.noSuggestionsContainer=null,f.options=a.extend({},g,d),f.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},f.hint=null,f.hintValue="",f.selection=null,f.initialize(),f.setOptions(d)}var c=function(){return{escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(a){var b=document.createElement("div");return b.className=a,b.style.position="absolute",b.style.display="none",b}}}(),d={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};b.utils=c,a.Autocomplete=b,b.formatResult=function(a,b){var d=a.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),e="("+c.escapeRegExChars(b)+")";return d.replace(new RegExp(e,"gi"),"<strong>$1</strong>")},b.prototype={killerFn:null,initialize:function(){var c,d=this,e="."+d.classes.suggestion,f=d.classes.selected,g=d.options;d.element.setAttribute("autocomplete","off"),d.killerFn=function(b){0===a(b.target).closest("."+d.options.containerClass).length&&(d.killSuggestions(),d.disableKillerFn())},d.noSuggestionsContainer=a('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),d.suggestionsContainer=b.utils.createNode(g.containerClass),c=a(d.suggestionsContainer),c.appendTo(g.appendTo),"auto"!==g.width&&c.width(g.width),c.on("mouseover.autocomplete",e,function(){d.activate(a(this).data("index"))}),c.on("mouseout.autocomplete",function(){d.selectedIndex=-1,c.children("."+f).removeClass(f)}),c.on("click.autocomplete",e,function(){d.select(a(this).data("index"))}),d.fixPositionCapture=function(){d.visible&&d.fixPosition()},a(window).on("resize.autocomplete",d.fixPositionCapture),d.el.on("keydown.autocomplete",function(a){d.onKeyPress(a)}),d.el.on("keyup.autocomplete",function(a){d.onKeyUp(a)}),d.el.on("blur.autocomplete",function(){d.onBlur()}),d.el.on("focus.autocomplete",function(){d.onFocus()}),d.el.on("change.autocomplete",function(a){d.onKeyUp(a)}),d.el.on("input.autocomplete",function(a){d.onKeyUp(a)})},onFocus:function(){var a=this;a.fixPosition(),0===a.options.minChars&&0===a.el.val().length&&a.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var a=this;a.currentRequest&&(a.currentRequest.abort(),a.currentRequest=null)},setOptions:function(b){var c=this,d=c.options;a.extend(d,b),c.isLocal=a.isArray(d.lookup),c.isLocal&&(d.lookup=c.verifySuggestionsFormat(d.lookup)),d.orientation=c.validateOrientation(d.orientation,"bottom"),a(c.suggestionsContainer).css({"max-height":d.maxHeight+"px",width:d.width+"px","z-index":d.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var a=this;a.disabled=!0,clearInterval(a.onChangeInterval),a.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var b=this,c=a(b.suggestionsContainer),d=c.parent().get(0);if(d===document.body||b.options.forceFixPosition){var e=b.options.orientation,f=c.outerHeight(),g=b.el.outerHeight(),h=b.el.offset(),i={top:h.top,left:h.left};if("auto"===e){var j=a(window).height(),k=a(window).scrollTop(),l=-k+h.top-f,m=k+j-(h.top+g+f);e=Math.max(l,m)===l?"top":"bottom"}if(i.top+="top"===e?-f:g,d!==document.body){var n,o=c.css("opacity");b.visible||c.css("opacity",0).show(),n=c.offsetParent().offset(),i.top-=n.top,i.left-=n.left,b.visible||c.css("opacity",o).hide()}"auto"===b.options.width&&(i.width=b.el.outerWidth()-2+"px"),c.css(i)}},enableKillerFn:function(){var b=this;a(document).on("click.autocomplete",b.killerFn)},disableKillerFn:function(){var b=this;a(document).off("click.autocomplete",b.killerFn)},killSuggestions:function(){var a=this;a.stopKillSuggestions(),a.intervalId=window.setInterval(function(){a.hide(),a.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var a,b=this,c=b.el.val().length,d=b.element.selectionStart;return"number"==typeof d?d===c:document.selection?(a=document.selection.createRange(),a.moveStart("character",-c),c===a.text.length):!0},onKeyPress:function(a){var b=this;if(!b.disabled&&!b.visible&&a.which===d.DOWN&&b.currentValue)return void b.suggest();if(!b.disabled&&b.visible){switch(a.which){case d.ESC:b.el.val(b.currentValue),b.hide();break;case d.RIGHT:if(b.hint&&b.options.onHint&&b.isCursorAtEnd()){b.selectHint();break}return;case d.TAB:if(b.hint&&b.options.onHint)return void b.selectHint();if(-1===b.selectedIndex)return void b.hide();if(b.select(b.selectedIndex),b.options.tabDisabled===!1)return;break;case d.RETURN:if(-1===b.selectedIndex)return void b.hide();b.select(b.selectedIndex);break;case d.UP:b.moveUp();break;case d.DOWN:b.moveDown();break;default:return}a.stopImmediatePropagation(),a.preventDefault()}},onKeyUp:function(a){var b=this;if(!b.disabled){switch(a.which){case d.UP:case d.DOWN:return}clearInterval(b.onChangeInterval),b.currentValue!==b.el.val()&&(b.findBestHint(),b.options.deferRequestBy>0?b.onChangeInterval=setInterval(function(){b.onValueChange()},b.options.deferRequestBy):b.onValueChange())}},onValueChange:function(){var b=this,c=b.options,d=b.el.val(),e=b.getQuery(d);return b.selection&&b.currentValue!==e&&(b.selection=null,(c.onInvalidateSelection||a.noop).call(b.element)),clearInterval(b.onChangeInterval),b.currentValue=d,b.selectedIndex=-1,c.triggerSelectOnValidInput&&b.isExactMatch(e)?void b.select(0):void(e.length<c.minChars?b.hide():b.getSuggestions(e))},isExactMatch:function(a){var b=this.suggestions;return 1===b.length&&b[0].value.toLowerCase()===a.toLowerCase()},getQuery:function(b){var c,d=this.options.delimiter;return d?(c=b.split(d),a.trim(c[c.length-1])):b},getSuggestionsLocal:function(b){var c,d=this,e=d.options,f=b.toLowerCase(),g=e.lookupFilter,h=parseInt(e.lookupLimit,10);return c={suggestions:a.grep(e.lookup,function(a){return g(a,b,f)})},h&&c.suggestions.length>h&&(c.suggestions=c.suggestions.slice(0,h)),c},getSuggestions:function(b){var c,d,e,f,g=this,h=g.options,i=h.serviceUrl;if(h.params[h.paramName]=b,d=h.ignoreParams?null:h.params,h.onSearchStart.call(g.element,h.params)!==!1){if(a.isFunction(h.lookup))return void h.lookup(b,function(a){g.suggestions=a.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,a.suggestions)});g.isLocal?c=g.getSuggestionsLocal(b):(a.isFunction(i)&&(i=i.call(g.element,b)),e=i+"?"+a.param(d||{}),c=g.cachedResponse[e]),c&&a.isArray(c.suggestions)?(g.suggestions=c.suggestions,g.suggest(),h.onSearchComplete.call(g.element,b,c.suggestions)):g.isBadQuery(b)?h.onSearchComplete.call(g.element,b,[]):(g.abortAjax(),f={url:i,data:d,type:h.type,dataType:h.dataType},a.extend(f,h.ajaxSettings),g.currentRequest=a.ajax(f).done(function(a){var c;g.currentRequest=null,c=h.transformResult(a,b),g.processResponse(c,b,e),h.onSearchComplete.call(g.element,b,c.suggestions)}).fail(function(a,c,d){h.onSearchError.call(g.element,b,a,c,d)}))}},isBadQuery:function(a){if(!this.options.preventBadQueries)return!1;for(var b=this.badQueries,c=b.length;c--;)if(0===a.indexOf(b[c]))return!0;return!1},hide:function(){var b=this,c=a(b.suggestionsContainer);a.isFunction(b.options.onHide)&&b.visible&&b.options.onHide.call(b.element,c),b.visible=!1,b.selectedIndex=-1,clearInterval(b.onChangeInterval),a(b.suggestionsContainer).hide(),b.signalHint(null)},suggest:function(){if(0===this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var b,c=this,d=c.options,e=d.groupBy,f=d.formatResult,g=c.getQuery(c.currentValue),h=c.classes.suggestion,i=c.classes.selected,j=a(c.suggestionsContainer),k=a(c.noSuggestionsContainer),l=d.beforeRender,m="",n=function(a){var c=a.data[e];return b===c?"":(b=c,'<div class="autocomplete-group"><strong>'+b+"</strong></div>")};return d.triggerSelectOnValidInput&&c.isExactMatch(g)?void c.select(0):(a.each(c.suggestions,function(a,b){e&&(m+=n(b,g,a)),m+='<div class="'+h+'" data-index="'+a+'">'+f(b,g)+"</div>"}),this.adjustContainerWidth(),k.detach(),j.html(m),a.isFunction(l)&&l.call(c.element,j),c.fixPosition(),j.show(),d.autoSelectFirst&&(c.selectedIndex=0,j.scrollTop(0),j.children("."+h).first().addClass(i)),c.visible=!0,void c.findBestHint())},noSuggestions:function(){var b=this,c=a(b.suggestionsContainer),d=a(b.noSuggestionsContainer);this.adjustContainerWidth(),d.detach(),c.empty(),c.append(d),b.fixPosition(),c.show(),b.visible=!0},adjustContainerWidth:function(){var b,c=this,d=c.options,e=a(c.suggestionsContainer);"auto"===d.width&&(b=c.el.outerWidth()-2,e.width(b>0?b:300))},findBestHint:function(){var b=this,c=b.el.val().toLowerCase(),d=null;c&&(a.each(b.suggestions,function(a,b){var e=0===b.value.toLowerCase().indexOf(c);return e&&(d=b),!e}),b.signalHint(d))},signalHint:function(b){var c="",d=this;b&&(c=d.currentValue+b.value.substr(d.currentValue.length)),d.hintValue!==c&&(d.hintValue=c,d.hint=b,(this.options.onHint||a.noop)(c))},verifySuggestionsFormat:function(b){return b.length&&"string"==typeof b[0]?a.map(b,function(a){return{value:a,data:null}}):b},validateOrientation:function(b,c){return b=a.trim(b||"").toLowerCase(),-1===a.inArray(b,["auto","bottom","top"])&&(b=c),b},processResponse:function(a,b,c){var d=this,e=d.options;a.suggestions=d.verifySuggestionsFormat(a.suggestions),e.noCache||(d.cachedResponse[c]=a,e.preventBadQueries&&0===a.suggestions.length&&d.badQueries.push(b)),b===d.getQuery(d.currentValue)&&(d.suggestions=a.suggestions,d.suggest())},activate:function(b){var c,d=this,e=d.classes.selected,f=a(d.suggestionsContainer),g=f.find("."+d.classes.suggestion);return f.find("."+e).removeClass(e),d.selectedIndex=b,-1!==d.selectedIndex&&g.length>d.selectedIndex?(c=g.get(d.selectedIndex),a(c).addClass(e),c):null},selectHint:function(){var b=this,c=a.inArray(b.hint,b.suggestions);b.select(c)},select:function(a){var b=this;b.hide(),b.onSelect(a)},moveUp:function(){var b=this;if(-1!==b.selectedIndex)return 0===b.selectedIndex?(a(b.suggestionsContainer).children().first().removeClass(b.classes.selected),b.selectedIndex=-1,b.el.val(b.currentValue),void b.findBestHint()):void b.adjustScroll(b.selectedIndex-1)},moveDown:function(){var a=this;a.selectedIndex!==a.suggestions.length-1&&a.adjustScroll(a.selectedIndex+1)},adjustScroll:function(b){var c=this,d=c.activate(b);if(d){var e,f,g,h=a(d).outerHeight();e=d.offsetTop,f=a(c.suggestionsContainer).scrollTop(),g=f+c.options.maxHeight-h,f>e?a(c.suggestionsContainer).scrollTop(e):e>g&&a(c.suggestionsContainer).scrollTop(e-c.options.maxHeight+h),c.options.preserveInput||c.el.val(c.getValue(c.suggestions[b].value)),c.signalHint(null)}},onSelect:function(b){var c=this,d=c.options.onSelect,e=c.suggestions[b];c.currentValue=c.getValue(e.value),c.currentValue===c.el.val()||c.options.preserveInput||c.el.val(c.currentValue),c.signalHint(null),c.suggestions=[],c.selection=e,a.isFunction(d)&&d.call(c.element,e)},getValue:function(a){var b,c,d=this,e=d.options.delimiter;return e?(b=d.currentValue,c=b.split(e),1===c.length?a:b.substr(0,b.length-c[c.length-1].length)+a):a},dispose:function(){var b=this;b.el.off(".autocomplete").removeData("autocomplete"),b.disableKillerFn(),a(window).off("resize.autocomplete",b.fixPositionCapture),a(b.suggestionsContainer).remove()}},a.fn.autocomplete=a.fn.devbridgeAutocomplete=function(c,d){var e="autocomplete";return 0===arguments.length?this.first().data(e):this.each(function(){var f=a(this),g=f.data(e);"string"==typeof c?g&&"function"==typeof g[c]&&g[c](d):(g&&g.dispose&&g.dispose(),g=new b(this,c),f.data(e,g))})}});
@@ -1,29 +0,0 @@
1
- .autocomplete-suggestions {
2
- border: 1px solid #ccc;
3
- background: #fff;
4
- cursor: default;
5
- overflow: auto;
6
- }
7
- .autocomplete-suggestion {
8
- padding: 5px 10px;
9
- white-space: nowrap;
10
- overflow: hidden;
11
- }
12
- .autocomplete-no-suggestion {
13
- padding: 2px 5px;
14
- }
15
- .autocomplete-selected {
16
- background: #ddd;
17
- }
18
- .autocomplete-suggestions strong {
19
- font-weight: bold;
20
- }
21
- .autocomplete-group {
22
- padding: 2px 5px;
23
- }
24
- .autocomplete-group strong {
25
- font-weight: bold;
26
- color: #000;
27
- display: block;
28
- border-bottom: 1px solid #000;
29
- }