hyla 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +6 -2
  3. data/bin/hyla +3 -2
  4. data/lib/hyla/commands/generate.rb +43 -41
  5. data/lib/hyla/configuration.rb +1 -1
  6. data/lib/hyla/project.rb +1 -1
  7. data/lib/resources/assets/revealjs-redhat/image/collapsed.png +0 -0
  8. data/lib/resources/assets/revealjs-redhat/image/expanded.png +0 -0
  9. data/lib/resources/assets/revealjs-redhat/lib/css/conference.css +663 -0
  10. data/lib/resources/assets/revealjs-redhat/lib/css/font-awesome-4.3.0.css +2886 -1098
  11. data/lib/resources/assets/revealjs-redhat/lib/css/gpe.css +746 -180
  12. data/lib/resources/assets/revealjs-redhat/lib/css/print/pdf.css +32 -65
  13. data/lib/resources/assets/revealjs-redhat/lib/css/theme-output.css +1509 -395
  14. data/lib/resources/assets/revealjs-redhat/lib/css/theme-v2-liberation.css +4332 -1366
  15. data/lib/resources/assets/revealjs-redhat/lib/css/theme-v2-overpass.css +4320 -1364
  16. data/lib/resources/assets/revealjs-redhat/lib/js/debug/gpe.js +8 -8
  17. data/lib/resources/assets/revealjs-redhat/lib/js/debug/reveal.js +129 -91
  18. data/lib/resources/assets/revealjs-redhat/lib/js/gpe.min.js +3 -3
  19. data/lib/resources/assets/revealjs-redhat/lib/js/reveal.min.js +18 -13
  20. data/lib/resources/assets/revealjs/css/theme/conference-redhat.css +14 -6
  21. data/lib/resources/assets/revealjs/css/theme/old-gpe.css +670 -181
  22. data/lib/resources/assets/revealjs/js/{reveal.js → debug/reveal.js} +1619 -492
  23. data/lib/resources/assets/revealjs/js/reveal.min.js +342 -9
  24. data/lib/resources/assets/revealjs/lib/css/font-awesome-4.3.0.css +2886 -1098
  25. data/lib/resources/assets/sass/conference.scss +589 -0
  26. data/lib/resources/assets/sass/new-gpe.scss +79 -0
  27. data/lib/resources/backends/slim/revealjs-redhat/block_paragraph.html.slim +18 -6
  28. data/lib/resources/backends/slim/revealjs-redhat/block_ulist.html.slim +25 -9
  29. data/lib/resources/backends/slim/revealjs/document.html.slim +1 -1
  30. data/lib/templates/course/audio.txt +2 -2
  31. data/lib/templates/course/cover.txt +19 -7
  32. data/lib/templates/course/footer.txt +1 -3
  33. data/lib/templates/course/index.txt +2 -2
  34. data/lib/templates/course/labinstructions.txt +1 -3
  35. data/lib/templates/course/objectives.txt +1 -12
  36. data/lib/templates/course/summary.txt +1 -8
  37. metadata +7 -3
@@ -594,4 +594,83 @@ ol.lowergreek {
594
594
 
595
595
  .reveal .listingblock {
596
596
  padding-bottom: 10px;
597
+ }
598
+
599
+ /********************/
600
+ /* EXPANDABLE LIST */
601
+ /********************/
602
+ .reveal #expandlist {
603
+ list-style: none;
604
+ margin: 0;
605
+ padding: 0;
606
+ cursor: pointer;
607
+ }
608
+
609
+ #expandlist p {
610
+ margin: 0;
611
+ display: block;
612
+ }
613
+
614
+ #expandlist li {
615
+ line-height: 130%;
616
+ text-indent: 0px;
617
+ background-position: 1px 8px;
618
+ padding-left: 30px;
619
+ background-repeat: no-repeat;
620
+ }
621
+
622
+ /* Collapsed state for list element */
623
+ #expandlist .collapsed {
624
+ background-image: url(../../image/collapsed.png);
625
+ }
626
+
627
+ /* Expanded state for list element
628
+ /* NOTE: This class must be located UNDER the collapsed one */
629
+ #expandlist .expanded {
630
+ background-image: url(../../image/expanded.png);
631
+ }
632
+
633
+ /**************************/
634
+ /* Show / Hide Text block */
635
+ /**************************/
636
+ #showhide {
637
+ background: #a0100c;
638
+ display: block;
639
+ padding: 1.75em;
640
+ border: 1px solid darkgray;
641
+ }
642
+
643
+ #showhide:before {
644
+ display: block;
645
+ content: 'Click to view audio transcript ';
646
+ font-family: 'Liberation Sans', arial;
647
+ font-size: 1em;
648
+ font-weight: 900;
649
+ max-height: 0;
650
+ color: #f4f4f4;
651
+ }
652
+
653
+ .acontent {
654
+ background: #b7bcbe;
655
+ overflow: hidden;
656
+ clear: both;
657
+ max-height: 0;
658
+ font-family: 'Liberation Sans', arial;
659
+ }
660
+
661
+ /* We don't want to show the check box */
662
+ input[type="checkbox"] {
663
+ display: none;
664
+ }
665
+
666
+ input[type="checkbox"]:checked ~ .acontent {
667
+ padding: 0.75rem 0.75rem 1.5rem;
668
+ border-bottom: 1px solid #ccc;
669
+ max-height: 2000px;
670
+ }
671
+
672
+ /* Content displayed after clicking on the virtual checkbox */
673
+ input[type="checkbox"]:checked ~ #showhide:before {
674
+ content: 'Audio Transcript';
675
+ margin-top: 0em;
597
676
  }
@@ -1,16 +1,28 @@
1
1
  - level = "#{@id}"[-1,1]
2
+ - blockminwidth = (attr? :min_width) ? (attr :min_width) : '30px'
3
+ - blockminheight = (attr? :min_height) ? (attr :min_height) : '30px'
4
+ - blockheight = (attr? :height) ? (attr :height) : 'auto'
5
+ - blockwidth = (attr? :width) ? (attr :width) : 'auto'
6
+ - blockleft = (attr? :left) ? (attr :left) : 'auto'
7
+ - blocktop = (attr? :top) ? (attr :top) : 'auto'
8
+ - blockbottom = (attr? :bottom) ? (attr :bottom) : 'auto'
2
9
  //- level_tag = "h#{level}"
3
10
  - if "#{@id}".start_with?("cover")
4
11
  - if level == "1"
5
- .sl-block data-block-type="text" style="width: 832px; left: 80px; top: 150px; height: auto;" class=role
12
+ // .sl-block data-block-type="text" style="width: 832px; left: 80px; top: 150px; height: auto;" class=role
13
+ .sl-block data-block-type="text" style=[("min-width: #{blockminwidth}"),("min-height: #{blockminheight}"), ("width: #{blockwidth}"),("height: #{blockheight}"),("left: #{blockleft}"),("top: #{blocktop}"),("bottom: #{blockbottom}")].compact.join('; ') class=role
6
14
  .sl-block-content class=role
7
15
  h1 =content
8
16
  - else
9
- .sl-block data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 776px; left: 80px; top: 350px;" class=role
17
+ .sl-block data-block-type="text" style=[("min-width: #{blockminwidth}"),("min-height: #{blockminheight}"), ("width: #{blockwidth}"),("height: #{blockheight}"),("left: #{blockleft}"),("top: #{blocktop}"),("bottom: #{blockbottom}")].compact.join('; ') class=role
10
18
  .sl-block-content class=role
11
19
  h2 =content
12
20
  - else
13
- .paragraph id=@id class=role
14
- - if title?
15
- .title=title
16
- p=content
21
+ - if "#{@id}".start_with?("block")
22
+ .sl-block data-block-type="text" style=[("min-width: #{blockwidth}"),("min-height: #{blockheight}"),("left: #{blockleft}"),("top: #{blocktop}"),("bottom: #{blockbottom}")].compact.join('; ') class=role
23
+ p=content
24
+ - else
25
+ .paragraph id=@id class=role
26
+ - if title?
27
+ .title=title
28
+ p=content
@@ -10,16 +10,32 @@
10
10
  / could use &#9745 (checked ballot) and &#9744 (ballot) w/o font instead
11
11
  - marker_checked = '<input type="checkbox" data-item-complete="1" checked disabled>'
12
12
  - marker_unchecked = '<input type="checkbox" data-item-complete="0" disabled>'
13
- .ulist id=@id class=[checklist,@style,role]
14
- - if title?
15
- .title=title
16
- ul class=(checklist || @style)
17
- - items.each do |item|
18
- li
19
- p
13
+ - if "#{@id}".start_with?("expandlist")
14
+ .ulist class=[checklist,@style,role]
15
+ - if title?
16
+ .title=title
17
+ // the id has been moved as the jquery script will search about it to collapse/elapse the list
18
+ ul id=@id class=(checklist || @style)
19
+ - items.each do |item|
20
+ li
21
+ // We have also removed the <p> tag element
20
22
  - if checklist && (item.attr? :checkbox)
21
23
  =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked}#{item.text})
22
24
  - else
23
25
  =item.text
24
- - if item.blocks?
25
- =item.content
26
+ - if item.blocks?
27
+ =item.content
28
+ - else
29
+ .ulist id=@id class=[checklist,@style,role]
30
+ - if title?
31
+ .title=title
32
+ ul class=(checklist || @style)
33
+ - items.each do |item|
34
+ li
35
+ p
36
+ - if checklist && (item.attr? :checkbox)
37
+ =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked}#{item.text})
38
+ - else
39
+ =item.text
40
+ - if item.blocks?
41
+ =item.content
@@ -148,7 +148,7 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
148
148
  theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
149
149
 
150
150
  // Transition style
151
- transition: Reveal.getQueryHash().transition || '#{transition}', // default/cube/page/concave/zoom/linear/fade/none
151
+ transition: Reveal.getQueryHash().transition || '#{attr 'revealjs_transition', 'default'}', // default/cube/page/concave/zoom/linear/fade/none
152
152
 
153
153
  // Optional libraries used to extend on reveal.js
154
154
  dependencies: [
@@ -1,3 +1,3 @@
1
- ifdef::audioscript[]
1
+ ifdef::showscript[]
2
2
  audio::audio/xxx.mp3[]
3
- endif::[]
3
+ endif::showscript[]
@@ -1,13 +1,25 @@
1
- :noheader: true
1
+ :noaudio:
2
2
 
3
- // No title should be displayed for Slideshow presentation as the cover picture already content the text
4
- ifdef::slideshow[]
3
+ ifdef::revealjs_slideshow[]
4
+ [#cover,data-background-image="revealjs-redhat/image/1156524-bg_redhat.png" data-background-color="#cc0000"]
5
5
  == &nbsp;
6
+
7
+ [#cover-h1]
8
+ COURSE_TITLE
9
+
10
+ [#cover-h2]
11
+ MODULE_TITLE
12
+
13
+ [#cover-logo]
14
+ image::{revealjs_cover_image}[]
15
+
6
16
  endif::[]
7
17
 
8
- ifndef::slideshow[]
18
+ ifndef::revealjs_slideshow[]
9
19
  == Cover
10
- endif::[]
11
20
 
12
- [.cover]
13
- image::image/xxx.png[]
21
+ COURSE_TITLE
22
+
23
+ MODULE_TITLE
24
+
25
+ endif::[]
@@ -1,10 +1,8 @@
1
1
  ifdef::showscript[]
2
2
  [.notes]
3
3
  ****
4
- //tag::snippet[]
5
4
 
6
5
  == TITLE
7
6
 
8
- //end::snippet[]
9
7
  ****
10
- endif::[]
8
+ endif::showscript[]
@@ -1,3 +1,3 @@
1
- ifndef::slideshow[]
1
+ ifndef::revealjs_slideshow[]
2
2
  == xxx
3
- endif::[]
3
+ endif::revealjs_slideshow[]
@@ -19,8 +19,6 @@ The lab exercises and solutions are available in the following zip archives:
19
19
  ifdef::showscript[]
20
20
  [.notes]
21
21
  ****
22
- //tag::snippet[]
23
22
 
24
- //end::snippet[]
25
23
  ****
26
- endif::[]
24
+ endif::showscript[]
@@ -1,10 +1,5 @@
1
-
2
1
  == Module Topics
3
2
 
4
- ifdef::audioscript[]
5
- audio::audio/xxx.mp3[]
6
- endif::[]
7
-
8
3
  By completing this module you will learn about the following topics:
9
4
 
10
5
  * Item 1
@@ -13,16 +8,10 @@ By completing this module you will learn about the following topics:
13
8
  ifdef::showscript[]
14
9
  [.notes]
15
10
  ****
16
- //tag::snippet[]
17
11
 
18
12
  == Module Topics
19
13
 
20
- ifdef::audioscript[]
21
- audio::audio/xxx.mp3[]
22
- endif::[]
23
-
24
14
  * This module introduces ...
25
15
 
26
- //end::snippet[]
27
16
  ****
28
- endif::[]
17
+ endif::showscript[]
@@ -1,10 +1,5 @@
1
-
2
1
  == Summary
3
2
 
4
- ifdef::includeaudio[]
5
- audio::audio/xxx.mp3[]
6
- endif::[]
7
-
8
3
  This module introduced you to the following topics:
9
4
 
10
5
  ** Item 1
@@ -14,14 +9,12 @@ This module introduced you to the following topics:
14
9
  ifdef::showscript[]
15
10
  [.notes]
16
11
  ****
17
- //tag::snippet[]
18
12
 
19
13
  == Summary
20
14
 
21
15
  This module addressed questions about ...
22
16
 
23
- //end::snippet[]
24
17
  ****
25
- endif::[]
18
+ endif::showscript[]
26
19
 
27
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyla
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Moulliard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-17 00:00:00.000000000 Z
11
+ date: 2015-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -589,6 +589,9 @@ files:
589
589
  - lib/resources/assets/fonts/liberation/Sans-Regular.ttf
590
590
  - lib/resources/assets/revealjs-redhat/image/1156515-Logo_RH_RGB_Reverse.png
591
591
  - lib/resources/assets/revealjs-redhat/image/1156524-bg_redhat.png
592
+ - lib/resources/assets/revealjs-redhat/image/collapsed.png
593
+ - lib/resources/assets/revealjs-redhat/image/expanded.png
594
+ - lib/resources/assets/revealjs-redhat/lib/css/conference.css
592
595
  - lib/resources/assets/revealjs-redhat/lib/css/font-awesome-4.3.0.css
593
596
  - lib/resources/assets/revealjs-redhat/lib/css/gpe.css
594
597
  - lib/resources/assets/revealjs-redhat/lib/css/highlightjs/agate.min.css
@@ -736,7 +739,7 @@ files:
736
739
  - lib/resources/assets/revealjs/css/theme/template/mixins.scss
737
740
  - lib/resources/assets/revealjs/css/theme/template/settings.scss
738
741
  - lib/resources/assets/revealjs/css/theme/template/theme.scss
739
- - lib/resources/assets/revealjs/js/reveal.js
742
+ - lib/resources/assets/revealjs/js/debug/reveal.js
740
743
  - lib/resources/assets/revealjs/js/reveal.min.js
741
744
  - lib/resources/assets/revealjs/lib/css/font-awesome-4.3.0.css
742
745
  - lib/resources/assets/revealjs/lib/css/highlightjs/agate.min.css
@@ -853,6 +856,7 @@ files:
853
856
  - lib/resources/assets/sass/_liberation.scss
854
857
  - lib/resources/assets/sass/_liberation2.scss
855
858
  - lib/resources/assets/sass/_overpass.scss
859
+ - lib/resources/assets/sass/conference.scss
856
860
  - lib/resources/assets/sass/font-awesome.scss
857
861
  - lib/resources/assets/sass/fontawesome/_animated.scss
858
862
  - lib/resources/assets/sass/fontawesome/_bordered-pulled.scss