hyla 1.0.7.pre.1 → 1.0.7.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +5 -0
- data/README.adoc +5 -57
- data/Rakefile +82 -11
- data/bin/hyla +17 -12
- data/documentation/developer.adoc +49 -0
- data/documentation/introduction.adoc +4 -49
- data/documentation/prerequisites.adoc +8 -0
- data/hyla.gemspec +4 -1
- data/lib/hyla/commands/generate.rb +8 -6
- data/lib/hyla/commands/new.rb +6 -5
- data/lib/hyla/configuration.rb +24 -14
- data/lib/hyla/project.rb +1 -1
- data/lib/resources/assets/config.rb +27 -0
- data/lib/resources/{deck.js → assets/deck.js}/core/deck.core.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/core/deck.core.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/deck.js-blank/README.md +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/deck.js-blank/deck.blank.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/goto/deck.goto.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/goto/deck.goto.html +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/goto/deck.goto.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/hash/deck.hash.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/hash/deck.hash.html +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/hash/deck.hash.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/menu/deck.menu.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/menu/deck.menu.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/navigation/deck.navigation.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/navigation/deck.navigation.html +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/navigation/deck.navigation.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/scale/deck.scale.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/scale/deck.scale.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/split/README.md +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/split/deck.split.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/status/deck.status.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/status/deck.status.html +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/status/deck.status.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/toc/deck.toc.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/toc/deck.toc.html +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/extensions/toc/deck.toc.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/jquery-1.7.2.min.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/jquery.min.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/modernizr.custom.js +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/style/beamer.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/style/neon.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/style/swiss.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/style/web-2.0.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/transition/beamer.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/transition/fade.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/transition/horizontal-slide.css +0 -0
- data/lib/resources/{deck.js → assets/deck.js}/themes/transition/vertical-slide.css +0 -0
- data/lib/resources/{fonts → assets/fonts}/liberation/Sans-Bold.ttf +0 -0
- data/lib/resources/{fonts → assets/fonts}/liberation/Sans-BoldItalic.ttf +0 -0
- data/lib/resources/{fonts → assets/fonts}/liberation/Sans-Italic.ttf +0 -0
- data/lib/resources/{fonts → assets/fonts}/liberation/Sans-Regular.ttf +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/LICENSE +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/print/paper.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/print/pdf.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/reveal.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/reveal.min.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/README.md +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/beige.css +2 -2
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/blood.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/conference-redhat.css +65 -58
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/conference.css +2 -2
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/default.css +2 -2
- data/lib/resources/assets/revealjs/css/theme/gpe.css +686 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/moon.css +2 -2
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/night.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/serif.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/simple.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/sky.css +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/solarized.css +2 -2
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/beige.scss +5 -5
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/blood.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/default.scss +5 -5
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/moon.scss +5 -5
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/night.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/serif.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/simple.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/sky.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/source/solarized.scss +5 -5
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/template/mixins.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/template/settings.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/css/theme/template/theme.scss +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/js/reveal.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/js/reveal.min.js +0 -0
- data/lib/resources/assets/revealjs/lib/css/font-awesome-4.3.0.css +2893 -0
- data/lib/resources/{revealjs → assets/revealjs}/lib/css/zenburn.css +0 -0
- data/lib/resources/assets/revealjs/lib/font/font-awesome/FontAwesome.otf +0 -0
- data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.eot +0 -0
- data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.svg +565 -0
- data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.ttf +0 -0
- data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.woff +0 -0
- data/lib/resources/assets/revealjs/lib/font/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.eot +0 -0
- data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.svg +0 -0
- data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.ttf +0 -0
- data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic-webfont.woff +0 -0
- data/lib/resources/{revealjs/lib/font → assets/revealjs/lib/font/league-gothic}/league_gothic_license +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.eot +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.svg +351 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.ttf +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Bold-webfont.woff +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.eot +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.svg +347 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.ttf +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-BoldItalic-webfont.woff +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.eot +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.svg +348 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.ttf +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Italic-webfont.woff +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.eot +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.svg +354 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.ttf +0 -0
- data/lib/resources/assets/revealjs/lib/font/liberation/LiberationSans-Regular-webfont.woff +0 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.eot +0 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.svg +454 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.ttf +0 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_bold-web.woff +0 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.eot +0 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.svg +454 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.ttf +0 -0
- data/lib/resources/assets/revealjs/lib/font/overpass/overpass_regular-web.woff +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/lib/js/classList.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/lib/js/head.min.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/lib/js/html5shiv.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/highlight/highlight.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/leap/leap.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/example.html +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/example.md +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/markdown.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/markdown/marked.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/math/math.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/multiplex/client.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/multiplex/index.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/multiplex/master.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/notes-server/client.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/notes-server/index.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/notes-server/notes.html +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/notes/notes.html +1 -1
- data/lib/resources/{revealjs → assets/revealjs}/plugin/notes/notes.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/postmessage/example.html +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/postmessage/postmessage.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/print-pdf/print-pdf.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/remotes/remotes.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/search/search.js +0 -0
- data/lib/resources/{revealjs → assets/revealjs}/plugin/zoom-js/zoom.js +0 -0
- data/lib/resources/assets/sass/_liberation.scss +43 -0
- data/lib/resources/assets/sass/_overpass.scss +21 -0
- data/lib/resources/assets/sass/font-awesome.scss +17 -0
- data/lib/resources/assets/sass/fontawesome/_animated.scss +34 -0
- data/lib/resources/assets/sass/fontawesome/_bordered-pulled.scss +16 -0
- data/lib/resources/assets/sass/fontawesome/_core.scss +13 -0
- data/lib/resources/assets/sass/fontawesome/_fixed-width.scss +6 -0
- data/lib/resources/assets/sass/fontawesome/_icons.scss +596 -0
- data/lib/resources/assets/sass/fontawesome/_larger.scss +13 -0
- data/lib/resources/assets/sass/fontawesome/_list.scss +19 -0
- data/lib/resources/assets/sass/fontawesome/_mixins.scss +27 -0
- data/lib/resources/assets/sass/fontawesome/_path.scss +15 -0
- data/lib/resources/assets/sass/fontawesome/_rotated-flipped.scss +20 -0
- data/lib/resources/assets/sass/fontawesome/_stacked.scss +20 -0
- data/lib/resources/assets/sass/fontawesome/_variables.scss +606 -0
- data/lib/resources/assets/sass/fonts/font-awesome/FontAwesome.otf +0 -0
- data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.svg +565 -0
- data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/lib/resources/assets/sass/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.eot +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.svg +351 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.ttf +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Bold-webfont.woff +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.eot +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.svg +347 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.ttf +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-BoldItalic-webfont.woff +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.eot +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.svg +348 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.ttf +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Italic-webfont.woff +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.eot +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.svg +354 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.ttf +0 -0
- data/lib/resources/assets/sass/fonts/liberation/LiberationSans-Regular-webfont.woff +0 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.eot +0 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.svg +454 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.ttf +0 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_bold-web.woff +0 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.eot +0 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.svg +454 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.ttf +0 -0
- data/lib/resources/assets/sass/fonts/overpass/overpass_regular-web.woff +0 -0
- data/lib/resources/{revealjs/css/theme/gpe.css → assets/sass/gpe.scss} +289 -265
- data/lib/resources/{styles → assets/styles}/asciidoctor.css +0 -0
- data/lib/resources/{styles → assets/styles}/colony.css +0 -0
- data/lib/resources/{styles → assets/styles}/foundation-lime.css +0 -0
- data/lib/resources/{styles → assets/styles}/foundation-potion.css +0 -0
- data/lib/resources/{styles → assets/styles}/foundation.css +0 -0
- data/lib/resources/{styles → assets/styles}/github.css +0 -0
- data/lib/resources/{styles → assets/styles}/golo.css +0 -0
- data/lib/resources/{styles → assets/styles}/iconic.css +0 -0
- data/lib/resources/{styles → assets/styles}/liberation.css +0 -0
- data/lib/resources/{styles → assets/styles}/maker.css +0 -0
- data/lib/resources/{styles → assets/styles}/readthedocs.css +0 -0
- data/lib/resources/{styles → assets/styles}/riak.css +0 -0
- data/lib/resources/{styles → assets/styles}/rocket-panda.css +0 -0
- data/lib/resources/{styles → assets/styles}/rubygems.css +0 -0
- data/lib/resources/backends/slim/revealjs/document.html.slim +4 -4
- data/lib/resources/backends/slim/revealjs/section.html.slim +2 -2
- data/lib/{resources → templates}/course/assessment.txt +0 -0
- data/lib/{resources → templates}/course/audio.txt +0 -0
- data/lib/{resources → templates}/course/cover.txt +0 -0
- data/lib/{resources → templates}/course/footer.txt +0 -0
- data/lib/{resources → templates}/course/header_index.txt +0 -0
- data/lib/{resources → templates}/course/index.txt +0 -0
- data/lib/{resources → templates}/course/labinstructions.txt +0 -0
- data/lib/{resources → templates}/course/objectives.txt +0 -0
- data/lib/{resources → templates}/course/summary.txt +0 -0
- metadata +250 -133
- data/lib/resources/revealjs/lib/font/liberation_sans-bold.ttf +0 -0
- data/lib/resources/revealjs/lib/font/liberation_sans-bolditalic.ttf +0 -0
- data/lib/resources/revealjs/lib/font/liberation_sans-italic.ttf +0 -0
- data/lib/resources/revealjs/lib/font/liberation_sans-regular.ttf +0 -0
- data/todo.adoc +0 -11
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjNjM2MzODViOTJjMGJmMzA5MDZmYTE3N2FmZGFiZmQ4NDY5ZThhYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWYzNmY3N2Q3YThmMGVjYmIyZjVjNDJhZTFlMzllMGViNTAyM2EzOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDAwMjRhZjlkNzczMDM3NmRmZWE5MjUyMDE0MTg4ZDQzNjZiZWQzMWJlZDYz
|
10
|
+
YjgwZDMyNWMyMzBlMjRhOTM3ZDdlM2RjYTVjNTNiODI4NTFmNmZmYjlmODgw
|
11
|
+
ZmVjYzlmMGMxNDFlN2E0NDhiY2Y3NDI1MGQyMDBiODNmMzdmODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmJlMzcxYThhODcyOTFmMmU1ZmQ5NDkzZDUzMmUyNmYyZDU5OTU4Mzk0ODc4
|
14
|
+
ODA5MGM5YTU4ZjBhMWIwNmY1MGQxY2I0ODVkNDIwNzgyZDdhZmU1YTg0ZjZi
|
15
|
+
ZTExYmJlMGM1ZGQ0N2YxMTMwM2YxM2E5YWMwOWZmY2MzODI5NWQ=
|
data/.gitignore
CHANGED
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
|
-
==
|
41
|
+
== Developer
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
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
|
-
|
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
|
-
|
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
|
57
|
-
task :
|
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
|
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.
|
37
|
-
c.option '-
|
38
|
-
c.option '
|
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
|
-
|
41
|
-
add_build_options(c)
|
42
|
+
c.option '-V', '--verbose', 'Print verbose output.'
|
42
43
|
|
43
44
|
c.action do |args, options|
|
44
|
-
|
45
|
-
|
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
|
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
|
-
==
|
42
|
+
== Developer
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
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
|
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
|
234
|
-
Hyla.logger.
|
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::
|
303
|
-
destination = [path, resource] * '/'
|
304
|
-
|
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
|
#
|