madness 0.5.4 → 0.5.5

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: bc38f5937c9626dc9ffd8ff0973f409b0f634fc4198ce81a24687aa55a93c947
4
- data.tar.gz: 0733b8d283049083904edd685af32429a62bac858ea9859174f0e31fe3cf5a20
3
+ metadata.gz: b6f4a303db577b3f07559d4f2089503e17cdb89d83ef78792f4d6ed2e28a8386
4
+ data.tar.gz: 6a37141d3f5835ce3b847a503de82e01c24dba20a65323f4cf1f9c30b5e5a0a6
5
5
  SHA512:
6
- metadata.gz: 8d33e289c6691f68ae596195e01a123fc784c98eb757b7f646d9e3ee50039d03a0eadfc4fc196ffcb1d31966f9cbe577b958ebb606eddccda238532bfb6a8276
7
- data.tar.gz: 42700e360e958040e78500e3e7a6430ae85514f125440c52d5e2d19633a6fd4d3b9160c2c605a62efe07ce2d3f2132efab356055089a111f976f4cde1f29d39f
6
+ metadata.gz: feaa75621dcf013bac0e9b63feb9a4ae06a3a6e085e2534c71099ba69d9031a44253cd545e98b7b175a769628333c9c27144293efe364822be006658e2842643
7
+ data.tar.gz: 5f37aada6e275be6836074ae155dfaaa8e6a4d1244600ed7e51faa62c33203fe3861b4b9963ad4c04ef2f19fb9f72de6ecb47844981dbf2d686b59513bd18643
data/README.md CHANGED
@@ -115,11 +115,12 @@ documentation directory, and modify any of the settings below.
115
115
 
116
116
  ```yaml
117
117
  # .madness.yml
118
- ---
119
118
  path: '.'
120
119
  port: '3000'
121
120
  bind: '0.0.0.0'
122
- autoh1: true
121
+ sidebar: true
122
+ auto_h1: true
123
+ auto_nav: true
123
124
  highlighter: true
124
125
  line_numbers: true
125
126
  index: false
@@ -280,9 +280,6 @@ body {
280
280
 
281
281
  .main {
282
282
  padding: 0 20px 100px 20px;
283
- margin-left: 250px;
284
- border: 1px solid #ccc;
285
- border-width: 0 1px;
286
283
  min-height: 100vh; }
287
284
  @media print {
288
285
  .main {
@@ -291,5 +288,12 @@ body {
291
288
  .main:before, .main:after {
292
289
  display: table;
293
290
  content: ""; }
291
+ .main.with-sidebar {
292
+ margin-left: 250px;
293
+ border: 1px solid #ccc;
294
+ border-width: 0 1px; }
295
+ .main.without-sidebar {
296
+ max-width: 980px;
297
+ margin: 0 auto; }
294
298
 
295
299
  /*# sourceMappingURL=main.css.map */
@@ -1,6 +1,6 @@
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;EACjB,WAAW,EAAE,GAAG;EAChB,aAAa,EAAE,cAAc;;AAG/B,EAAG;EACD,cAAc,EAAE,KAAK;EACrB,SAAS,EAAE,MAAM;EACjB,WAAW,EAAE,KAAK;EAClB,aAAa,EAAE,cAAc;;AAG/B,EAAG;EACD,SAAS,EAAE,KAAK;EAChB,WAAW,EAAE,IAAI;;AAGnB,EAAG;EACD,SAAS,EAAE,MAAM;;AAGnB,EAAG;EACD,SAAS,EAAE,GAAG;;AAGhB,EAAG;EACD,SAAS,EAAE,GAAG;EACd,KAAK,EAAE,IAAI;;AAGb,cAAe;EACb,WAAW,EAAE,oBAAoB;EACjC,SAAS,EAAE,GAAG;;AAGhB,cAAe;EACb,WAAW,EAAE,sDAAsD;;AC5DrE,KAAM;EACJ,cAAc,EAAE,CAAC;EACjB,eAAe,EAAE,QAAQ;EAE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;IAChB,MAAM,EAAE,MAAM",
4
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"
data/app/styles/main.scss CHANGED
@@ -11,9 +11,6 @@ body {
11
11
  border-width: 0;
12
12
  }
13
13
  padding: 0 20px 100px 20px;
14
- margin-left: 250px;
15
- border:1px solid #ccc;
16
- border-width: 0 1px;
17
14
  min-height: 100vh;
18
15
 
19
16
  &:before, &:after {
@@ -24,5 +21,16 @@ body {
24
21
  &:after {
25
22
  // clear: both;
26
23
  }
24
+
25
+ &.with-sidebar {
26
+ margin-left: 250px;
27
+ border:1px solid #ccc;
28
+ border-width: 0 1px;
29
+ }
30
+
31
+ &.without-sidebar {
32
+ max-width: 980px;
33
+ margin: 0 auto;
34
+ }
27
35
  }
28
36
 
@@ -1,10 +1,10 @@
1
- == slim :_nav, locals: { nav: nav }
1
+ == slim :_nav, locals: { nav: nav } if config.sidebar
2
2
 
3
- .main
3
+ .main class=(config.sidebar ? 'with-sidebar' : 'without-sidebar')
4
4
  == slim :_breadcrumbs, locals: { breadcrumbs: breadcrumbs }
5
5
  == slim :_content, locals: { nav: nav, content: content}
6
6
 
7
- - unless type == :file
7
+ - if type != :file and config.auto_nav
8
8
  - unless type == :empty
9
9
  hr
10
10
  == slim :_index_nav, locals: { nav: nav }
@@ -1,6 +1,6 @@
1
- == slim :_nav, locals: { nav: nav }
1
+ == slim :_nav, locals: { nav: nav } if config.sidebar
2
2
 
3
- .main
3
+ .main class=(config.sidebar ? 'with-sidebar' : 'without-sidebar')
4
4
  h1 Search
5
5
 
6
6
  form.search-form action="/_search" method="get"
@@ -48,7 +48,9 @@ module Madness
48
48
  config.port = args['--port'] if args['--port']
49
49
  config.bind = args['--bind'] if args['--bind']
50
50
  config.toc = args['--toc'] if args['--toc']
51
- config.autoh1 = false if args['--no-auto-h1']
51
+ config.auto_h1 = false if args['--no-auto-h1']
52
+ config.auto_nav = false if args['--no-auto-nav']
53
+ config.sidebar = false if args['--no-sidebar']
52
54
  config.highlighter = false if args['--no-syntax']
53
55
  config.line_numbers = false if args['--no-line-numbers']
54
56
  config.index = true if args['--index']
@@ -26,6 +26,13 @@ Options:
26
26
  --no-line-numbers
27
27
  Disable line numbering for syntax highlighter.
28
28
 
29
+ --no-sidebar
30
+ Disable sidebar navigation.
31
+
32
+ --no-auto-nav
33
+ Disable automatic generation of footer navigation for folder README
34
+ files.
35
+
29
36
  --index
30
37
  Build or rebuild the index for the search page.
31
38
 
@@ -39,6 +46,7 @@ Examples:
39
46
  madness
40
47
  madness docs
41
48
  madness docs --no-auto-h1 -p 4567
49
+ madness --no-sidebar --no-auto-nav
42
50
  madness --index --and-quit
43
51
  madness --toc "Table of Contents.md" --index --and-quit
44
52
 
@@ -82,7 +82,7 @@ module Madness
82
82
 
83
83
  html = doc.to_html
84
84
  html = syntax_highlight(html) if config.highlighter
85
- html = prepend_h1(html) if config.autoh1
85
+ html = prepend_h1(html) if config.auto_h1
86
86
  html
87
87
  end
88
88
 
@@ -4,13 +4,12 @@ module Madness
4
4
  # Each configuration option has three sources
5
5
  # 1. The default value
6
6
  # 2. The setting as provided in the ./.madness.yml
7
- # 3. Any override provided later (for example, by the CommandLine
8
- # class)
7
+ # 3. Any override provided later (for example, by the CommandLine class)
9
8
  class Settings
10
9
  include Singleton
11
10
 
12
- attr_accessor :port, :bind, :path, :autoh1,
13
- :highlighter, :line_numbers, :index, :toc
11
+ attr_accessor :port, :bind, :path, :auto_h1,
12
+ :highlighter, :line_numbers, :index, :toc, :sidebar, :auto_nav
14
13
 
15
14
  def initialize
16
15
  reset
@@ -35,14 +34,15 @@ module Madness
35
34
  private
36
35
 
37
36
  def set_defaults
38
- self.port = '3000'
39
- self.bind = '0.0.0.0'
40
- self.path = '.'
41
- self.autoh1 = true
37
+ self.port = '3000'
38
+ self.bind = '0.0.0.0'
39
+ self.path = '.'
40
+ self.auto_h1 = true
41
+ self.auto_nav = true
42
+ self.sidebar = true
42
43
  self.highlighter = true
43
44
  self.line_numbers = true
44
45
  self.index = false
45
- self.index = false
46
46
  end
47
47
 
48
48
  def load_from_file
@@ -1,3 +1,3 @@
1
1
  module Madness
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
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: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit