hyla 1.0.7.pre.1 → 1.0.7.pre.2

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 (224) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +5 -0
  3. data/README.adoc +5 -57
  4. data/Rakefile +82 -11
  5. data/bin/hyla +17 -12
  6. data/documentation/developer.adoc +49 -0
  7. data/documentation/introduction.adoc +4 -49
  8. data/documentation/prerequisites.adoc +8 -0
  9. data/hyla.gemspec +4 -1
  10. data/lib/hyla/commands/generate.rb +8 -6
  11. data/lib/hyla/commands/new.rb +6 -5
  12. data/lib/hyla/configuration.rb +24 -14
  13. data/lib/hyla/project.rb +1 -1
  14. data/lib/resources/assets/config.rb +27 -0
  15. data/lib/resources/{deck.js → assets/deck.js}/core/deck.core.css +0 -0
  16. data/lib/resources/{deck.js → assets/deck.js}/core/deck.core.js +0 -0
  17. data/lib/resources/{deck.js → assets/deck.js}/extensions/deck.js-blank/README.md +0 -0
  18. data/lib/resources/{deck.js → assets/deck.js}/extensions/deck.js-blank/deck.blank.js +0 -0
  19. data/lib/resources/{deck.js → assets/deck.js}/extensions/goto/deck.goto.css +0 -0
  20. data/lib/resources/{deck.js → assets/deck.js}/extensions/goto/deck.goto.html +0 -0
  21. data/lib/resources/{deck.js → assets/deck.js}/extensions/goto/deck.goto.js +0 -0
  22. data/lib/resources/{deck.js → assets/deck.js}/extensions/hash/deck.hash.css +0 -0
  23. data/lib/resources/{deck.js → assets/deck.js}/extensions/hash/deck.hash.html +0 -0
  24. data/lib/resources/{deck.js → assets/deck.js}/extensions/hash/deck.hash.js +0 -0
  25. data/lib/resources/{deck.js → assets/deck.js}/extensions/menu/deck.menu.css +0 -0
  26. data/lib/resources/{deck.js → assets/deck.js}/extensions/menu/deck.menu.js +0 -0
  27. data/lib/resources/{deck.js → assets/deck.js}/extensions/navigation/deck.navigation.css +0 -0
  28. data/lib/resources/{deck.js → assets/deck.js}/extensions/navigation/deck.navigation.html +0 -0
  29. data/lib/resources/{deck.js → assets/deck.js}/extensions/navigation/deck.navigation.js +0 -0
  30. data/lib/resources/{deck.js → assets/deck.js}/extensions/scale/deck.scale.css +0 -0
  31. data/lib/resources/{deck.js → assets/deck.js}/extensions/scale/deck.scale.js +0 -0
  32. data/lib/resources/{deck.js → assets/deck.js}/extensions/split/README.md +0 -0
  33. data/lib/resources/{deck.js → assets/deck.js}/extensions/split/deck.split.js +0 -0
  34. data/lib/resources/{deck.js → assets/deck.js}/extensions/status/deck.status.css +0 -0
  35. data/lib/resources/{deck.js → assets/deck.js}/extensions/status/deck.status.html +0 -0
  36. data/lib/resources/{deck.js → assets/deck.js}/extensions/status/deck.status.js +0 -0
  37. data/lib/resources/{deck.js → assets/deck.js}/extensions/toc/deck.toc.css +0 -0
  38. data/lib/resources/{deck.js → assets/deck.js}/extensions/toc/deck.toc.html +0 -0
  39. data/lib/resources/{deck.js → assets/deck.js}/extensions/toc/deck.toc.js +0 -0
  40. data/lib/resources/{deck.js → assets/deck.js}/jquery-1.7.2.min.js +0 -0
  41. data/lib/resources/{deck.js → assets/deck.js}/jquery.min.js +0 -0
  42. data/lib/resources/{deck.js → assets/deck.js}/modernizr.custom.js +0 -0
  43. data/lib/resources/{deck.js → assets/deck.js}/themes/style/beamer.css +0 -0
  44. data/lib/resources/{deck.js → assets/deck.js}/themes/style/neon.css +0 -0
  45. data/lib/resources/{deck.js → assets/deck.js}/themes/style/swiss.css +0 -0
  46. data/lib/resources/{deck.js → assets/deck.js}/themes/style/web-2.0.css +0 -0
  47. data/lib/resources/{deck.js → assets/deck.js}/themes/transition/beamer.css +0 -0
  48. data/lib/resources/{deck.js → assets/deck.js}/themes/transition/fade.css +0 -0
  49. data/lib/resources/{deck.js → assets/deck.js}/themes/transition/horizontal-slide.css +0 -0
  50. data/lib/resources/{deck.js → assets/deck.js}/themes/transition/vertical-slide.css +0 -0
  51. data/lib/resources/{fonts → assets/fonts}/liberation/Sans-Bold.ttf +0 -0
  52. data/lib/resources/{fonts → assets/fonts}/liberation/Sans-BoldItalic.ttf +0 -0
  53. data/lib/resources/{fonts → assets/fonts}/liberation/Sans-Italic.ttf +0 -0
  54. data/lib/resources/{fonts → assets/fonts}/liberation/Sans-Regular.ttf +0 -0
  55. data/lib/resources/{revealjs → assets/revealjs}/LICENSE +0 -0
  56. data/lib/resources/{revealjs → assets/revealjs}/css/print/paper.css +0 -0
  57. data/lib/resources/{revealjs → assets/revealjs}/css/print/pdf.css +0 -0
  58. data/lib/resources/{revealjs → assets/revealjs}/css/reveal.css +0 -0
  59. data/lib/resources/{revealjs → assets/revealjs}/css/reveal.min.css +0 -0
  60. data/lib/resources/{revealjs → assets/revealjs}/css/theme/README.md +0 -0
  61. data/lib/resources/{revealjs → assets/revealjs}/css/theme/beige.css +2 -2
  62. data/lib/resources/{revealjs → assets/revealjs}/css/theme/blood.css +0 -0
  63. data/lib/resources/{revealjs → assets/revealjs}/css/theme/conference-redhat.css +65 -58
  64. data/lib/resources/{revealjs → assets/revealjs}/css/theme/conference.css +2 -2
  65. data/lib/resources/{revealjs → assets/revealjs}/css/theme/default.css +2 -2
  66. data/lib/resources/assets/revealjs/css/theme/gpe.css +686 -0
  67. data/lib/resources/{revealjs → assets/revealjs}/css/theme/moon.css +2 -2
  68. data/lib/resources/{revealjs → assets/revealjs}/css/theme/night.css +0 -0
  69. data/lib/resources/{revealjs → assets/revealjs}/css/theme/serif.css +0 -0
  70. data/lib/resources/{revealjs → assets/revealjs}/css/theme/simple.css +0 -0
  71. data/lib/resources/{revealjs → assets/revealjs}/css/theme/sky.css +0 -0
  72. data/lib/resources/{revealjs → assets/revealjs}/css/theme/solarized.css +2 -2
  73. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/beige.scss +5 -5
  74. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/blood.scss +0 -0
  75. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/default.scss +5 -5
  76. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/moon.scss +5 -5
  77. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/night.scss +0 -0
  78. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/serif.scss +0 -0
  79. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/simple.scss +0 -0
  80. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/sky.scss +0 -0
  81. data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/solarized.scss +5 -5
  82. data/lib/resources/{revealjs → assets/revealjs}/css/theme/template/mixins.scss +0 -0
  83. data/lib/resources/{revealjs → assets/revealjs}/css/theme/template/settings.scss +0 -0
  84. data/lib/resources/{revealjs → assets/revealjs}/css/theme/template/theme.scss +0 -0
  85. data/lib/resources/{revealjs → assets/revealjs}/js/reveal.js +0 -0
  86. data/lib/resources/{revealjs → assets/revealjs}/js/reveal.min.js +0 -0
  87. data/lib/resources/assets/revealjs/lib/css/font-awesome-4.3.0.css +2893 -0
  88. data/lib/resources/{revealjs → assets/revealjs}/lib/css/zenburn.css +0 -0
  89. data/lib/resources/assets/revealjs/lib/font/font-awesome/FontAwesome.otf +0 -0
  90. data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.eot +0 -0
  91. data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.svg +565 -0
  92. data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.ttf +0 -0
  93. data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.woff +0 -0
  94. data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.woff2 +0 -0
  95. data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.eot +0 -0
  96. data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.svg +0 -0
  97. data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.ttf +0 -0
  98. data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.woff +0 -0
  99. data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic_license +0 -0
  100. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.eot +0 -0
  101. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.svg +351 -0
  102. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.ttf +0 -0
  103. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.woff +0 -0
  104. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.eot +0 -0
  105. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.svg +347 -0
  106. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.ttf +0 -0
  107. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.woff +0 -0
  108. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.eot +0 -0
  109. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.svg +348 -0
  110. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.ttf +0 -0
  111. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.woff +0 -0
  112. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.eot +0 -0
  113. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.svg +354 -0
  114. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.ttf +0 -0
  115. data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.woff +0 -0
  116. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.eot +0 -0
  117. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.svg +454 -0
  118. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.ttf +0 -0
  119. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.woff +0 -0
  120. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.eot +0 -0
  121. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.svg +454 -0
  122. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.ttf +0 -0
  123. data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.woff +0 -0
  124. data/lib/resources/{revealjs → assets/revealjs}/lib/js/classList.js +0 -0
  125. data/lib/resources/{revealjs → assets/revealjs}/lib/js/head.min.js +0 -0
  126. data/lib/resources/{revealjs → assets/revealjs}/lib/js/html5shiv.js +0 -0
  127. data/lib/resources/{revealjs → assets/revealjs}/plugin/highlight/highlight.js +0 -0
  128. data/lib/resources/{revealjs → assets/revealjs}/plugin/leap/leap.js +0 -0
  129. data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/example.html +0 -0
  130. data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/example.md +0 -0
  131. data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/markdown.js +0 -0
  132. data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/marked.js +0 -0
  133. data/lib/resources/{revealjs → assets/revealjs}/plugin/math/math.js +0 -0
  134. data/lib/resources/{revealjs → assets/revealjs}/plugin/multiplex/client.js +0 -0
  135. data/lib/resources/{revealjs → assets/revealjs}/plugin/multiplex/index.js +0 -0
  136. data/lib/resources/{revealjs → assets/revealjs}/plugin/multiplex/master.js +0 -0
  137. data/lib/resources/{revealjs → assets/revealjs}/plugin/notes-server/client.js +0 -0
  138. data/lib/resources/{revealjs → assets/revealjs}/plugin/notes-server/index.js +0 -0
  139. data/lib/resources/{revealjs → assets/revealjs}/plugin/notes-server/notes.html +0 -0
  140. data/lib/resources/{revealjs → assets/revealjs}/plugin/notes/notes.html +1 -1
  141. data/lib/resources/{revealjs → assets/revealjs}/plugin/notes/notes.js +0 -0
  142. data/lib/resources/{revealjs → assets/revealjs}/plugin/postmessage/example.html +0 -0
  143. data/lib/resources/{revealjs → assets/revealjs}/plugin/postmessage/postmessage.js +0 -0
  144. data/lib/resources/{revealjs → assets/revealjs}/plugin/print-pdf/print-pdf.js +0 -0
  145. data/lib/resources/{revealjs → assets/revealjs}/plugin/remotes/remotes.js +0 -0
  146. data/lib/resources/{revealjs → assets/revealjs}/plugin/search/search.js +0 -0
  147. data/lib/resources/{revealjs → assets/revealjs}/plugin/zoom-js/zoom.js +0 -0
  148. data/lib/resources/assets/sass/_liberation.scss +43 -0
  149. data/lib/resources/assets/sass/_overpass.scss +21 -0
  150. data/lib/resources/assets/sass/font-awesome.scss +17 -0
  151. data/lib/resources/assets/sass/fontawesome/_animated.scss +34 -0
  152. data/lib/resources/assets/sass/fontawesome/_bordered-pulled.scss +16 -0
  153. data/lib/resources/assets/sass/fontawesome/_core.scss +13 -0
  154. data/lib/resources/assets/sass/fontawesome/_fixed-width.scss +6 -0
  155. data/lib/resources/assets/sass/fontawesome/_icons.scss +596 -0
  156. data/lib/resources/assets/sass/fontawesome/_larger.scss +13 -0
  157. data/lib/resources/assets/sass/fontawesome/_list.scss +19 -0
  158. data/lib/resources/assets/sass/fontawesome/_mixins.scss +27 -0
  159. data/lib/resources/assets/sass/fontawesome/_path.scss +15 -0
  160. data/lib/resources/assets/sass/fontawesome/_rotated-flipped.scss +20 -0
  161. data/lib/resources/assets/sass/fontawesome/_stacked.scss +20 -0
  162. data/lib/resources/assets/sass/fontawesome/_variables.scss +606 -0
  163. data/lib/resources/assets/sass/fonts/font-awesome/FontAwesome.otf +0 -0
  164. data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  165. data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.svg +565 -0
  166. data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  167. data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  168. data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
  169. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.eot +0 -0
  170. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.svg +351 -0
  171. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.ttf +0 -0
  172. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.woff +0 -0
  173. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.eot +0 -0
  174. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.svg +347 -0
  175. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.ttf +0 -0
  176. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.woff +0 -0
  177. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.eot +0 -0
  178. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.svg +348 -0
  179. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.ttf +0 -0
  180. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.woff +0 -0
  181. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.eot +0 -0
  182. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.svg +354 -0
  183. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.ttf +0 -0
  184. data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.woff +0 -0
  185. data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.eot +0 -0
  186. data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.svg +454 -0
  187. data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.ttf +0 -0
  188. data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.woff +0 -0
  189. data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.eot +0 -0
  190. data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.svg +454 -0
  191. data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.ttf +0 -0
  192. data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.woff +0 -0
  193. data/lib/resources/{revealjs/css/theme/gpe.css → assets/sass/gpe.scss} +289 -265
  194. data/lib/resources/{styles → assets/styles}/asciidoctor.css +0 -0
  195. data/lib/resources/{styles → assets/styles}/colony.css +0 -0
  196. data/lib/resources/{styles → assets/styles}/foundation-lime.css +0 -0
  197. data/lib/resources/{styles → assets/styles}/foundation-potion.css +0 -0
  198. data/lib/resources/{styles → assets/styles}/foundation.css +0 -0
  199. data/lib/resources/{styles → assets/styles}/github.css +0 -0
  200. data/lib/resources/{styles → assets/styles}/golo.css +0 -0
  201. data/lib/resources/{styles → assets/styles}/iconic.css +0 -0
  202. data/lib/resources/{styles → assets/styles}/liberation.css +0 -0
  203. data/lib/resources/{styles → assets/styles}/maker.css +0 -0
  204. data/lib/resources/{styles → assets/styles}/readthedocs.css +0 -0
  205. data/lib/resources/{styles → assets/styles}/riak.css +0 -0
  206. data/lib/resources/{styles → assets/styles}/rocket-panda.css +0 -0
  207. data/lib/resources/{styles → assets/styles}/rubygems.css +0 -0
  208. data/lib/resources/backends/slim/revealjs/document.html.slim +4 -4
  209. data/lib/resources/backends/slim/revealjs/section.html.slim +2 -2
  210. data/lib/{resources → templates}/course/assessment.txt +0 -0
  211. data/lib/{resources → templates}/course/audio.txt +0 -0
  212. data/lib/{resources → templates}/course/cover.txt +0 -0
  213. data/lib/{resources → templates}/course/footer.txt +0 -0
  214. data/lib/{resources → templates}/course/header_index.txt +0 -0
  215. data/lib/{resources → templates}/course/index.txt +0 -0
  216. data/lib/{resources → templates}/course/labinstructions.txt +0 -0
  217. data/lib/{resources → templates}/course/objectives.txt +0 -0
  218. data/lib/{resources → templates}/course/summary.txt +0 -0
  219. metadata +250 -133
  220. data/lib/resources/revealjs/lib/font/liberation_sans-bold.ttf +0 -0
  221. data/lib/resources/revealjs/lib/font/liberation_sans-bolditalic.ttf +0 -0
  222. data/lib/resources/revealjs/lib/font/liberation_sans-italic.ttf +0 -0
  223. data/lib/resources/revealjs/lib/font/liberation_sans-regular.ttf +0 -0
  224. data/todo.adoc +0 -11
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yjk4ODAzYjZhZDcwODI0ZmRlM2IxYWU5MGUwYWUzNGY3MWZmMGUxMg==
4
+ MjNjM2MzODViOTJjMGJmMzA5MDZmYTE3N2FmZGFiZmQ4NDY5ZThhYQ==
5
5
  data.tar.gz: !binary |-
6
- MjJhYzVlNjA3ODkzNDIyN2VmYTg2NWM4ZDMyOTU2NTdhYWQ3ZGFkOA==
6
+ YWYzNmY3N2Q3YThmMGVjYmIyZjVjNDJhZTFlMzllMGViNTAyM2EzOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjY1MzM2ODUwZWJmMzhhZWVlOGZkYjQyMGFhNzFiYmFjNTYzMWU4YThjOTcw
10
- NzI2YzMwNWQ0M2NlYzRmNzNjZTgyNTQ5MjgyMWNjOWNhMWQxZDZhMGY1YWE3
11
- NzhiNWYzZTAwZGU5MTg2NGE5Y2NkMmY4OGNmYmM5ZTdhZjU2ZmY=
9
+ NDAwMjRhZjlkNzczMDM3NmRmZWE5MjUyMDE0MTg4ZDQzNjZiZWQzMWJlZDYz
10
+ YjgwZDMyNWMyMzBlMjRhOTM3ZDdlM2RjYTVjNTNiODI4NTFmNmZmYjlmODgw
11
+ ZmVjYzlmMGMxNDFlN2E0NDhiY2Y3NDI1MGQyMDBiODNmMzdmODQ=
12
12
  data.tar.gz: !binary |-
13
- NGI4ODIwYTAxOGZjNjU1NGQ4Nzg0YzViOTI0OWE2MjgxNjBkN2U0YzQwZWUw
14
- YTJmODVhYTI4ODVmNzQxZDQ3NjQ4YmI5NzdjMWE2NzQ4YTk5NGEwZmY3MGQx
15
- ZDE4NTIxODc2ZGNkYjc4OTc1MDE1YTA1MGNjZTE0YTc5YjM4ZTE=
13
+ NmJlMzcxYThhODcyOTFmMmU1ZmQ5NDkzZDUzMmUyNmYyZDU5OTU4Mzk0ODc4
14
+ ODA5MGM5YTU4ZjBhMWIwNmY1MGQxY2I0ODVkNDIwNzgyZDdhZmU1YTg0ZjZi
15
+ ZTExYmJlMGM1ZGQ0N2YxMTMwM2YxM2E5YWMwOWZmY2MzODI5NWQ=
data/.gitignore CHANGED
@@ -1,3 +1,8 @@
1
+ ## SASS/Compass
2
+ **/lib/resources/assets/.sass-cache/
3
+ **/lib/resources/assets/sass/.sass-cache/
4
+ **/lib/resources/assets/sass/styles
5
+
1
6
  *.gem
2
7
  *.rbc
3
8
  *.lock
data/README.adoc CHANGED
@@ -38,63 +38,11 @@ hyla will include 'awestruct'
38
38
 
39
39
  The Hyla project name comes from an arboreal http://en.wikipedia.org/wiki/Hyla[frog] living in equatorial regions of Europe, Asia or Americas. Its name was inspired by the companion of Hercule (Hylas) in Greek mythology.
40
40
 
41
- == Prerequisites
41
+ == Developer
42
42
 
43
- - https://github.com/sstephenson/ruby-build#readme[rbenv-build] which let you to deploy a pre-compiled version of Ruby
44
- - https://github.com/sstephenson/rbenv[rbenv] to manage different versions of Ruby
45
- - https://www.ruby-lang.org/en/[Ruby] 1.9.3-p484
46
- - http://guides.rubygems.org/[RubyGems] to install Ruby Applications
47
- - http://feedback.livereload.com/knowledgebase/articles/86242-how-do-i-install-and-use-the-browser-extensions-[How do I install and use the browser extensions for LiveReload].
48
- Be sure to enable the option “Allow access to file URLs” checkbox in Tools > Extensions > LiveReload after installation of Chrome Extension.
49
-
50
- == Installation
51
-
52
- The latest source code is located in the {sources}[Hyla git repository] on GitHub. Hyla can be installed via the +gem+ command, bundler.
53
-
54
- Use `gem install` command to deploy Hyla :
55
-
56
- $ gem install hyla -y
57
-
58
- NOTE : The option `-y` will tell to rubyGems to deploy the gem but also the dependencies required
59
-
60
- An alternative is to create a Gemfile and add this line :
61
-
62
- gem 'hyla'
63
-
64
- And then execute:
65
-
66
- $ bundle
67
-
68
- **Or** install it yourself as:
69
-
70
- $ gem install hyla -v 1.0.6
71
-
72
- == For Developer's only
73
-
74
- Clone Git project locally, move to Hyla directory and execute the following commands
75
- gem build hyla.gemspec
76
- sudo gem install hyla-1.0.x.gem -l
77
-
78
- == To publish Hyla to Gem Repo
79
-
80
- gem build hyla.gemspec
81
- gem install hyla-1.0.x.gem -l
82
- gem push hyla-1.0.x.gem
83
-
84
- == To delete a release pushed to RubyGems (= yank)
85
-
86
- gem yank hyla -v 1.0.x
87
-
88
- == To create a release, generate a tagged release and publish it to Gem Repo
89
-
90
- gem build hyla.gemspec
91
- gem install hyla-1.0.6.gem
92
- git commit -m "Release Hyla 1.0.6" -a
93
- git push
94
- git tag -a hyla-1.0.6 -m "Release hyla 1.0.6"
95
- git push origin hyla-1.0.6
96
-
97
- gem push hyla-1.0.6.gem
43
+ * link:documentation/prerequisites.adoc[Prerequisites]
44
+ * link:documentation/developer.adoc["How to install, build the gem"]
45
+ * Using a Docker container
98
46
 
99
47
  == Usage
100
48
 
@@ -113,7 +61,7 @@ More info about options and commands available can be find by running the `comma
113
61
 
114
62
  == Documentation
115
63
 
116
- The `hyla` documentation is available at the link:documentation/introduction.adoc[following address]
64
+ The `hyla` documentation is available at this link:documentation/introduction.adoc[address]
117
65
 
118
66
  == Copyright and Licensing
119
67
 
data/Rakefile CHANGED
@@ -1,9 +1,28 @@
1
+ libdir = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
3
+
4
+ #require 'compass'
5
+ #require 'compass/sass_compiler'
6
+
7
+ # Dir["#{dir}/*.scss"].select do | f |
8
+ # p "File : #{f}"
9
+ # Compass.add_configuration({
10
+ # :sass_dir => '.',
11
+ # :css_dir => 'styles',
12
+ # :fonts_dir => 'fonts',
13
+ # :output_style => :compressed
14
+ # }, 'alwaysmin' # A name for the configuration, can be anything you want
15
+ # )
16
+ # Compass.sass_compiler.compile(f.to_s, '#{f.to_s}.css')
17
+ # end
18
+
1
19
  require 'rubygems'
2
20
  require 'rake'
3
21
  require 'rake/testtask'
4
22
  require 'bundler/version'
5
-
6
- $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
23
+ require 'sass'
24
+ require 'hyla/configuration'
25
+ require 'font-awesome-sass'
7
26
 
8
27
  #############################################################################
9
28
  #
@@ -15,7 +34,7 @@ def name
15
34
  end
16
35
 
17
36
  def version
18
- line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
37
+ line = File.read("lib/#{name}/project.rb")[/^\s*VERSION\s*=\s*.*/]
19
38
  line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
20
39
  end
21
40
 
@@ -31,31 +50,83 @@ def gem_file
31
50
  "#{name}-#{version}.gem"
32
51
  end
33
52
 
53
+ def sass_assets
54
+ Hyla::Configuration.assets
55
+ end
56
+
57
+ def revealjs_css_theme_assets
58
+ [Hyla::Configuration.assets, 'revealjs', 'css', 'theme'] * '/'
59
+ end
60
+
61
+ def revealjs_css_vendor_assets
62
+ [Hyla::Configuration.assets, 'revealjs', 'lib', 'css'] * '/'
63
+ end
64
+
65
+ def default_compilation_style
66
+ 'compressed'
67
+ end
68
+
69
+ #
70
+ # Compass Style Values to generate the CSS file : nested, expanded, compact, compressed
71
+ #
72
+
73
+ style = ENV["STYLE"] || "nested"
74
+
34
75
  #############################################################################
35
76
  #
36
77
  # Standard tasks
37
78
  #
38
79
  #############################################################################
39
-
40
80
  Rake::TestTask.new do |t|
41
81
  t.libs << 'test'
42
82
  end
43
83
 
44
- desc "Run tests"
45
- task :default => :test
46
-
47
84
  # Simple Test case
48
85
  task :test do
49
86
  ruby "test/my_test.rb"
50
87
  end
51
88
 
52
- task :build1 do
89
+ desc "Run tests"
90
+ task :default => :test
91
+
92
+ # Generate CSS files
93
+ task :compass do
94
+ puts "\n## Compiling Sass"
95
+
96
+ # path = Gem.loaded_specs['font-awesome-sass'].full_gem_path + "/assets/stylesheets"
97
+
98
+ #Go to the compass project directory
99
+ Dir.chdir File.join(sass_assets, "sass") do |dir|
100
+ puts "Sass dir : #{dir}"
101
+ # -s #{style} -I #{path}
102
+ system "compass compile --fonts-dir 'fonts' --css-dir 'styles' --sass-dir '.' "
103
+
104
+ # Copy css to RevealJS theme
105
+ # p revealjs_css_assets
106
+ system "cp styles/gpe.css #{revealjs_css_theme_assets}"
107
+ system "cp styles/font-awesome.css #{revealjs_css_vendor_assets}/font-awesome-4.3.0.css"
108
+ end
109
+
110
+ end
111
+
112
+ # Build the Gem
113
+ task :build do
53
114
  system "gem build #{gemspec_file}"
54
115
  end
55
116
 
56
- # Build project
57
- task :build2 => :gemspec do
117
+ # Build the Gem & deploy it locally
118
+ task :install => :build do
119
+ system "gem install #{gem_file} -l"
120
+ end
121
+
122
+ # Build the Gem, install it locally & push it
123
+ task :deploy => :install do
124
+ system "gem push #{gem_file}"
125
+ end
126
+
127
+ # Build the Gem and move it under the pkg directory
128
+ task :build_pkg => :gemspec do
58
129
  sh "mkdir -p pkg"
59
130
  sh "gem build #{gemspec_file}"
60
131
  sh "mv #{gem_file} pkg"
61
- end
132
+ end
data/bin/hyla CHANGED
@@ -18,8 +18,8 @@ program :description, Hyla::DESCRIPTION
18
18
  default_command :default
19
19
 
20
20
  def add_build_options(c)
21
- c.option '-c','--config CONFIG_FILE', String, 'Custom configuration file'
22
- c.option '-V','--verbose', 'Print verbose output.'
21
+ c.option '-c', '--config CONFIG_FILE', String, 'Custom configuration file'
22
+ c.option '-V', '--verbose', 'Print verbose output.'
23
23
  end
24
24
 
25
25
  def add_common_options(c)
@@ -28,26 +28,31 @@ def add_common_options(c)
28
28
  end
29
29
 
30
30
  #
31
- # Creates a new Hyla project using a template or blank to the PATH specified
31
+ # Creates a new Hyla project using a template which is a collection of asciidoctor files
32
+ # or create a blank project to the PATH specified as argument on the command line
32
33
  #
33
34
  command :new do |c|
34
- c.syntax = 'hyla new [options]'
35
+ c.syntax = 'hyla new [options] <PATH>'
35
36
  c.description = 'Creates a new Hyla project using a template or blank to the PATH specified'
36
- c.option '-f','--force', 'Force creation even if PATH already exists'
37
- c.option '-b','--blank', 'Creates project but with empty files'
38
- c.option '--t','--template_type [TEMPLATE_TYPE]', String, 'Template Type to be used (documentation, book, training, training-exercises, blog, web, ...)'
37
+ c.description = 'Example : hyla new -b /path/to/myProject'
38
+ c.option '-f', '--force', 'Force creation even if PATH already exists'
39
+ c.option '-b', '--blank', 'Creates project directory containing the YAML config file and a simple readme.ad file'
40
+ c.option '--t', '--template_type [TEMPLATE_TYPE]', String, 'Template Type to be used (documentation, book, training, training-exercises, blog, web, ...)'
39
41
 
40
- add_common_options(c)
41
- add_build_options(c)
42
+ c.option '-V', '--verbose', 'Print verbose output.'
42
43
 
43
44
  c.action do |args, options|
44
- config = Hyla::Configuration.parse(options.__hash__)
45
- Hyla::Commands::New.process(args, config)
45
+ if args.first.nil?
46
+ puts "Please specify the PATH where the project should be created."
47
+ else
48
+ config = Hyla::Configuration.parse(options.__hash__)
49
+ Hyla::Commands::New.process(args, config)
50
+ end
46
51
  end
47
52
  end
48
53
 
49
54
  #
50
- # Creates a new file from an artefact within an existing project
55
+ # Creates a new file from an artifact within an existing project
51
56
  #
52
57
  command :add do |c|
53
58
  c.syntax = 'hyla add [options]'
@@ -0,0 +1,49 @@
1
+ :homepage: http://github.com/cmoulliard/hyla
2
+ :docs: https://github.com/cmoulliard/hyla/blob/master/documentation/introduction.adoc
3
+ :sources: https://github.com/cmoulliard/hyla
4
+ :issues: https://github.com/cmoulliard/hyla/issues/
5
+
6
+ == Install the gem
7
+
8
+ Use `gem install` command to deploy Hyla :
9
+
10
+ $ gem install hyla -y
11
+
12
+ NOTE : The option `-y` will tell to rubyGems to deploy the gem but also the dependencies required
13
+
14
+ == Build the project from the code
15
+
16
+ * Generate the gem
17
+
18
+ In order to build the Hyla project, we recommend that you clone the project locally (or fork it) {sources}[from the Hyla git repository], next you move to the project cloned
19
+ and finally, run the following command :
20
+
21
+ rake build
22
+
23
+ This command will create a gem of the project
24
+
25
+ * To install theGem to your machine, run this command
26
+
27
+ rake install
28
+
29
+ * If you would like to change the scss files, styles and regenerate the css, use this command
30
+
31
+ rake compass
32
+
33
+ * To publish the gem to the RubyGems Web Server, use this command
34
+
35
+ rake deploy
36
+
37
+ * To create a release, generate a tagged release and publish it to Gem Repo
38
+
39
+ rake install
40
+ git commit -m "Release Hyla 1.0.7.pre.x" -a
41
+ git push
42
+ git tag -a hyla-1.0.7.pre.x -m "Release hyla 1.0.7.pre.x"
43
+ git push origin hyla-1.0.7.pre.x
44
+
45
+ rake deploy
46
+
47
+ * To delete a release pushed to RubyGems (= yank)
48
+
49
+ gem yank hyla -v 1.0.x
@@ -39,56 +39,11 @@ hyla will include 'awestruct'
39
39
 
40
40
  The Hyla project name comes from an arboreal http://en.wikipedia.org/wiki/Hyla[frog] living in equatorial regions of Europe, Asia or Americas. Its name was inspired by the companion of Hercule (Hylas) in Greek mythology.
41
41
 
42
- == Prerequisites
42
+ == Developer
43
43
 
44
- - https://github.com/sstephenson/ruby-build#readme[rbenv-build] which let you to deploy a pre-compiled version of Ruby
45
- - https://github.com/sstephenson/rbenv[rbenv] to manage different versions of Ruby
46
- - https://www.ruby-lang.org/en/[Ruby] 1.9.3-p484
47
- - http://guides.rubygems.org/[RubyGems] to install Ruby Applications
48
- - http://feedback.livereload.com/knowledgebase/articles/86242-how-do-i-install-and-use-the-browser-extensions-[How do I install and use the browser extensions for LiveReload].
49
- Be sure to enable the option “Allow access to file URLs” checkbox in Tools > Extensions > LiveReload after installation of Chrome Extension.
50
-
51
- image::image/access_local_file.png[Access Local File,650,150]
52
-
53
- == Dependencies
54
-
55
- - https://github.com/hakimel/reveal.js[RevealJS] - Version 2.6.1
56
-
57
- == Installation
58
-
59
- Use `gem install` command to deploy Hyla :
60
-
61
- $ gem install hyla -y -v 1.0.x
62
-
63
- NOTE : The option `-y` will tell to rubyGems to deploy the gem but also the dependencies required
64
-
65
- NOTE : The option `-v` tells to gem installer to deploy a specific version / release. The release number will depend on the version available (1.0.1, 1.0.2, ...)
66
-
67
- An alternative is to create a Gemfile and add this line :
68
-
69
- gem 'hyla'
70
-
71
- And then execute:
72
-
73
- $ bundle
74
-
75
- **Or** install it yourself as:
76
-
77
- $ gem install hyla -v _version_
78
-
79
- where _version_ should be 1.0.2, 1.0.x
80
-
81
- == For Developer's only
82
-
83
- Clone Git project locally, move to Hyla directory and execute the following commands
84
- gem build hyla.gemspec
85
- gem install hyla-1.0.x -l
86
-
87
- == To publish Hyla to Gem Repo
88
-
89
- gem build hyla.gemspec
90
- gem install hyla-1.0.x.gem -l
91
- gem push hyla-1.0.x.gem
44
+ * link:documentation/prerequisites.adoc[Prerequisites]
45
+ * link:documentation/developer.adoc["How to install, build the gem"]
46
+ * Using a Docker container
92
47
 
93
48
  == Usage
94
49
 
@@ -0,0 +1,8 @@
1
+ == Prerequisites
2
+
3
+ - https://github.com/sstephenson/ruby-build#readme[rbenv-build] which let you to deploy a pre-compiled version of Ruby
4
+ - https://github.com/sstephenson/rbenv[rbenv] to manage different versions of Ruby
5
+ - https://www.ruby-lang.org/en/[Ruby] 1.9.3-p484
6
+ - http://guides.rubygems.org/[RubyGems] to install Ruby Applications
7
+ - http://feedback.livereload.com/knowledgebase/articles/86242-how-do-i-install-and-use-the-browser-extensions-[How do I install and use the browser extensions for LiveReload].
8
+ Be sure to enable the option “Allow access to file URLs” checkbox in Tools > Extensions > LiveReload after installation of Chrome Extension.
data/hyla.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'hyla/project'
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'hyla'
8
8
  s.version = Hyla::VERSION
9
- s.authors = ["Charles Mouliard"]
9
+ s.authors = ["Charles Moulliard"]
10
10
  s.email = ["ch007m@gmail.com"]
11
11
  s.description = Hyla::DESCRIPTION
12
12
  s.summary = Hyla::SUMMARY
@@ -20,6 +20,9 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency 'bundler', '~> 1.5'
22
22
  s.add_development_dependency 'rake', '~> 10.1'
23
+ s.add_development_dependency 'font-awesome-sass','~> 4.3'
24
+ s.add_development_dependency 'compass', '~> 1.0'
25
+ s.add_development_dependency 'sass', '~> 3.4'
23
26
 
24
27
  # Ruby command-line executables
25
28
  # Add pry before
@@ -224,14 +224,14 @@ module Hyla
224
224
  Hyla.logger.debug ">> Relative path: #{relative_path}"
225
225
  adoc_file_paths << relative_path
226
226
 
227
- # Get asciidoc file name
227
+ # Get asciidoctor file name
228
228
  file_name_processed = path_to_adoc_file.basename
229
229
 
230
230
  #
231
231
  # Create destination dir relative to the path calculated
232
232
  #
233
- html_dir = @destination + '/' + File.dirname(relative_path)
234
- Hyla.logger.info ">> Dir of html: #{html_dir}"
233
+ html_dir = [@destination, File.dirname(relative_path)] * '/'
234
+ Hyla.logger.debug ">> Dir of html: #{html_dir}"
235
235
  FileUtils.mkdir_p html_dir
236
236
 
237
237
  # Copy Fonts
@@ -299,9 +299,11 @@ module Hyla
299
299
  #
300
300
  # Copy resources to target dir
301
301
  def self.cp_resources_to_dir(path, resource)
302
- source = [Configuration::resources, resource] * '/'
303
- destination = [path, resource] * '/'
304
- FileUtils.cp_r source, destination
302
+ source = [Configuration::assets, resource] * '/'
303
+ # destination = [path, resource] * '/'
304
+ destination = path
305
+ Hyla.logger.debug ">> Copy resource from Source dir: #{source} --> destination dir: #{destination}"
306
+ FileUtils.cp_r source, destination, :verbose => false
305
307
  end
306
308
 
307
309
  #