madness 1.2.4 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +38 -16
  3. data/app/public/css/main.css +652 -401
  4. data/app/public/css/main.css.map +17 -19
  5. data/app/public/js/theme.js +81 -0
  6. data/app/public/js/vendor/mermaid.min.js +2223 -847
  7. data/app/styles/_anchor.scss +11 -3
  8. data/app/styles/_breadcrumbs.scss +8 -1
  9. data/app/styles/_code.scss +26 -8
  10. data/app/styles/_footnotes.scss +29 -0
  11. data/app/styles/_general.scss +6 -3
  12. data/app/styles/_image.scss +18 -0
  13. data/app/styles/_keyboard.scss +6 -4
  14. data/app/styles/_manifest.scss +1 -2
  15. data/app/styles/_nav.scss +200 -16
  16. data/app/styles/_pandoc_code.scss +55 -51
  17. data/app/styles/_rouge.scss +57 -211
  18. data/app/styles/_scrollbar.scss +17 -3
  19. data/app/styles/_search.scss +20 -8
  20. data/app/styles/_table.scss +6 -5
  21. data/app/styles/_typography.scss +44 -16
  22. data/app/styles/_variables.scss +216 -35
  23. data/app/views/_icon.slim +23 -0
  24. data/app/views/_mobile_search.slim +1 -1
  25. data/app/views/_nav.slim +18 -8
  26. data/app/views/_nav_tree.slim +13 -0
  27. data/app/views/layout.slim +26 -1
  28. data/lib/madness/directory.rb +8 -0
  29. data/lib/madness/document.rb +1 -0
  30. data/lib/madness/inline_table_of_contents.rb +1 -0
  31. data/lib/madness/item.rb +2 -0
  32. data/lib/madness/markdown_document.rb +1 -0
  33. data/lib/madness/navigation.rb +25 -0
  34. data/lib/madness/rendering/pandoc.rb +2 -1
  35. data/lib/madness/rendering/redcarpet_custom.rb +6 -1
  36. data/lib/madness/search.rb +1 -0
  37. data/lib/madness/server.rb +1 -1
  38. data/lib/madness/settings.rb +3 -3
  39. data/lib/madness/templates/madness.yml +7 -2
  40. data/lib/madness/version.rb +1 -1
  41. metadata +10 -20
  42. data/app/public/font/fontello.eot +0 -0
  43. data/app/public/font/fontello.svg +0 -16
  44. data/app/public/font/fontello.ttf +0 -0
  45. data/app/public/font/fontello.woff +0 -0
  46. data/app/public/font/fontello.woff2 +0 -0
  47. data/app/styles/_fontello.scss +0 -59
  48. data/lib/madness/refinements/hash_refinements.rb +0 -14
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
@@ -111,22 +111,16 @@ dependencies:
111
111
  name: puma
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '5.1'
117
- - - "<"
114
+ - - "~>"
118
115
  - !ruby/object:Gem::Version
119
- version: '7'
116
+ version: '7.1'
120
117
  type: :runtime
121
118
  prerelease: false
122
119
  version_requirements: !ruby/object:Gem::Requirement
123
120
  requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- version: '5.1'
127
- - - "<"
121
+ - - "~>"
128
122
  - !ruby/object:Gem::Version
129
- version: '7'
123
+ version: '7.1'
130
124
  - !ruby/object:Gem::Dependency
131
125
  name: rackup
132
126
  requirement: !ruby/object:Gem::Requirement
@@ -234,19 +228,14 @@ files:
234
228
  - app/public/css/main.css
235
229
  - app/public/css/main.css.map
236
230
  - app/public/favicon.ico
237
- - app/public/font/fontello.eot
238
- - app/public/font/fontello.svg
239
- - app/public/font/fontello.ttf
240
- - app/public/font/fontello.woff
241
- - app/public/font/fontello.woff2
242
231
  - app/public/js/clipboard.js
232
+ - app/public/js/theme.js
243
233
  - app/public/js/vendor/clipboard.min.js
244
234
  - app/public/js/vendor/jquery.min.js
245
235
  - app/public/js/vendor/mermaid.min.js
246
236
  - app/styles/_anchor.scss
247
237
  - app/styles/_breadcrumbs.scss
248
238
  - app/styles/_code.scss
249
- - app/styles/_fontello.scss
250
239
  - app/styles/_footnotes.scss
251
240
  - app/styles/_general.scss
252
241
  - app/styles/_image.scss
@@ -266,9 +255,11 @@ files:
266
255
  - app/styles/_variables.scss
267
256
  - app/styles/main.scss
268
257
  - app/views/_breadcrumbs.slim
258
+ - app/views/_icon.slim
269
259
  - app/views/_index_nav.slim
270
260
  - app/views/_mobile_search.slim
271
261
  - app/views/_nav.slim
262
+ - app/views/_nav_tree.slim
272
263
  - app/views/document.slim
273
264
  - app/views/layout.slim
274
265
  - app/views/search.slim
@@ -289,7 +280,6 @@ files:
289
280
  - lib/madness/markdown_document.rb
290
281
  - lib/madness/navigation.rb
291
282
  - lib/madness/refinements/array_refinements.rb
292
- - lib/madness/refinements/hash_refinements.rb
293
283
  - lib/madness/refinements/string_refinements.rb
294
284
  - lib/madness/rendering/handler.rb
295
285
  - lib/madness/rendering/pandoc.rb
@@ -320,14 +310,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
320
310
  requirements:
321
311
  - - ">="
322
312
  - !ruby/object:Gem::Version
323
- version: '3.1'
313
+ version: '3.2'
324
314
  required_rubygems_version: !ruby/object:Gem::Requirement
325
315
  requirements:
326
316
  - - ">="
327
317
  - !ruby/object:Gem::Version
328
318
  version: '0'
329
319
  requirements: []
330
- rubygems_version: 3.6.9
320
+ rubygems_version: 4.0.3
331
321
  specification_version: 4
332
322
  summary: Instant Markdown Server
333
323
  test_files: []
Binary file
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>Copyright (C) 2023 by original authors @ fontello.com</metadata>
5
- <defs>
6
- <font id="fontello" horiz-adv-x="1000" >
7
- <font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
- <missing-glyph horiz-adv-x="1000" />
9
- <glyph glyph-name="home" unicode="&#xe806;" d="M0 340q-2 16 21 37l381 351q23 22 57 22t56-22l381-351q23-21 20-37t-30-15h-91v-305q0-32-23-55t-55-23h-517q-32 0-55 23t-23 55v305h-92q-27 0-30 15z" horiz-adv-x="916.5" />
10
-
11
- <glyph glyph-name="copy" unicode="&#xf24d;" d="M929-61v607q0 8-6 13t-12 5h-607q-8 0-13-5t-5-13v-607q0-7 5-12t13-6h607q7 0 12 6t6 12z m71 607v-607q0-37-26-63t-63-26h-607q-37 0-63 26t-27 63v607q0 37 27 64t63 26h607q37 0 63-26t26-64z m-214 215v-90h-72v90q0 7-5 12t-13 6h-607q-7 0-12-6t-6-12v-607q0-8 6-13t12-5h90v-72h-90q-36 0-63 27t-26 63v607q0 37 26 63t63 26h607q37 0 64-26t26-63z" horiz-adv-x="1000" />
12
-
13
- <glyph glyph-name="search" unicode="&#xf50d;" d="M11 375q-23 87 0 173t87 150q48 49 110 74t128 25q65 0 127-25t110-74q52-52 77-119t21-137-36-132q28-8 49-29l174-173q35-35 35-85t-35-85q-35-35-85-35t-85 35l-173 174q-22 20-30 49-70-35-149-35-66 0-128 25t-110 73q-64 64-87 151z m101 86q0-93 65-158 66-65 159-65 92 0 157 65t66 158-66 158q-66 66-157 66-92 0-159-66-65-65-65-158z" horiz-adv-x="892.6" />
14
- </font>
15
- </defs>
16
- </svg>
Binary file
Binary file
Binary file
@@ -1,59 +0,0 @@
1
- @font-face {
2
- font-family: 'fontello';
3
- src: url('../font/fontello.eot?19183580');
4
- src: url('../font/fontello.eot?19183580#iefix') format('embedded-opentype'),
5
- url('../font/fontello.woff2?19183580') format('woff2'),
6
- url('../font/fontello.woff?19183580') format('woff'),
7
- url('../font/fontello.ttf?19183580') format('truetype'),
8
- url('../font/fontello.svg?19183580#fontello') format('svg');
9
- font-weight: normal;
10
- font-style: normal;
11
- }
12
- /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
13
- /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
14
- /*
15
- @media screen and (-webkit-min-device-pixel-ratio:0) {
16
- @font-face {
17
- font-family: 'fontello';
18
- src: url('../font/fontello.svg?19183580#fontello') format('svg');
19
- }
20
- }
21
- */
22
- [class^="icon-"]:before, [class*=" icon-"]:before {
23
- font-family: "fontello";
24
- font-style: normal;
25
- font-weight: normal;
26
- speak: never;
27
-
28
- display: inline-block;
29
- text-decoration: inherit;
30
- width: 1em;
31
- margin-right: .2em;
32
- text-align: center;
33
- /* opacity: .8; */
34
-
35
- /* For safety - reset parent styles, that can break glyph codes*/
36
- font-variant: normal;
37
- text-transform: none;
38
-
39
- /* fix buttons height, for twitter bootstrap */
40
- line-height: 1em;
41
-
42
- /* Animation center compensation - margins should be symmetric */
43
- /* remove if not needed */
44
- margin-left: .2em;
45
-
46
- /* you can be more comfortable with increased icons size */
47
- /* font-size: 120%; */
48
-
49
- /* Font smoothing. That was taken from TWBS */
50
- -webkit-font-smoothing: antialiased;
51
- -moz-osx-font-smoothing: grayscale;
52
-
53
- /* Uncomment for 3D effect */
54
- /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
55
- }
56
-
57
- .icon-home:before { content: '\e806'; } /* '' */
58
- .icon-copy:before { content: '\f24d'; } /* '' */
59
- .icon-search:before { content: '\f50d'; } /* '' */
@@ -1,14 +0,0 @@
1
- module Madness
2
- module HashRefinements
3
- refine Hash do
4
- def symbolize_keys
5
- clone.symbolize_keys!
6
- end
7
-
8
- def symbolize_keys!
9
- keys.each { |key| self[(key.to_sym rescue key) || key] = delete key }
10
- self
11
- end
12
- end
13
- end
14
- end