rain-doc 0.0.2 → 0.0.3

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: 44a4aa4130bba80e134543f187f27fa85a8fdfbc
4
- data.tar.gz: ca5e7c748f4b152f1624f40c485955f57307aa17
3
+ metadata.gz: 0d3e2da94026e3479875b443e8557932639117a5
4
+ data.tar.gz: 15a5d5ec27b9134d6f907dcc164f26c61727fe89
5
5
  SHA512:
6
- metadata.gz: c491e40015f0c8dc6c7546f8acfdac540879cc001616032549c92fdb1acd86fe9408afd42dd6d8c7f6b9135f8c9a3b7d194bad44763d0c39752cde853b8e287a
7
- data.tar.gz: 27a6c3eb2e2cb3a4adec5a4ddecce468f97585bf6b16807513048a3d10a0bf16cb65de3f86d74e1789c50f0c219547ece6279afa90be15bbb5467d9f9b835f00
6
+ metadata.gz: 43155c813198015ec8c7fc36b9539d460a79c9e136bf7aee7e7a66f5025b1f3e695c20cf3c8242c01c6940980cf57bade86ee7002ba06b80ee29cdddd0f9c13f
7
+ data.tar.gz: 14b6f9aca5e9f470eb67dc4e7f40cba480eb886a44473085c893a76ea9f5fb40143121a82193e6fc0d1dbce997b63882147183fb30d97ae0b6ea77d2ab30a36d
data/lib/rain.rb CHANGED
@@ -48,12 +48,26 @@ class Rain::CLI < Thor
48
48
  Dir.mkdir('./rain_out')
49
49
  Dir.mkdir('./rain_out/css')
50
50
 
51
- # copy the template css to the output dir
52
- FileUtils.cp_r './templates/css/.', './rain_out/css'
51
+ # check if there are local templates before copying from gem dir
52
+ if File.exist?('./templates/') && File.exist?('./templates/css/')
53
53
 
54
- # load the templates
55
- layout_template = File.read('./templates/layout.erb')
56
- doc_template = File.read('./templates/doc.erb')
54
+ # copy the template css to the output dir
55
+ FileUtils.cp_r './templates/css/.', './rain_out/css'
56
+
57
+ # load the templates
58
+ layout_template = File.read('./templates/layout.erb')
59
+ doc_template = File.read('./templates/doc.erb')
60
+
61
+ else
62
+
63
+ # copy the templates from the gem directory
64
+ spec = Gem::Specification.find_by_name("rain-doc")
65
+ FileUtils.cp_r spec.gem_dir + '/templates/css/.', './rain_out/css'
66
+
67
+ # load the templates
68
+ layout_template = File.read(spec.gem_dir + '/templates/layout.erb')
69
+ doc_template = File.read(spec.gem_dir + '/templates/doc.erb')
70
+ end
57
71
 
58
72
  # load the doc properties and parts into the doc template
59
73
  @@docs.each do |doc|
@@ -0,0 +1 @@
1
+ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
@@ -0,0 +1 @@
1
+ .container{position:relative;width:80%;max-width:960px;margin:0 auto;padding:0}.container .column,.container .columns{float:left;width:100%;box-sizing:border-box}.row{margin-bottom:2rem}.row .column:first-child,.row .columns:first-child{margin-left:0}@media (min-width:550px){.container .column,.container .columns{margin-left:4%}.container .one.column,.container .one.columns{width:4.66666666667%}.container .two.columns{width:13.3333333333%}.container .three.columns{width:22%}.container .four.columns{width:30.6666666667%}.container .five.columns{width:39.3333333333%}.container .six.columns{width:48%}.container .seven.columns{width:56.6666666667%}.container .eight.columns{width:65.3333333333%}.container .nine.columns{width:74%}.container .ten.columns{width:82.6666666667%}.container .eleven.columns{width:91.3333333333%}.container .twelve.columns{width:100%;margin-left:0}.container .one-third.column{width:30.6666666667%}.container .two-thirds.column{width:65.3333333333%}.container .one-half.column{width:48%}.container .offset-by-one.column,.container .offset-by-one.columns{margin-left:8.66666666667%}.container .offset-by-two.column{margin-left:17.3333333333%}.container .offset-by-three.column{margin-left:26%}.container .offset-by-four.column{margin-left:34.6666666667%}.container .offset-by-five.column{margin-left:43.3333333333%}.container .offset-by-six.column{margin-left:52%}.container .offset-by-seven.column{margin-left:60.6666666667%}.container .offset-by-eight.column{margin-left:69.3333333333%}.container .offset-by-nine.column{margin-left:78%}.container .offset-by-ten.column{margin-left:86.6666666667%}.container .offset-by-eleven.column{margin-left:95.3333333333%}.container .offset-by-one-third.column{margin-left:34.6666666667%}.container .offset-by-two-thirds.column{margin-left:69.3333333333%}.container .offset-by-one-half.column{margin-left:52%}}html{font-size:62.5%}body{font-size:1.5em;line-height:1.6;font-weight:400;font-family:Raleway,HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#222}h1,h2,h3,h4,h5,h6{font-weight:300;margin-top:0;margin-bottom:2rem}h1{font-size:4rem;line-height:1.2;letter-spacing:-.1rem}h2{font-size:3.6rem;line-height:1.25;letter-spacing:-.1rem}h3{font-size:3rem;line-height:1.3;letter-spacing:-.1rem}h4{font-size:2.4rem;line-height:1.35;letter-spacing:-.08rem}h5{font-size:1.8rem;line-height:1.5;letter-spacing:-.05rem}h6{font-size:1.5rem;line-height:1.6;letter-spacing:0}@media (min-width:550px){h1{font-size:5rem}h2{font-size:4.2rem}h3{font-size:3.6rem}h4{font-size:3rem}h5{font-size:2.4rem}h6{font-size:1.5rem}}a{color:#1EAEDB}a:hover{color:#0FA0CE}.button,button,input[type=button],input[type=reset],input[type=submit]{display:inline-block;background-color:transparent;border-radius:4px;color:#555;text-align:center;font-size:11px;font-weight:600;text-decoration:none;cursor:pointer;border:1px solid #bbb;height:38px;line-height:38px;padding:0 30px;letter-spacing:.1rem;text-transform:uppercase;white-space:nowrap;box-sizing:border-box}.button:focus,.button:hover,button:focus,button:hover,input[type=button]:focus,input[type=button]:hover,input[type=reset]:focus,input[type=reset]:hover,input[type=submit]:focus,input[type=submit]:hover{border-color:#888;color:#333;outline:0}.button.button-primary,button.button-primary,input[type=button].button-primary,input[type=reset].button-primary,input[type=submit].button-primary{color:#FFF;border-color:#33C3F0;background-color:#33C3F0}.button.button-primary:focus,.button.button-primary:hover,button.button-primary:focus,button.button-primary:hover,input[type=button].button-primary:focus,input[type=button].button-primary:hover,input[type=reset].button-primary:focus,input[type=reset].button-primary:hover,input[type=submit].button-primary:focus,input[type=submit].button-primary:hover{background-color:#1EAEDB;border-color:#1EAEDB;color:#FFF}input[type=email],input[type=password],input[type=search],input[type=text],select,textarea{border:1px solid #D1D1D1;height:36px;padding:6px 10px;border-radius:4px;box-shadow:none;background:#fff}input[type=email],input[type=search],input[type=text],textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none}textarea{min-height:65px;padding-top:6px;padding-bottom:6px}input[type=email]:focus,input[type=password]:focus,input[type=search]:focus,input[type=text]:focus,select:focus,textarea:focus{border:1px solid #33C3F0;outline:0}label,legend{display:block;font-weight:600;margin-bottom:.5rem}fieldset{border-width:0;padding:0}input[type=checkbox],input[type=radio]{display:inline}label>.label-body{display:inline-block;font-weight:400;margin-left:.5rem}ul{list-style:circle inside}ol{list-style:decimal inside}ol,ul{margin-top:0;padding-left:0}ol ol,ol ul,ul ol,ul ul{margin:1.5rem 0 1.5rem 3rem;font-size:90%}li{margin-bottom:1rem}code{padding:.2rem .5rem;margin:0 .2rem;font-size:90%;background:#F1F1F1;border:1px solid #E1E1E1;border-radius:4px;white-space:nowrap}pre>code{display:block;padding:1rem 1.5rem;white-space:pre}td,th{padding:12px 15px;text-align:left;border-bottom:1px solid #E1E1E1}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}.button,button{margin-bottom:1rem}fieldset,input,select,textarea{margin-bottom:1.5rem}blockquote,dl,figure,form,ol,p,pre,table,ul{margin-bottom:2.5rem}p{margin-top:0}.u-full-width{width:100%;box-sizing:border-box}.u-max-full-width{max-width:100%;box-sizing:border-box}.u-pull-right{float:right}.u-pull-left{float:left}hr{margin-top:3rem;margin-bottom:3.5rem;border-width:0;border-top:1px solid #E1E1E1}.container:after,.row:after,.u-cf{content:"";display:table;clear:both}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rain-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Brennan
@@ -71,6 +71,8 @@ files:
71
71
  - lib/doc_part.rb
72
72
  - lib/parser.rb
73
73
  - lib/rain.rb
74
+ - templates/css/normalize.css
75
+ - templates/css/skeleton.css
74
76
  - templates/doc.erb
75
77
  - templates/layout.erb
76
78
  homepage: http://martin-brennan.github.io/rain/
@@ -100,3 +102,4 @@ specification_version: 4
100
102
  summary: Rain is a gem to generate beautiful and customizable API documentation, inspired
101
103
  by yard and rdoc.
102
104
  test_files: []
105
+ has_rdoc: