hologram 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
  SHA1:
3
- metadata.gz: 44fd37424aab536da5370b6abfbc8c5a68822f13
4
- data.tar.gz: 04896bbf8a01403e51749ba13b2f090fb2472c10
3
+ metadata.gz: 4dc92f494ebbef69183d26491a4402f70eda4905
4
+ data.tar.gz: 8eb5523c6b4cdcbf52016cbfef86079ce19ec308
5
5
  SHA512:
6
- metadata.gz: 0a356a2e50be8c1e95c3912482d29cfb400a6bff706343fd69a1791d37cab3f4224d1084094634303b714a11967b1c60d07a9946bc45928149104c392acb9ccc
7
- data.tar.gz: c6a79b44f60c67445b05f084c4d6efe62a7442f136c2596e9c9db571f536fb95b615b99bc3db528bd695b9516b64e481bc0e4542232fefedf6dba49a43d805e8
6
+ metadata.gz: 34bab501f8b586ac7cd351111543ca8618a96d065057568d290988aa7a453ea0c2561942800cee4bd76db9404436d829d2d13f0f102dff79195774a696e9c1ff
7
+ data.tar.gz: 384ffdfe89e4830b6b4bc42a21d4f94d54ad15c31d59c68643ed649e8a4e0292c838c8602956f4c3ed691c98db3c290919e3f24c7bf9dec4125f2cee395c2252
data/README.md CHANGED
@@ -49,6 +49,9 @@ Your config file needs to contain the following key/value pairs
49
49
  RedCarpet::Render::HTML class. Use this for when you need
50
50
  additional classes or html tags for different parts of the page.
51
51
 
52
+ * **index**: (optional) this is a category that will be used as the
53
+ index.html.
54
+
52
55
  * **dependencies**: a **list** of relative pathes to a folderes containing any dependencies your style guide has.
53
56
  These folders will be copied over into the documentation output directory.
54
57
  PUT THE CSS/JS THAT IS ACTUALLY BEING DOCUMENTED HERE
data/lib/hologram.rb CHANGED
@@ -104,6 +104,17 @@ module Hologram
104
104
  process_dir(input_directory)
105
105
 
106
106
  build_pages_from_doc_blocks(@doc_blocks)
107
+
108
+ # if we have an index category defined in our config copy that
109
+ # page to index.html
110
+ if config['index']
111
+ if @pages.has_key?(config['index'] + '.html')
112
+ @pages['index.html'] = @pages[config['index'] + '.html']
113
+ else
114
+ display_warning "Could not generate index.html, there was no content generated for the category #{config['index']}"
115
+ end
116
+ end
117
+
107
118
  write_docs(output_directory, doc_assets)
108
119
 
109
120
  # Copy over dependencies
@@ -25,5 +25,5 @@
25
25
  # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
 
27
27
  module Hologram
28
- VERSION = "0.5.4"
28
+ VERSION = "0.5.5"
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hologram
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
  - JD Cantrell
@@ -9,76 +9,76 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-06 00:00:00.000000000 Z
12
+ date: 2013-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redcarpet
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: 2.2.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: 2.2.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sass
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: 3.2.7
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: 3.2.7
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: pygments.rb
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: 0.4.2
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: 0.4.2
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '1.3'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '1.3'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rake
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  description: Build doc type things
@@ -89,7 +89,7 @@ executables:
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .gitignore
92
+ - ".gitignore"
93
93
  - Gemfile
94
94
  - LICENSE.txt
95
95
  - README.md
@@ -109,17 +109,17 @@ require_paths:
109
109
  - lib
110
110
  required_ruby_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - '>='
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.0.3
122
+ rubygems_version: 2.0.0
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Build document type things.