madness 0.9.4 → 0.9.7

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: 9954342312c1b0fcceffa8753071f6da48f619b7c25b5a007d5c62f50188e88d
4
- data.tar.gz: 8687f6f8a42ee63e3c25c14193c82e5ec7de611dd066f326814218c7ae16b498
3
+ metadata.gz: 69195aff3d6fef7ddc0a794ee72312d62c34ae6b16a8a4b68a87f58034ed87c3
4
+ data.tar.gz: a09db9c0a28611c2a5d10d7d5f92f608843eb008e36f86a1695c675edace8e1b
5
5
  SHA512:
6
- metadata.gz: 3cdad49579a55393e76fd8e4ffc7ddd8eb68621a4a0d07e5876d4b5ce396e274dd5b7f3d02b631ac1287b474c81250de92882a291fa404d617cd37a4ec880c1c
7
- data.tar.gz: 56e641741fcba7b549337cfd9659548b930ab25291a3fa363f8f084429fb0ba3a8127f288f76412276807debb3cdc7562ca5c6c172a5a2151b27265b72b66323
6
+ metadata.gz: 50cd43992dc42d0753888454efda36bbb85be1c4dabfb77891ab86e881408989c7f1710522ed24c266098d58e8ed71ac53298e3168f76944727cb5b23f646c66
7
+ data.tar.gz: 0c6233bb17ba8b5cc1e783ed508189b3fa928bca5ac56ab06935f27ca7ad8a99f9a34316c03d21e3aa20f99bfdc2de600344efc36599e2bdbbfa906c116b19c3
data/README.md CHANGED
@@ -26,13 +26,13 @@
26
26
  * [Search](#search)
27
27
  * [Images and Static Files](#images-and-static-files)
28
28
  * [Automatic H1](#automatic-h1)
29
+ * [Shortlinks](#shortlinks)
29
30
  * [Table of Contents Generation](#table-of-contents-generation)
30
31
  * [Hidden Directories](#hidden-directories)
31
32
  * [Controlling Sort Order](#controlling-sort-order)
32
33
  * [Displaying Additional File Types](#displaying-additional-file-types)
33
34
  * [Basic Authentication](#basic-authentication)
34
35
  * [Customizing Theme](#customizing-theme)
35
- * [Forcing HTTPS Connection](#forcing-https-connection)
36
36
  * [Docker Image](#docker-image)
37
37
 
38
38
  ## Install
@@ -43,6 +43,13 @@
43
43
  $ gem install madness
44
44
  ```
45
45
 
46
+ **Using Homebrew:**
47
+
48
+ ```shell
49
+ $ brew install brew-gem
50
+ $ brew gem install madness
51
+ ```
52
+
46
53
  **Using Docker:**
47
54
 
48
55
  ```shell
@@ -64,6 +71,7 @@ searching for local, markdown based documentation directories.
64
71
  - Automatic generation of navigation sidebar.
65
72
  - Automatic generation of Table of Contents (site-wide and inline).
66
73
  - Can optionally show additional file types in the navigation menu (e.g. PDF files).
74
+ - Optional support for `[[Short Link]]` syntax.
67
75
 
68
76
  ## Usage
69
77
 
@@ -145,6 +153,9 @@ line_numbers: true
145
153
  # enable the copy to clipboard icon for code snippets
146
154
  copy_code: true
147
155
 
156
+ # convert [[Links]] to [Links](Links)
157
+ shortlinks: false
158
+
148
159
  # generate a table of contents file with this name, for example:
149
160
  # toc: Table of Contents
150
161
  toc: ~
@@ -210,6 +221,13 @@ the path relative to the homepage:
210
221
  If your markdown document does not start with a level 1 heading, it
211
222
  will be automatically added based on the file name.
212
223
 
224
+ ## Shortlinks
225
+
226
+ When the `shortlinks` option is enabled, you may use a shorthand syntax for
227
+ specifying internal links, where `[[Anything]]` will be converted to
228
+ `[Anything](Anything)`, which will then be rendered as an internal link to a
229
+ file or a directory in the same directory as the file itself.
230
+
213
231
  ## Table of Contents Generation
214
232
 
215
233
  ### Site-wide
@@ -327,15 +345,6 @@ If you are looking to implement a smaller CSS change, follow these steps:
327
345
  Note that this functionality is not guaranteed to stay as is in future
328
346
  versions of madness.
329
347
 
330
- ## Forcing HTTPS Connection
331
-
332
- To have Madness redirect HTTP traffic to HTTPS, set this environment
333
- variable:
334
-
335
- ```shell
336
- $ export MADNESS_FORCE_SSL=1
337
- ```
338
-
339
348
  ## Docker Image
340
349
 
341
350
  Madness server is also available as a docker image.
@@ -351,7 +360,7 @@ You may create an alias for convenience:
351
360
 
352
361
  ```shell
353
362
  $ alias madness='docker run --rm -it -v $PWD:/docs -p 3000:3000 dannyben/madness'
354
- $ medness --help
363
+ $ madness --help
355
364
  ```
356
365
 
357
366
  For more information about the docker image, see:
@@ -208,6 +208,22 @@ kbd {
208
208
  border-radius: 3px;
209
209
  box-shadow: inset 0 -1px 0 #bbb; }
210
210
 
211
+ @media print {
212
+ #mobile-search {
213
+ display: none; } }
214
+
215
+ @media only screen and (min-width: 768px) {
216
+ #mobile-search {
217
+ display: none; } }
218
+
219
+ @media only screen and (max-width: 767px) {
220
+ #mobile-search {
221
+ position: fixed;
222
+ font-size: 30px;
223
+ top: 0px;
224
+ right: 10px;
225
+ opacity: 0.5; } }
226
+
211
227
  .search-form {
212
228
  margin-bottom: 20px;
213
229
  margin-top: 20px; }
@@ -33,12 +33,12 @@
33
33
  "img {\n border-style: none;\n\n max-width: 100%;\n box-sizing: content-box;\n background-color: #fff;\n}\n",
34
34
  "hr {\n box-sizing: content-box;\n // height: 0;\n overflow: visible;\n height: 0;\n // margin: 15px 0;\n overflow: hidden;\n // background: transparent;\n border: 0;\n border-bottom: 1px solid #ddd;\n\n height: 4px;\n padding: 0;\n margin: 16px 0;\n background-color: #e7e7e7;\n // border: 0 none;\n\n border-bottom-color: #eee;\n\n &::before {\n display: table;\n content: \"\";\n }\n &::after {\n display: table;\n clear: both;\n content: \"\";\n }\n}",
35
35
  "kbd {\n display: inline-block;\n padding: 3px 5px;\n font-size: 11px;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n}\n\n",
36
- ".search-form {\n margin-bottom: 20px;\n margin-top: 20px;\n}\n\n.search-field {\n outline: none;\n padding: 8px 12px;\n font-size: 1.5em;\n width: 50%;\n min-width: 200px;\n width: 100%;\n\n border: #ccc 1px solid;\n border-radius: 3px;\n\n &:focus {\n border-color: #4078c0;\n }\n}\n",
36
+ "#mobile-search {\n @media print {\n display: none;\n }\n\n @include desktop {\n display: none;\n }\n\n @include mobile {\n position: fixed;\n font-size: 30px;\n top: 0px;\n right: 10px;\n opacity: 0.5;\n }\n}\n\n.search-form {\n margin-bottom: 20px;\n margin-top: 20px;\n}\n\n.search-field {\n outline: none;\n padding: 8px 12px;\n font-size: 1.5em;\n width: 50%;\n min-width: 200px;\n width: 100%;\n\n border: #ccc 1px solid;\n border-radius: 3px;\n\n &:focus {\n border-color: #4078c0;\n }\n}\n",
37
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",
38
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",
39
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",
40
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"
41
41
  ],
42
42
  "names": [],
43
- "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,OAAO,CAAC;EACd,WAAW,EAAE,MAAM,GACpB;;AAED,AAAA,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;EACrB,UAAU,EAAE,GAAG;EACf,aAAa,EAAE,IA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AO,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"
44
44
  }
@@ -1,3 +1,21 @@
1
+ #mobile-search {
2
+ @media print {
3
+ display: none;
4
+ }
5
+
6
+ @include desktop {
7
+ display: none;
8
+ }
9
+
10
+ @include mobile {
11
+ position: fixed;
12
+ font-size: 30px;
13
+ top: 0px;
14
+ right: 10px;
15
+ opacity: 0.5;
16
+ }
17
+ }
18
+
1
19
  .search-form {
2
20
  margin-bottom: 20px;
3
21
  margin-top: 20px;
@@ -0,0 +1,2 @@
1
+ a#mobile-search href="/_search"
2
+ i.icon-search
@@ -1,3 +1,4 @@
1
+ == slim :_mobile_search if nav.with_search?
1
2
  == slim :_nav, locals: { nav: nav } if config.sidebar
2
3
 
3
4
  .main class=(config.sidebar ? 'with-sidebar' : 'without-sidebar')
@@ -9,3 +10,5 @@
9
10
  hr
10
11
  == slim :_index_nav, locals: { nav: nav }
11
12
 
13
+
14
+
data/bin/madness CHANGED
@@ -1,4 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'madness'
4
- Madness::CommandLine.instance.execute ARGV
4
+ require 'colsole'
5
+ include Colsole
6
+
7
+ begin
8
+ Madness::CommandLine.instance.execute ARGV
9
+ rescue => e
10
+ puts e.backtrace.reverse if ENV['DEBUG']
11
+ say! "!undred!#{e.class}!txtrst!\n#{e.message}"
12
+ exit 1
13
+ end
@@ -12,9 +12,8 @@ module Madness
12
12
 
13
13
  # Returns a URL based on host, port and MADNESS_FORCE_SSL.
14
14
  def server_url
15
- scheme = ENV['MADNESS_FORCE_SSL'] ? 'https' : 'http'
16
15
  url_host = ['0.0.0.0', '127.0.0.1'].include?(host) ? 'localhost' : host
17
- "#{scheme}://#{url_host}:#{port}"
16
+ "http://#{url_host}:#{port}"
18
17
  end
19
18
 
20
19
  # Returns true if the server is running. Will attempt to connect
@@ -74,6 +74,7 @@ module Madness
74
74
  config.highlighter = false if args['--no-syntax']
75
75
  config.line_numbers = false if args['--no-line-numbers']
76
76
  config.copy_code = false if args['--no-copy-code']
77
+ config.shortlinks = true if args['--shortlinks']
77
78
  config.open = true if args['--open']
78
79
 
79
80
  config.theme = File.expand_path(args['--theme'], config.path) if args['--theme']
@@ -81,7 +82,7 @@ module Madness
81
82
 
82
83
  # Generate index and toc, if requested by the user.
83
84
  def generate_stuff
84
- build_toc if config.toc
85
+ build_toc if config.toc
85
86
  end
86
87
 
87
88
  # Create config
@@ -55,6 +55,10 @@ Options:
55
55
  files.
56
56
  (Config option: auto_nav)
57
57
 
58
+ --shortlinks
59
+ Enable support for [[Short Links]].
60
+ (Config option: shortlinks)
61
+
58
62
  --theme FOLDER
59
63
  Use a custom theme. FOLDER is either absolute or relative to the main
60
64
  documentation path.
@@ -66,7 +66,13 @@ module Madness
66
66
  end
67
67
 
68
68
  def markdown
69
- @markdown ||= File.read file
69
+ @markdown ||= pre_process_markdown
70
+ end
71
+
72
+ def pre_process_markdown
73
+ result = File.read file
74
+ result = evaluate_shortlinks result if config.shortlinks
75
+ result
70
76
  end
71
77
 
72
78
  def doc
@@ -113,6 +119,11 @@ module Madness
113
119
  toc_marker.insert_after CommonMarker.render_doc("## Table of Contents").first_child
114
120
  end
115
121
 
122
+ # Replace [[link]] with [link](link)
123
+ def evaluate_shortlinks(raw)
124
+ raw.gsub(/\[\[([^\]]+)\]\]/) { "[#{$1}](#{$1.to_href})" }
125
+ end
126
+
116
127
  # Returns a UL object containing the document table of contents
117
128
  def document_toc
118
129
  toc = []
@@ -40,6 +40,7 @@ module Madness
40
40
  content: content,
41
41
  type: doc.type,
42
42
  title: doc.title,
43
+ file: doc.file,
43
44
  nav: nav,
44
45
  breadcrumbs: breadcrumbs
45
46
  }
@@ -1,5 +1,4 @@
1
1
  # require 'sinatra/reloader'
2
- require 'rack/ssl'
3
2
  require 'sinatra/base'
4
3
  require 'slim'
5
4
 
@@ -12,7 +11,6 @@ module Madness
12
11
  helpers ServerHelper
13
12
 
14
13
  Slim::Engine.set_options pretty: true
15
- use Rack::SSL if ENV['MADNESS_FORCE_SSL']
16
14
  set :root, File.expand_path('../../', __dir__)
17
15
  set :environment, ENV['MADNESS_ENV'] || :production
18
16
  set :server, :puma
@@ -57,13 +57,14 @@ module Madness
57
57
  highlighter: true,
58
58
  line_numbers: true,
59
59
  copy_code: true,
60
+ shortlinks: false,
60
61
  toc: nil,
61
62
  theme: nil,
62
63
  open: false,
63
64
  auth: false,
64
65
  auth_realm: 'Madness',
65
66
  expose_extensions: nil,
66
- exclude: [/^[a-z_\-0-9]+$/]
67
+ exclude: [/^[a-z_\-0-9]+$/],
67
68
  }
68
69
  end
69
70
 
@@ -77,9 +78,9 @@ module Madness
77
78
  else
78
79
  {}
79
80
  end
80
-
81
+
81
82
  result || {}
82
83
  end
83
84
 
84
85
  end
85
- end
86
+ end
@@ -29,6 +29,9 @@ line_numbers: true
29
29
  # enable the copy to clipboard icon for code snippets
30
30
  copy_code: true
31
31
 
32
+ # convert [[Links]] to [Links](Links)
33
+ shortlinks: false
34
+
32
35
  # generate a table of contents file with this name, for example:
33
36
  # toc: Table of Contents
34
37
  toc: ~
@@ -1,3 +1,3 @@
1
1
  module Madness
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.7"
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.9.4
4
+ version: 0.9.7
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: 2021-09-16 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coderay
@@ -44,14 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.20'
47
+ version: '0.23'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.23.4
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
- version: '0.20'
57
+ version: '0.23'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.23.4
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: docopt
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +114,6 @@ dependencies:
108
114
  - - "~>"
109
115
  - !ruby/object:Gem::Version
110
116
  version: '5.1'
111
- - !ruby/object:Gem::Dependency
112
- name: rack-ssl
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '1.4'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.4'
125
117
  - !ruby/object:Gem::Dependency
126
118
  name: requires
127
119
  requirement: !ruby/object:Gem::Requirement
@@ -236,6 +228,7 @@ files:
236
228
  - app/styles/main.scss
237
229
  - app/views/_breadcrumbs.slim
238
230
  - app/views/_index_nav.slim
231
+ - app/views/_mobile_search.slim
239
232
  - app/views/_nav.slim
240
233
  - app/views/document.slim
241
234
  - app/views/layout.slim
@@ -266,7 +259,11 @@ files:
266
259
  homepage: https://github.com/DannyBen/madness
267
260
  licenses:
268
261
  - MIT
269
- metadata: {}
262
+ metadata:
263
+ bug_tracker_uri: https://github.com/DannyBen/madness/issues
264
+ changelog_uri: https://github.com/DannyBen/madness/blob/master/CHANGELOG.md
265
+ homepage_uri: https://madness.dannyb.co/
266
+ source_code_uri: https://github.com/DannyBen/madness
270
267
  post_install_message:
271
268
  rdoc_options: []
272
269
  require_paths:
@@ -275,14 +272,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
272
  requirements:
276
273
  - - ">="
277
274
  - !ruby/object:Gem::Version
278
- version: 2.3.0
275
+ version: 2.6.0
279
276
  required_rubygems_version: !ruby/object:Gem::Requirement
280
277
  requirements:
281
278
  - - ">="
282
279
  - !ruby/object:Gem::Version
283
280
  version: '0'
284
281
  requirements: []
285
- rubygems_version: 3.2.25
282
+ rubygems_version: 3.3.14
286
283
  signing_key:
287
284
  specification_version: 4
288
285
  summary: Instant Markdown Server