hyla 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.adoc +44 -84
- data/bin/hyla +23 -7
- data/data/chm-status-weeks-0601-1001.html +913 -0
- data/documentation/image/access_local_file.png +0 -0
- data/documentation/image/email_send.png +0 -0
- data/{hyla_frog.jpg → documentation/image/hyla_frog.jpg} +0 -0
- data/documentation/introduction.adoc +433 -0
- data/hyla.gemspec +7 -5
- data/lib/hyla.rb +4 -2
- data/lib/hyla/commands/generate.rb +102 -76
- data/lib/hyla/commands/sendmail.rb +97 -0
- data/lib/hyla/commands/watch.rb +6 -4
- data/lib/hyla/configuration.rb +49 -26
- data/lib/hyla/project.rb +1 -1
- data/lib/resources/backends/slim/revealjs/document.html.slim +1 -1
- data/lib/resources/backends/slim/revealjs/section.html.slim +3 -3
- data/lib/resources/revealjs/plugin/notes/notes.html +252 -248
- data/lib/resources/styles/asciidoctor.css +1 -1
- data/lib/resources/styles/colony.css +1 -1
- data/lib/resources/styles/foundation-lime.css +1 -1
- data/lib/resources/styles/foundation-potion.css +1 -1
- data/lib/resources/styles/foundation.css +1 -1
- data/lib/resources/styles/github.css +3 -3
- data/lib/resources/styles/golo.css +3 -3
- data/lib/resources/styles/iconic.css +1 -1
- data/lib/resources/styles/maker.css +2 -2
- data/lib/resources/styles/readthedocs.css +1 -1
- data/lib/resources/styles/redhat.css +1 -654
- data/lib/resources/styles/riak.css +1 -1
- data/lib/resources/styles/rocket-panda.css +1 -1
- data/lib/resources/styles/rubygems.css +1 -1
- data/lib/templates/_config.yml +2 -2
- data/lib/templates/sample/slideshow_revealjs.adoc +240 -6
- metadata +79 -18
- data/Gemfile.lock +0 -77
- data/data/generated/A_Introduction_module/1_Chapter.adoc +0 -42
- data/data/generated/A_Introduction_module/2_Chapter.adoc +0 -31
- data/data/generated/A_Introduction_module/3_Chapter.adoc +0 -23
- data/data/generated/A_Introduction_module/A_Introduction_module_AllSlides.index +0 -9
- data/data/generated/B_Instruction_module/1_Chapter.adoc +0 -27
- data/data/generated/B_Instruction_module/B_Instruction_module_AllSlides.index +0 -7
- data/data/generated/C_Installation_module/1_Chapter.adoc +0 -14
- data/data/generated/C_Installation_module/2_Chapter.adoc +0 -17
- data/data/generated/C_Installation_module/C_Installation_module_AllSlides.index +0 -8
- data/data/generated/camel_AllSlides.index +0 -9
- data/lib/templates/book/GemFile +0 -5
- data/scenario.adoc +0 -152
data/Gemfile.lock
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
hyla (1.0.x)
|
5
|
-
asciidoctor (~> 0.1.4)
|
6
|
-
colorator (~> 0.1)
|
7
|
-
commander (~> 4.1.3)
|
8
|
-
em-websocket (~> 0.5)
|
9
|
-
guard (~> 1.8.3)
|
10
|
-
haml
|
11
|
-
listen (~> 1.3.1)
|
12
|
-
multi_json (~> 1.8)
|
13
|
-
safe_yaml (~> 1.0.0)
|
14
|
-
slim
|
15
|
-
tilt
|
16
|
-
|
17
|
-
GEM
|
18
|
-
remote: https://rubygems.org/
|
19
|
-
specs:
|
20
|
-
asciidoctor (0.1.4)
|
21
|
-
coderay (1.1.0)
|
22
|
-
colorator (0.1)
|
23
|
-
commander (4.1.5)
|
24
|
-
highline (~> 1.6.11)
|
25
|
-
em-websocket (0.5.0)
|
26
|
-
eventmachine (>= 0.12.9)
|
27
|
-
http_parser.rb (~> 0.5.3)
|
28
|
-
eventmachine (1.0.3)
|
29
|
-
ffi (1.9.3)
|
30
|
-
formatador (0.2.4)
|
31
|
-
guard (1.8.3)
|
32
|
-
formatador (>= 0.2.4)
|
33
|
-
listen (~> 1.3)
|
34
|
-
lumberjack (>= 1.0.2)
|
35
|
-
pry (>= 0.9.10)
|
36
|
-
thor (>= 0.14.6)
|
37
|
-
haml (4.0.4)
|
38
|
-
tilt
|
39
|
-
highline (1.6.20)
|
40
|
-
http_parser.rb (0.5.3)
|
41
|
-
json (1.8.1)
|
42
|
-
listen (1.3.1)
|
43
|
-
rb-fsevent (>= 0.9.3)
|
44
|
-
rb-inotify (>= 0.9)
|
45
|
-
rb-kqueue (>= 0.2)
|
46
|
-
lumberjack (1.0.4)
|
47
|
-
method_source (0.8.2)
|
48
|
-
multi_json (1.8.2)
|
49
|
-
pry (0.9.12.4)
|
50
|
-
coderay (~> 1.0)
|
51
|
-
method_source (~> 0.8)
|
52
|
-
slop (~> 3.4)
|
53
|
-
rake (10.1.0)
|
54
|
-
rb-fsevent (0.9.3)
|
55
|
-
rb-inotify (0.9.2)
|
56
|
-
ffi (>= 0.5.0)
|
57
|
-
rb-kqueue (0.2.0)
|
58
|
-
ffi (>= 0.5.0)
|
59
|
-
rdoc (3.12.2)
|
60
|
-
json (~> 1.4)
|
61
|
-
safe_yaml (1.0.0)
|
62
|
-
slim (2.0.2)
|
63
|
-
temple (~> 0.6.6)
|
64
|
-
tilt (>= 1.3.3, < 2.1)
|
65
|
-
slop (3.4.7)
|
66
|
-
temple (0.6.7)
|
67
|
-
thor (0.18.1)
|
68
|
-
tilt (1.4.1)
|
69
|
-
|
70
|
-
PLATFORMS
|
71
|
-
ruby
|
72
|
-
|
73
|
-
DEPENDENCIES
|
74
|
-
bundler (~> 1.3)
|
75
|
-
hyla!
|
76
|
-
rake (~> 10.1)
|
77
|
-
rdoc (~> 3.11)
|
@@ -1,42 +0,0 @@
|
|
1
|
-
:data-uri:
|
2
|
-
:icons: font
|
3
|
-
:last-update-label!:
|
4
|
-
:source-highlighter: coderay
|
5
|
-
:toc: left
|
6
|
-
|
7
|
-
== 1. Chapter
|
8
|
-
|
9
|
-
This is a chapter about ... test
|
10
|
-
|
11
|
-
This is a chapter about ... test
|
12
|
-
|
13
|
-
This is a chapter about ... test
|
14
|
-
|
15
|
-
== 2. Chapter
|
16
|
-
|
17
|
-
This is a chapter about ... test
|
18
|
-
|
19
|
-
This is a chapter about ... test
|
20
|
-
|
21
|
-
This is a chapter about ... test
|
22
|
-
|
23
|
-
== 111. Chapter
|
24
|
-
|
25
|
-
This is a chapter about ... test
|
26
|
-
|
27
|
-
This is a chapter about ... test
|
28
|
-
|
29
|
-
This is a chapter about ... test
|
30
|
-
|
31
|
-
== 222. Chapter
|
32
|
-
|
33
|
-
This is a chapter about ... test
|
34
|
-
|
35
|
-
This is a chapter about ... test
|
36
|
-
|
37
|
-
This is a chapter about ... test
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
:data-uri:
|
2
|
-
:icons: font
|
3
|
-
:last-update-label!:
|
4
|
-
:source-highlighter: coderay
|
5
|
-
:toc: left
|
6
|
-
|
7
|
-
== 2. Chapter
|
8
|
-
|
9
|
-
This is a Chapter about ...
|
10
|
-
|
11
|
-
=== 2.1. Section
|
12
|
-
|
13
|
-
This is a Section about ...
|
14
|
-
|
15
|
-
=== 2.2. Section
|
16
|
-
|
17
|
-
This is a Section about ...
|
18
|
-
This is a Section about .....
|
19
|
-
|
20
|
-
=== 2.3. Section
|
21
|
-
|
22
|
-
This is a Section about ...
|
23
|
-
This is a Section about .....
|
24
|
-
|
25
|
-
=== 2.4. Section
|
26
|
-
|
27
|
-
This is a Section about ...
|
28
|
-
This is a Section about ....
|
29
|
-
|
30
|
-
|
31
|
-
|
@@ -1,23 +0,0 @@
|
|
1
|
-
:data-uri:
|
2
|
-
:icons: font
|
3
|
-
:last-update-label!:
|
4
|
-
:source-highlighter: coderay
|
5
|
-
:toc: left
|
6
|
-
|
7
|
-
== 3. Chapter
|
8
|
-
|
9
|
-
This is a Chapter about ...
|
10
|
-
|
11
|
-
=== 3.1. Section
|
12
|
-
|
13
|
-
This is a Section about ...
|
14
|
-
|
15
|
-
=== 3.2. Section
|
16
|
-
|
17
|
-
This is a Section about ...
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
:data-uri:
|
2
|
-
:icons: font
|
3
|
-
:last-update-label!:
|
4
|
-
:source-highlighter: coderay
|
5
|
-
:toc: left
|
6
|
-
|
7
|
-
== 1. Chapter
|
8
|
-
|
9
|
-
This is a Chapter about ...
|
10
|
-
|
11
|
-
=== 1.1. Section
|
12
|
-
|
13
|
-
This is a Section about ...
|
14
|
-
|
15
|
-
=== 1.2. Section
|
16
|
-
|
17
|
-
This is a Section about ...
|
18
|
-
|
19
|
-
=== 1.3. Section
|
20
|
-
|
21
|
-
This is a Section about ...
|
22
|
-
|
23
|
-
=== 1.4. Section
|
24
|
-
|
25
|
-
This is a Section about ...
|
26
|
-
|
27
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
:data-uri:
|
2
|
-
:icons: font
|
3
|
-
:last-update-label!:
|
4
|
-
:source-highlighter: coderay
|
5
|
-
:toc: left
|
6
|
-
|
7
|
-
== 2. Chapter
|
8
|
-
|
9
|
-
This is a Chapter about ...
|
10
|
-
|
11
|
-
=== 2.1. Section
|
12
|
-
|
13
|
-
This is a Section about ...
|
14
|
-
|
15
|
-
=== 2.2. Section
|
16
|
-
|
17
|
-
This is a Section about ...
|
@@ -1,9 +0,0 @@
|
|
1
|
-
= camel
|
2
|
-
:data-uri:
|
3
|
-
:navigation:
|
4
|
-
:menu:
|
5
|
-
:status:
|
6
|
-
|
7
|
-
include::A_Introduction_module/A_Introduction_module_AllSlides.index[]
|
8
|
-
include::B_Instruction_module/B_Instruction_module_AllSlides.index[]
|
9
|
-
include::C_Installation_module/C_Installation_module_AllSlides.index[]
|
data/lib/templates/book/GemFile
DELETED
data/scenario.adoc
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
== Prerequisites
|
2
|
-
|
3
|
-
==== 1. Delete Temp directory
|
4
|
-
|
5
|
-
rm -rf ~/hyla/MyBlankProject/
|
6
|
-
rm -rf ~/hyla/MyBookProject
|
7
|
-
rm -rf ~/hyla/MyTocProject/
|
8
|
-
rm -rf ~/hyla/MyTrainingProject/
|
9
|
-
rm -rf ~/hyla/MyTrainingExercisesProject/
|
10
|
-
rm -rf ~/hyla/MyDeckSlideShow/
|
11
|
-
rm -rf ~/hyla/MyRevealSlideShow/
|
12
|
-
|
13
|
-
==== 2. Install Gem Hyla 1.0.x
|
14
|
-
|
15
|
-
gem install hyla -v 1.0.x
|
16
|
-
|
17
|
-
== 1. Blank Project & Artefacts
|
18
|
-
|
19
|
-
Using hyla we will create a new project (= directory) and add artefacts (article, audio, video, image, source, table)
|
20
|
-
|
21
|
-
== 1. Create a Blank Project (with or without --force option)
|
22
|
-
|
23
|
-
hyla new --blank ~/hyla/MyBlankProject
|
24
|
-
hyla new --blank ~/hyla/MyBlankProject --force
|
25
|
-
|
26
|
-
== 2. Create a Blank Project without _config.yaml config file, add artefact
|
27
|
-
|
28
|
-
cd ~/hyla
|
29
|
-
rm -rf MyBlankProject/
|
30
|
-
hyla new --blank MyBlankProject --force
|
31
|
-
hyla create --t asciidoc --a article --d ~/hyla/MyBlankProject
|
32
|
-
hyla create --t asciidoc --a book --d ~/hyla/MyBlankProject
|
33
|
-
hyla create --t asciidoc --a image --d ~/hyla/MyBlankProject
|
34
|
-
hyla create --t asciidoc --a audio --d ~/hyla/MyBlankProject
|
35
|
-
hyla create --t asciidoc --a video --d ~/hyla/MyBlankProject
|
36
|
-
hyla create --t asciidoc --a source --d ~/hyla/MyBlankProject
|
37
|
-
hyla create --t asciidoc --a table --d ~/hyla/MyBlankProject
|
38
|
-
|
39
|
-
== 3. Create a Blank Project using _config.yaml config file, add artefacts
|
40
|
-
|
41
|
-
cd ~/hyla
|
42
|
-
rm -rf MyBlankProject/
|
43
|
-
hyla new --blank MyBlankProject --force
|
44
|
-
cd MyBlankProject
|
45
|
-
hyla create --a article
|
46
|
-
hyla create --a book
|
47
|
-
hyla create --a image
|
48
|
-
hyla create --a audio
|
49
|
-
hyla create --a video
|
50
|
-
hyla create --a source
|
51
|
-
hyla create --a table
|
52
|
-
|
53
|
-
=== 4. Generate HTML Content of an existing project (asciidoc 2 html)
|
54
|
-
|
55
|
-
hyla generate --r adoc2html --s ~/hyla/MyBlankProject/ --d ~/hyla/MyBlankProject/generated_content
|
56
|
-
|
57
|
-
=== 5. Generate HTML Content of an existing project (asciidoc 2 html) with a different style
|
58
|
-
|
59
|
-
Styles available : redhat, asciidoctor, colony, foundation, foundation-lime, foundation-potion, github, golo, iconic, maker, readthedocs, riak, rocket-panda, rubygems
|
60
|
-
|
61
|
-
hyla generate --r adoc2html --s ~/hyla/MyBlankProject/ --d ~/hyla/MyBlankProject/generated_content --style redhat
|
62
|
-
hyla generate --r adoc2html --s ~/hyla/MyBlankProject/ --d ~/hyla/MyBlankProject/generated_content --style github
|
63
|
-
hyla generate --r adoc2html --s ~/hyla/MyBlankProject/ --d ~/hyla/MyBlankProject/generated_content --style foundation
|
64
|
-
|
65
|
-
=== 6. Generate HTML Content within project
|
66
|
-
|
67
|
-
hyla generate --r adoc2html --s . --d generated_content
|
68
|
-
|
69
|
-
=== 7. Generate HTML Content within project & using Config File
|
70
|
-
|
71
|
-
As destination directory is not longer '.' (which is the case when we add artefacts using `hyla create` command, then we must change the destination directory to `generated_content`. the original file is
|
72
|
-
still available as it will backuped by ruby
|
73
|
-
|
74
|
-
ruby -i.bak -pe 'sub(%r{destination: .},"destination: generated_content")' _config.yml
|
75
|
-
hyla generate
|
76
|
-
|
77
|
-
|
78
|
-
== 2. Project from Template
|
79
|
-
|
80
|
-
=== 1. Create a project using a template (training)
|
81
|
-
|
82
|
-
hyla new --t training ~/hyla/MyTrainingProject --force
|
83
|
-
hyla new --t training-exercises ~/hyla/MyTrainingExercisesProject --force
|
84
|
-
hyla new --t book --force ~/hyla/MyBookProject --force
|
85
|
-
|
86
|
-
=== 2. Generate content and watch it
|
87
|
-
|
88
|
-
cd ~/hyla/MyTrainingProject
|
89
|
-
ruby -i.bak -pe 'sub(%r{destination: .},"destination: generated_content")' _config.yml
|
90
|
-
hyla generate
|
91
|
-
|
92
|
-
hyla watch --s ~/hyla/MyTrainingProject/ --d ~/hyla/MyTrainingProject/generated_content
|
93
|
-
|
94
|
-
== 3. Table Of Content To asciidoc
|
95
|
-
|
96
|
-
=== 1. Generate an asciidoctor project from a Table of Content
|
97
|
-
|
98
|
-
hyla generate --r toc2adoc --p my-project --d ~/hyla/MyTocProject/ --toc ~/MyProjects/hyla/data/toc.adoc
|
99
|
-
hyla generate --r adoc2html --s ~/hyla/MyTocProject/ --d ~/hyla/MyTocProject/generated_content
|
100
|
-
|
101
|
-
hyla watch --s ~/hyla/MyTocProject/ --d ~/hyla/MyTocProject/generated_content
|
102
|
-
|
103
|
-
=== 2. Generate an asciidoctor project from a Table of Content using YAML config file and watch content
|
104
|
-
|
105
|
-
rm -rf ~/hyla/MyTocProject
|
106
|
-
cd ~/hyla
|
107
|
-
hyla new --blank MyTocProject
|
108
|
-
cd MyTocProject
|
109
|
-
hyla generate --r toc2adoc
|
110
|
-
|
111
|
-
# Change destination in config files or pass info as option
|
112
|
-
# cd ../MyTocProject/
|
113
|
-
# subl _config.yml
|
114
|
-
hyla generate --r adoc2html
|
115
|
-
|
116
|
-
hyla watch --s ~/hyla/MyTocProject/ --d generated_content
|
117
|
-
|
118
|
-
== 4. Generate a DeckJS Slideshow from Table Of Content
|
119
|
-
|
120
|
-
hyla generate --backend deckjs --s ~/hyla/MyTocProject/A_Introduction_module/ --d ~/hyla/MyTocProject/A_Introduction_module/generated_content --r adoc2slide
|
121
|
-
|
122
|
-
== 5. Server content locally - HTTP Server
|
123
|
-
|
124
|
-
hyla serve -P 4000 -H localhost --out_dir ~/hyla/MyTrainingProject/generated_content/ -b /hyla/
|
125
|
-
|
126
|
-
== 6. Generate a Slideshow
|
127
|
-
|
128
|
-
=== 1. DeckJS using a template
|
129
|
-
|
130
|
-
rm -rf ~/hyla/MyDeckSlideShow
|
131
|
-
cd ~/hyla
|
132
|
-
hyla new --blank MyDeckSlideShow
|
133
|
-
hyla create --t slideshow --a deckjs --d MyDeckSlideShow
|
134
|
-
hyla generate --backend deckjs --s ~/hyla/MyDeckSlideShow --d ~/hyla/MyDeckSlideShow/generated_content --r adoc2slide
|
135
|
-
|
136
|
-
=== 2. Different DeckJS Style options
|
137
|
-
|
138
|
-
hyla generate --backend deckjs --s ~/hyla/MyDeckSlideShow --d ~/hyla/MyDeckSlideShow/generated_content --r adoc2slide --a deckjs_theme=swiss,deckjs_transition=fade
|
139
|
-
hyla generate --backend deckjs --s ~/hyla/MyDeckSlideShow --d ~/hyla/MyDeckSlideShow/generated_content --r adoc2slide --a deckjs_theme=web-2.0,deckjs_transition=horizontal-slide
|
140
|
-
|
141
|
-
=== 3. RevealJS
|
142
|
-
|
143
|
-
rm -rf ~/hyla/MyRevealSlideShow
|
144
|
-
cd ~/hyla
|
145
|
-
hyla new --blank MyRevealSlideShow
|
146
|
-
hyla create --t slideshow --a revealjs --d MyRevealSlideShow
|
147
|
-
cd MyRevealSlideShow
|
148
|
-
hyla generate --backend revealjs --s . --d generated_content --r adoc2slide
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|