hyla 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile.lock +35 -7
- data/README.adoc +10 -2
- data/bin/hyla +16 -13
- data/hyla.gemspec +6 -3
- data/lib/hyla.rb +5 -1
- data/lib/hyla/command.rb +12 -10
- data/lib/hyla/commands/create.rb +21 -12
- data/lib/hyla/commands/generate.rb +168 -59
- data/lib/hyla/commands/new.rb +36 -15
- data/lib/hyla/commands/watch.rb +6 -2
- data/lib/hyla/configuration.rb +169 -27
- data/lib/hyla/core_ext.rb +24 -0
- data/lib/hyla/project.rb +1 -1
- data/lib/resources/backends/haml/deckjs/block_admonition.html.haml +14 -0
- data/lib/resources/backends/haml/deckjs/block_audio.html.haml +7 -0
- data/lib/resources/backends/haml/deckjs/block_colist.html.haml +21 -0
- data/lib/resources/backends/haml/deckjs/block_dlist.html.haml +54 -0
- data/lib/resources/backends/haml/deckjs/block_example.haml.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_floating_title.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/deckjs/block_listing.html.haml +32 -0
- data/lib/resources/backends/haml/deckjs/block_literal.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_olist.html.haml +11 -0
- data/lib/resources/backends/haml/deckjs/block_open.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_page_break.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_paragraph.html.haml +4 -0
- data/lib/resources/backends/haml/deckjs/block_pass.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_preamble.html.haml +3 -0
- data/lib/resources/backends/haml/deckjs/block_quote.html.haml +12 -0
- data/lib/resources/backends/haml/deckjs/block_ruler.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_sidebar.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_table.html.haml +48 -0
- data/lib/resources/backends/haml/deckjs/block_ulist.html.haml +25 -0
- data/lib/resources/backends/haml/deckjs/block_verse.html.haml +13 -0
- data/lib/resources/backends/haml/deckjs/block_video.html.haml +24 -0
- data/lib/resources/backends/haml/deckjs/document.html.haml +182 -0
- data/lib/resources/backends/haml/deckjs/embedded.html.haml +10 -0
- data/lib/resources/backends/haml/deckjs/inline_anchor.html.haml +12 -0
- data/lib/resources/backends/haml/deckjs/inline_break.html.haml +2 -0
- data/lib/resources/backends/haml/deckjs/inline_callout.html.haml +7 -0
- data/lib/resources/backends/haml/deckjs/inline_footnote.html.haml +8 -0
- data/lib/resources/backends/haml/deckjs/inline_image.html.haml +24 -0
- data/lib/resources/backends/haml/deckjs/inline_indexterm.html.haml +2 -0
- data/lib/resources/backends/haml/deckjs/inline_quoted.html.haml +19 -0
- data/lib/resources/backends/haml/deckjs/section.html.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_admonition.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_colist.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_dlist.xml.haml +61 -0
- data/lib/resources/backends/haml/docbook45/block_example.xml.haml +14 -0
- data/lib/resources/backends/haml/docbook45/block_floating_title.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_image.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_listing.xml.haml +14 -0
- data/lib/resources/backends/haml/docbook45/block_literal.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_olist.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_open.xml.haml +25 -0
- data/lib/resources/backends/haml/docbook45/block_page_break.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_paragraph.xml.haml +6 -0
- data/lib/resources/backends/haml/docbook45/block_pass.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_preamble.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_quote.xml.haml +13 -0
- data/lib/resources/backends/haml/docbook45/block_ruler.xml.haml +2 -0
- data/lib/resources/backends/haml/docbook45/block_sidebar.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_table.xml.haml +37 -0
- data/lib/resources/backends/haml/docbook45/block_ulist.xml.haml +18 -0
- data/lib/resources/backends/haml/docbook45/block_verse.xml.haml +10 -0
- data/lib/resources/backends/haml/docbook45/document.xml.haml +63 -0
- data/lib/resources/backends/haml/docbook45/embedded.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/helpers.rb +7 -0
- data/lib/resources/backends/haml/docbook45/inline_anchor.xml.haml +13 -0
- data/lib/resources/backends/haml/docbook45/inline_break.xml.haml +2 -0
- data/lib/resources/backends/haml/docbook45/inline_callout.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/inline_footnote.xml.haml +5 -0
- data/lib/resources/backends/haml/docbook45/inline_image.xml.haml +5 -0
- data/lib/resources/backends/haml/docbook45/inline_indexterm.xml.haml +18 -0
- data/lib/resources/backends/haml/docbook45/inline_quoted.xml.haml +21 -0
- data/lib/resources/backends/haml/docbook45/section.xml.haml +5 -0
- data/lib/resources/backends/haml/html5/block_admonition.html.haml +14 -0
- data/lib/resources/backends/haml/html5/block_audio.html.haml +7 -0
- data/lib/resources/backends/haml/html5/block_colist.html.haml +21 -0
- data/lib/resources/backends/haml/html5/block_dlist.html.haml +54 -0
- data/lib/resources/backends/haml/html5/block_example.haml.haml +5 -0
- data/lib/resources/backends/haml/html5/block_floating_title.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/html5/block_listing.html.haml +31 -0
- data/lib/resources/backends/haml/html5/block_literal.html.haml +5 -0
- data/lib/resources/backends/haml/html5/block_math.html.haml +10 -0
- data/lib/resources/backends/haml/html5/block_olist.html.haml +9 -0
- data/lib/resources/backends/haml/html5/block_open.html.haml +15 -0
- data/lib/resources/backends/haml/html5/block_page_break.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_paragraph.html.haml +4 -0
- data/lib/resources/backends/haml/html5/block_pass.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_preamble.html.haml +6 -0
- data/lib/resources/backends/haml/html5/block_quote.html.haml +12 -0
- data/lib/resources/backends/haml/html5/block_ruler.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_sidebar.html.haml +5 -0
- data/lib/resources/backends/haml/html5/block_table.html.haml +47 -0
- data/lib/resources/backends/haml/html5/block_toc.html.haml +11 -0
- data/lib/resources/backends/haml/html5/block_ulist.html.haml +25 -0
- data/lib/resources/backends/haml/html5/block_verse.html.haml +13 -0
- data/lib/resources/backends/haml/html5/block_video.html.haml +27 -0
- data/lib/resources/backends/haml/html5/document.html.haml +114 -0
- data/lib/resources/backends/haml/html5/embedded.html.haml +10 -0
- data/lib/resources/backends/haml/html5/helpers.rb +7 -0
- data/lib/resources/backends/haml/html5/inline_anchor.html.haml +11 -0
- data/lib/resources/backends/haml/html5/inline_break.html.haml +2 -0
- data/lib/resources/backends/haml/html5/inline_button.html.haml +1 -0
- data/lib/resources/backends/haml/html5/inline_callout.html.haml +7 -0
- data/lib/resources/backends/haml/html5/inline_footnote.html.haml +8 -0
- data/lib/resources/backends/haml/html5/inline_image.html.haml +24 -0
- data/lib/resources/backends/haml/html5/inline_indexterm.html.haml +2 -0
- data/lib/resources/backends/haml/html5/inline_kbd.html.haml +8 -0
- data/lib/resources/backends/haml/html5/inline_menu.html.haml +15 -0
- data/lib/resources/backends/haml/html5/inline_quoted.html.haml +22 -0
- data/lib/resources/backends/haml/html5/section.html.haml +21 -0
- data/lib/resources/backends/haml/revealjs/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/revealjs/block_olist.html.haml +8 -0
- data/lib/resources/backends/haml/revealjs/block_ulist.html.haml +8 -0
- data/lib/resources/backends/haml/revealjs/document.html.haml +61 -0
- data/lib/resources/backends/haml/revealjs/section.html.haml +10 -0
- data/lib/resources/backends/slim/docbook45/block_admonition.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_colist.xml.slim +8 -0
- data/lib/resources/backends/slim/docbook45/block_dlist.xml.slim +61 -0
- data/lib/resources/backends/slim/docbook45/block_example.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/block_floating_title.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_image.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_listing.xml.slim +14 -0
- data/lib/resources/backends/slim/docbook45/block_literal.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_olist.xml.slim +8 -0
- data/lib/resources/backends/slim/docbook45/block_open.xml.slim +25 -0
- data/lib/resources/backends/slim/docbook45/block_page_break.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_paragraph.xml.slim +6 -0
- data/lib/resources/backends/slim/docbook45/block_pass.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_preamble.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_quote.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/block_ruler.xml.slim +2 -0
- data/lib/resources/backends/slim/docbook45/block_sidebar.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_table.xml.slim +36 -0
- data/lib/resources/backends/slim/docbook45/block_ulist.xml.slim +18 -0
- data/lib/resources/backends/slim/docbook45/block_verse.xml.slim +10 -0
- data/lib/resources/backends/slim/docbook45/document.xml.slim +63 -0
- data/lib/resources/backends/slim/docbook45/embedded.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/helpers.rb +9 -0
- data/lib/resources/backends/slim/docbook45/inline_anchor.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/inline_break.xml.slim +2 -0
- data/lib/resources/backends/slim/docbook45/inline_callout.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/inline_footnote.xml.slim +4 -0
- data/lib/resources/backends/slim/docbook45/inline_image.xml.slim +4 -0
- data/lib/resources/backends/slim/docbook45/inline_indexterm.xml.slim +16 -0
- data/lib/resources/backends/slim/docbook45/inline_quoted.xml.slim +21 -0
- data/lib/resources/backends/slim/docbook45/section.xml.slim +5 -0
- data/lib/resources/backends/slim/document.html.bk.slim +335 -0
- data/lib/resources/backends/slim/dzslides/block_admonition.html.slim +19 -0
- data/lib/resources/backends/slim/dzslides/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/dzslides/block_dlist.html.slim +10 -0
- data/lib/resources/backends/slim/dzslides/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/dzslides/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_image.html.slim +14 -0
- data/lib/resources/backends/slim/dzslides/block_listing.html.slim +8 -0
- data/lib/resources/backends/slim/dzslides/block_literal.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/block_olist.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/block_open.html.slim +4 -0
- data/lib/resources/backends/slim/dzslides/block_paragraph.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_quote.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/dzslides/block_ulist.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/block_verse.html.slim +12 -0
- data/lib/resources/backends/slim/dzslides/block_video.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/document.html.slim +67 -0
- data/lib/resources/backends/slim/dzslides/embedded.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/helpers.rb +9 -0
- data/lib/resources/backends/slim/dzslides/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/dzslides/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/dzslides/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/dzslides/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/dzslides/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/dzslides/inline_quoted.html.slim +23 -0
- data/lib/resources/backends/slim/dzslides/section.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_admonition.html.slim +13 -0
- data/lib/resources/backends/slim/html5/block_audio.html.slim +6 -0
- data/lib/resources/backends/slim/html5/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/html5/block_dlist.html.slim +53 -0
- data/lib/resources/backends/slim/html5/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_image.html.slim +10 -0
- data/lib/resources/backends/slim/html5/block_listing.html.slim +31 -0
- data/lib/resources/backends/slim/html5/block_literal.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_math.html.slim +10 -0
- data/lib/resources/backends/slim/html5/block_olist.html.slim +9 -0
- data/lib/resources/backends/slim/html5/block_open.html.slim +15 -0
- data/lib/resources/backends/slim/html5/block_page_break.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_paragraph.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_preamble.html.slim +6 -0
- data/lib/resources/backends/slim/html5/block_quote.html.slim +14 -0
- data/lib/resources/backends/slim/html5/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_sidebar.html.slim +5 -0
- data/lib/resources/backends/slim/html5/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/html5/block_toc.html.slim +12 -0
- data/lib/resources/backends/slim/html5/block_ulist.html.slim +25 -0
- data/lib/resources/backends/slim/html5/block_verse.html.slim +14 -0
- data/lib/resources/backends/slim/html5/block_video.html.slim +27 -0
- data/lib/resources/backends/slim/html5/document.html.slim +112 -0
- data/lib/resources/backends/slim/html5/embedded.html.slim +9 -0
- data/lib/resources/backends/slim/html5/helpers.rb +8 -0
- data/lib/resources/backends/slim/html5/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/html5/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/html5/inline_button.html.slim +1 -0
- data/lib/resources/backends/slim/html5/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/html5/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/html5/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/html5/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/html5/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/html5/inline_menu.html.slim +15 -0
- data/lib/resources/backends/slim/html5/inline_quoted.html.slim +22 -0
- data/lib/resources/backends/slim/html5/section.html.slim +20 -0
- data/lib/resources/backends/slim/revealjs/block_admonition.html.slim +13 -0
- data/lib/resources/backends/slim/revealjs/block_audio.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/revealjs/block_dlist.html.slim +53 -0
- data/lib/resources/backends/slim/revealjs/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_image.html.slim +10 -0
- data/lib/resources/backends/slim/revealjs/block_listing.html.slim +31 -0
- data/lib/resources/backends/slim/revealjs/block_literal.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_math.html.slim +10 -0
- data/lib/resources/backends/slim/revealjs/block_olist.html.slim +9 -0
- data/lib/resources/backends/slim/revealjs/block_open.html.slim +15 -0
- data/lib/resources/backends/slim/revealjs/block_page_break.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_paragraph.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_preamble.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/block_quote.html.slim +14 -0
- data/lib/resources/backends/slim/revealjs/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_sidebar.html.slim +5 -0
- data/lib/resources/backends/slim/revealjs/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/revealjs/block_toc.html.slim +12 -0
- data/lib/resources/backends/slim/revealjs/block_ulist.html.slim +25 -0
- data/lib/resources/backends/slim/revealjs/block_verse.html.slim +14 -0
- data/lib/resources/backends/slim/revealjs/block_video.html.slim +27 -0
- data/lib/resources/backends/slim/revealjs/document.html.slim +87 -0
- data/lib/resources/backends/slim/revealjs/embedded.html.slim +9 -0
- data/lib/resources/backends/slim/revealjs/helpers.rb +8 -0
- data/lib/resources/backends/slim/revealjs/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/revealjs/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/revealjs/inline_button.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/revealjs/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/revealjs/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/revealjs/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/revealjs/inline_menu.html.slim +15 -0
- data/lib/resources/backends/slim/revealjs/inline_quoted.html.slim +22 -0
- data/lib/resources/backends/slim/revealjs/section.html.slim +3 -0
- data/lib/resources/deck.js/core/deck.core.css +407 -0
- data/lib/resources/deck.js/core/deck.core.js +498 -0
- data/lib/resources/deck.js/extensions/deck.js-blank/README.md +10 -0
- data/lib/resources/deck.js/extensions/deck.js-blank/deck.blank.js +33 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.css +41 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.html +7 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.js +170 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.css +13 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.html +2 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.js +142 -0
- data/lib/resources/deck.js/extensions/menu/deck.menu.css +47 -0
- data/lib/resources/deck.js/extensions/menu/deck.menu.js +187 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.css +43 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.html +3 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.js +92 -0
- data/lib/resources/deck.js/extensions/scale/deck.scale.css +28 -0
- data/lib/resources/deck.js/extensions/scale/deck.scale.js +170 -0
- data/lib/resources/deck.js/extensions/split/README.md +30 -0
- data/lib/resources/deck.js/extensions/split/deck.split.js +59 -0
- data/lib/resources/deck.js/extensions/status/deck.status.css +18 -0
- data/lib/resources/deck.js/extensions/status/deck.status.html +6 -0
- data/lib/resources/deck.js/extensions/status/deck.status.js +95 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.css +40 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.html +12 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.js +271 -0
- data/lib/resources/deck.js/jquery-1.7.2.min.js +4 -0
- data/lib/resources/deck.js/jquery.min.js +4 -0
- data/lib/resources/deck.js/modernizr.custom.js +4 -0
- data/lib/resources/deck.js/themes/style/beamer.css +286 -0
- data/lib/resources/deck.js/themes/style/neon.css +123 -0
- data/lib/resources/deck.js/themes/style/swiss.css +84 -0
- data/lib/resources/deck.js/themes/style/web-2.0.css +214 -0
- data/lib/resources/deck.js/themes/transition/beamer.css +66 -0
- data/lib/resources/deck.js/themes/transition/fade.css +43 -0
- data/lib/resources/deck.js/themes/transition/horizontal-slide.css +76 -0
- data/lib/resources/deck.js/themes/transition/vertical-slide.css +94 -0
- data/lib/resources/revealjs/LICENSE +19 -0
- data/lib/resources/revealjs/css/print/paper.css +176 -0
- data/lib/resources/revealjs/css/print/pdf.css +190 -0
- data/lib/resources/revealjs/css/reveal.css +1880 -0
- data/lib/resources/revealjs/css/reveal.min.css +7 -0
- data/lib/resources/revealjs/css/theme/README.md +25 -0
- data/lib/resources/revealjs/css/theme/beige.css +148 -0
- data/lib/resources/revealjs/css/theme/blood.css +175 -0
- data/lib/resources/revealjs/css/theme/default.css +148 -0
- data/lib/resources/revealjs/css/theme/moon.css +148 -0
- data/lib/resources/revealjs/css/theme/night.css +136 -0
- data/lib/resources/revealjs/css/theme/serif.css +138 -0
- data/lib/resources/revealjs/css/theme/simple.css +138 -0
- data/lib/resources/revealjs/css/theme/sky.css +145 -0
- data/lib/resources/revealjs/css/theme/solarized.css +148 -0
- data/lib/resources/revealjs/css/theme/source/beige.scss +50 -0
- data/lib/resources/revealjs/css/theme/source/blood.scss +91 -0
- data/lib/resources/revealjs/css/theme/source/default.scss +42 -0
- data/lib/resources/revealjs/css/theme/source/moon.scss +68 -0
- data/lib/resources/revealjs/css/theme/source/night.scss +35 -0
- data/lib/resources/revealjs/css/theme/source/serif.scss +35 -0
- data/lib/resources/revealjs/css/theme/source/simple.scss +38 -0
- data/lib/resources/revealjs/css/theme/source/sky.scss +46 -0
- data/lib/resources/revealjs/css/theme/source/solarized.scss +74 -0
- data/lib/resources/revealjs/css/theme/template/mixins.scss +29 -0
- data/lib/resources/revealjs/css/theme/template/settings.scss +34 -0
- data/lib/resources/revealjs/css/theme/template/theme.scss +170 -0
- data/lib/resources/revealjs/js/reveal.js +3382 -0
- data/lib/resources/revealjs/js/reveal.min.js +9 -0
- data/lib/resources/revealjs/lib/css/zenburn.css +114 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.eot +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.svg +230 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.ttf +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.woff +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic_license +2 -0
- data/lib/resources/revealjs/lib/js/classList.js +2 -0
- data/lib/resources/revealjs/lib/js/head.min.js +8 -0
- data/lib/resources/revealjs/lib/js/html5shiv.js +7 -0
- data/lib/resources/revealjs/plugin/highlight/highlight.js +32 -0
- data/lib/resources/revealjs/plugin/leap/leap.js +157 -0
- data/lib/resources/revealjs/plugin/markdown/example.html +129 -0
- data/lib/resources/revealjs/plugin/markdown/example.md +31 -0
- data/lib/resources/revealjs/plugin/markdown/markdown.js +392 -0
- data/lib/resources/revealjs/plugin/markdown/marked.js +37 -0
- data/lib/resources/revealjs/plugin/math/math.js +64 -0
- data/lib/resources/revealjs/plugin/multiplex/client.js +13 -0
- data/lib/resources/revealjs/plugin/multiplex/index.js +56 -0
- data/lib/resources/revealjs/plugin/multiplex/master.js +51 -0
- data/lib/resources/revealjs/plugin/notes-server/client.js +57 -0
- data/lib/resources/revealjs/plugin/notes-server/index.js +59 -0
- data/lib/resources/revealjs/plugin/notes-server/notes.html +142 -0
- data/lib/resources/revealjs/plugin/notes/notes.html +267 -0
- data/lib/resources/revealjs/plugin/notes/notes.js +78 -0
- data/lib/resources/revealjs/plugin/postmessage/example.html +39 -0
- data/lib/resources/revealjs/plugin/postmessage/postmessage.js +42 -0
- data/lib/resources/revealjs/plugin/print-pdf/print-pdf.js +44 -0
- data/lib/resources/revealjs/plugin/remotes/remotes.js +39 -0
- data/lib/resources/revealjs/plugin/search/search.js +196 -0
- data/lib/resources/revealjs/plugin/zoom-js/zoom.js +258 -0
- data/lib/resources/styles/asciidoctor.css +652 -0
- data/lib/resources/styles/colony.css +660 -0
- data/lib/resources/styles/foundation-lime.css +657 -0
- data/lib/resources/styles/foundation-potion.css +657 -0
- data/lib/resources/styles/foundation.css +648 -0
- data/lib/resources/styles/github.css +669 -0
- data/lib/resources/styles/golo.css +669 -0
- data/lib/resources/styles/iconic.css +692 -0
- data/lib/resources/styles/maker.css +668 -0
- data/lib/resources/styles/readthedocs.css +669 -0
- data/lib/resources/styles/redhat.css +654 -0
- data/lib/resources/styles/riak.css +689 -0
- data/lib/resources/styles/rocket-panda.css +662 -0
- data/lib/resources/styles/rubygems.css +650 -0
- data/lib/templates/_config.yml +27 -0
- data/lib/templates/{training → book}/GemFile +2 -1
- data/lib/templates/{training → book}/development/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/book/development/book.adoc +121 -0
- data/lib/templates/{training → book}/development/image/hyla_frog.jpg +0 -0
- data/lib/templates/{training → book}/development/video/small.ogv +0 -0
- data/lib/templates/{training → book}/introduction/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/book/introduction/book.adoc +121 -0
- data/lib/templates/{training → book}/introduction/image/hyla_frog.jpg +0 -0
- data/lib/templates/{training → book}/introduction/video/small.ogv +0 -0
- data/lib/templates/book/readme.adoc +10 -0
- data/lib/templates/sample/asciidoc_article.adoc +101 -10
- data/lib/templates/sample/asciidoc_audio.adoc +1 -1
- data/lib/templates/sample/asciidoc_book.adoc +125 -0
- data/lib/templates/sample/asciidoc_image.adoc +26 -0
- data/lib/templates/sample/asciidoc_report.adoc +66 -0
- data/lib/templates/sample/asciidoc_source.adoc +53 -0
- data/lib/templates/sample/asciidoc_table.adoc +36 -0
- data/lib/templates/sample/asciidoc_video.adoc +9 -1
- data/lib/templates/sample/slideshow_revealjs.adoc +26 -0
- data/lib/templates/training-exercises/_config.yml +3 -0
- data/lib/templates/training/{introduction → module-1}/article.adoc +7 -2
- data/lib/templates/training/module-1/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/training/module-1/image/hyla_arborea.jpg +0 -0
- data/lib/templates/training/module-1/video/small.ogv +0 -0
- data/lib/templates/training/{development → module-2}/article.adoc +7 -2
- data/lib/templates/training/module-2/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/training/module-2/image/hyla_arborea.jpg +0 -0
- data/lib/templates/training/module-2/video/small.ogv +0 -0
- data/lib/templates/training/readme.adoc +10 -1
- data/scenario.adoc +113 -20
- data/test/reports/test-1.0.x-11-12-2013.txt +123 -0
- data/todo.adoc +39 -0
- metadata +473 -51
- data/lib/hyla/training.rb +0 -25
- data/lib/templates/sample/asciidoc_source_highlight.adoc +0 -37
- data/lib/templates/training-exercises/Gemfile +0 -4
@@ -0,0 +1,267 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
|
6
|
+
<title>reveal.js - Slide Notes</title>
|
7
|
+
|
8
|
+
<style>
|
9
|
+
body {
|
10
|
+
font-family: Helvetica;
|
11
|
+
}
|
12
|
+
|
13
|
+
#notes {
|
14
|
+
font-size: 24px;
|
15
|
+
width: 640px;
|
16
|
+
margin-top: 5px;
|
17
|
+
clear: left;
|
18
|
+
}
|
19
|
+
|
20
|
+
#wrap-current-slide {
|
21
|
+
width: 640px;
|
22
|
+
height: 512px;
|
23
|
+
float: left;
|
24
|
+
overflow: hidden;
|
25
|
+
}
|
26
|
+
|
27
|
+
#current-slide {
|
28
|
+
width: 1280px;
|
29
|
+
height: 1024px;
|
30
|
+
border: none;
|
31
|
+
|
32
|
+
-webkit-transform-origin: 0 0;
|
33
|
+
-moz-transform-origin: 0 0;
|
34
|
+
-ms-transform-origin: 0 0;
|
35
|
+
-o-transform-origin: 0 0;
|
36
|
+
transform-origin: 0 0;
|
37
|
+
|
38
|
+
-webkit-transform: scale(0.5);
|
39
|
+
-moz-transform: scale(0.5);
|
40
|
+
-ms-transform: scale(0.5);
|
41
|
+
-o-transform: scale(0.5);
|
42
|
+
transform: scale(0.5);
|
43
|
+
}
|
44
|
+
|
45
|
+
#wrap-next-slide {
|
46
|
+
width: 448px;
|
47
|
+
height: 358px;
|
48
|
+
float: left;
|
49
|
+
margin: 0 0 0 10px;
|
50
|
+
overflow: hidden;
|
51
|
+
}
|
52
|
+
|
53
|
+
#next-slide {
|
54
|
+
width: 1280px;
|
55
|
+
height: 1024px;
|
56
|
+
border: none;
|
57
|
+
|
58
|
+
-webkit-transform-origin: 0 0;
|
59
|
+
-moz-transform-origin: 0 0;
|
60
|
+
-ms-transform-origin: 0 0;
|
61
|
+
-o-transform-origin: 0 0;
|
62
|
+
transform-origin: 0 0;
|
63
|
+
|
64
|
+
-webkit-transform: scale(0.35);
|
65
|
+
-moz-transform: scale(0.35);
|
66
|
+
-ms-transform: scale(0.35);
|
67
|
+
-o-transform: scale(0.35);
|
68
|
+
transform: scale(0.35);
|
69
|
+
}
|
70
|
+
|
71
|
+
.slides {
|
72
|
+
position: relative;
|
73
|
+
margin-bottom: 10px;
|
74
|
+
border: 1px solid black;
|
75
|
+
border-radius: 2px;
|
76
|
+
background: rgb(28, 30, 32);
|
77
|
+
}
|
78
|
+
|
79
|
+
.slides span {
|
80
|
+
position: absolute;
|
81
|
+
top: 3px;
|
82
|
+
left: 3px;
|
83
|
+
font-weight: bold;
|
84
|
+
font-size: 14px;
|
85
|
+
color: rgba( 255, 255, 255, 0.9 );
|
86
|
+
}
|
87
|
+
|
88
|
+
.error {
|
89
|
+
font-weight: bold;
|
90
|
+
color: red;
|
91
|
+
font-size: 1.5em;
|
92
|
+
text-align: center;
|
93
|
+
margin-top: 10%;
|
94
|
+
}
|
95
|
+
|
96
|
+
.error code {
|
97
|
+
font-family: monospace;
|
98
|
+
}
|
99
|
+
|
100
|
+
.time {
|
101
|
+
width: 448px;
|
102
|
+
margin: 30px 0 0 10px;
|
103
|
+
float: left;
|
104
|
+
text-align: center;
|
105
|
+
opacity: 0;
|
106
|
+
|
107
|
+
-webkit-transition: opacity 0.4s;
|
108
|
+
-moz-transition: opacity 0.4s;
|
109
|
+
-o-transition: opacity 0.4s;
|
110
|
+
transition: opacity 0.4s;
|
111
|
+
}
|
112
|
+
|
113
|
+
.elapsed,
|
114
|
+
.clock {
|
115
|
+
color: #333;
|
116
|
+
font-size: 2em;
|
117
|
+
text-align: center;
|
118
|
+
display: inline-block;
|
119
|
+
padding: 0.5em;
|
120
|
+
background-color: #eee;
|
121
|
+
border-radius: 10px;
|
122
|
+
}
|
123
|
+
|
124
|
+
.elapsed h2,
|
125
|
+
.clock h2 {
|
126
|
+
font-size: 0.8em;
|
127
|
+
line-height: 100%;
|
128
|
+
margin: 0;
|
129
|
+
color: #aaa;
|
130
|
+
}
|
131
|
+
|
132
|
+
.elapsed .mute {
|
133
|
+
color: #ddd;
|
134
|
+
}
|
135
|
+
|
136
|
+
</style>
|
137
|
+
</head>
|
138
|
+
|
139
|
+
<body>
|
140
|
+
|
141
|
+
<script>
|
142
|
+
function getNotesURL( controls ) {
|
143
|
+
return window.opener.location.protocol + '//' + window.opener.location.host + window.opener.location.pathname + '?receiver&controls='+ ( controls || 'false' ) +'&progress=false&overview=false' + window.opener.location.hash;
|
144
|
+
}
|
145
|
+
var notesCurrentSlideURL = getNotesURL( true );
|
146
|
+
var notesNextSlideURL = getNotesURL( false );
|
147
|
+
</script>
|
148
|
+
|
149
|
+
<div id="wrap-current-slide" class="slides">
|
150
|
+
<script>document.write( '<iframe width="1280" height="1024" id="current-slide" src="'+ notesCurrentSlideURL +'"></iframe>' );</script>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<div id="wrap-next-slide" class="slides">
|
154
|
+
<script>document.write( '<iframe width="640" height="512" id="next-slide" src="'+ notesNextSlideURL +'"></iframe>' );</script>
|
155
|
+
<span>UPCOMING:</span>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
<div class="time">
|
159
|
+
<div class="clock">
|
160
|
+
<h2>Time</h2>
|
161
|
+
<span id="clock">0:00:00 AM</span>
|
162
|
+
</div>
|
163
|
+
<div class="elapsed">
|
164
|
+
<h2>Elapsed</h2>
|
165
|
+
<span id="hours">00</span><span id="minutes">:00</span><span id="seconds">:00</span>
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
<div id="notes"></div>
|
170
|
+
|
171
|
+
<script src="../../plugin/markdown/marked.js"></script>
|
172
|
+
<script>
|
173
|
+
|
174
|
+
window.addEventListener( 'load', function() {
|
175
|
+
|
176
|
+
if( window.opener && window.opener.location && window.opener.location.href ) {
|
177
|
+
|
178
|
+
var notes = document.getElementById( 'notes' ),
|
179
|
+
currentSlide = document.getElementById( 'current-slide' ),
|
180
|
+
nextSlide = document.getElementById( 'next-slide' ),
|
181
|
+
silenced = false;
|
182
|
+
|
183
|
+
window.addEventListener( 'message', function( event ) {
|
184
|
+
var data = JSON.parse( event.data );
|
185
|
+
|
186
|
+
// No need for updating the notes in case of fragment changes
|
187
|
+
if ( data.notes !== undefined) {
|
188
|
+
if( data.markdown ) {
|
189
|
+
notes.innerHTML = marked( data.notes );
|
190
|
+
}
|
191
|
+
else {
|
192
|
+
notes.innerHTML = data.notes;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
silenced = true;
|
197
|
+
|
198
|
+
// Update the note slides
|
199
|
+
currentSlide.contentWindow.Reveal.slide( data.indexh, data.indexv, data.indexf );
|
200
|
+
nextSlide.contentWindow.Reveal.slide( data.nextindexh, data.nextindexv );
|
201
|
+
|
202
|
+
silenced = false;
|
203
|
+
|
204
|
+
}, false );
|
205
|
+
|
206
|
+
var start = new Date(),
|
207
|
+
timeEl = document.querySelector( '.time' ),
|
208
|
+
clockEl = document.getElementById( 'clock' ),
|
209
|
+
hoursEl = document.getElementById( 'hours' ),
|
210
|
+
minutesEl = document.getElementById( 'minutes' ),
|
211
|
+
secondsEl = document.getElementById( 'seconds' );
|
212
|
+
|
213
|
+
setInterval( function() {
|
214
|
+
|
215
|
+
timeEl.style.opacity = 1;
|
216
|
+
|
217
|
+
var diff, hours, minutes, seconds,
|
218
|
+
now = new Date();
|
219
|
+
|
220
|
+
diff = now.getTime() - start.getTime();
|
221
|
+
hours = Math.floor( diff / ( 1000 * 60 * 60 ) );
|
222
|
+
minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 );
|
223
|
+
seconds = Math.floor( ( diff / 1000 ) % 60 );
|
224
|
+
|
225
|
+
clockEl.innerHTML = now.toLocaleTimeString();
|
226
|
+
hoursEl.innerHTML = zeroPadInteger( hours );
|
227
|
+
hoursEl.className = hours > 0 ? "" : "mute";
|
228
|
+
minutesEl.innerHTML = ":" + zeroPadInteger( minutes );
|
229
|
+
minutesEl.className = minutes > 0 ? "" : "mute";
|
230
|
+
secondsEl.innerHTML = ":" + zeroPadInteger( seconds );
|
231
|
+
|
232
|
+
}, 1000 );
|
233
|
+
|
234
|
+
// Broadcasts the state of the notes window to synchronize
|
235
|
+
// the main window
|
236
|
+
function synchronizeMainWindow() {
|
237
|
+
|
238
|
+
if( !silenced ) {
|
239
|
+
var indices = currentSlide.contentWindow.Reveal.getIndices();
|
240
|
+
window.opener.Reveal.slide( indices.h, indices.v, indices.f );
|
241
|
+
}
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
// Navigate the main window when the notes slide changes
|
246
|
+
currentSlide.contentWindow.Reveal.addEventListener( 'slidechanged', synchronizeMainWindow );
|
247
|
+
currentSlide.contentWindow.Reveal.addEventListener( 'fragmentshown', synchronizeMainWindow );
|
248
|
+
currentSlide.contentWindow.Reveal.addEventListener( 'fragmenthidden', synchronizeMainWindow );
|
249
|
+
|
250
|
+
}
|
251
|
+
else {
|
252
|
+
|
253
|
+
document.body.innerHTML = '<p class="error">Unable to access <code>window.opener.location</code>.<br>Make sure the presentation is running on a web server.</p>';
|
254
|
+
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
}, false );
|
259
|
+
|
260
|
+
function zeroPadInteger( num ) {
|
261
|
+
var str = "00" + parseInt( num );
|
262
|
+
return str.substring( str.length - 2 );
|
263
|
+
}
|
264
|
+
|
265
|
+
</script>
|
266
|
+
</body>
|
267
|
+
</html>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/**
|
2
|
+
* Handles opening of and synchronization with the reveal.js
|
3
|
+
* notes window.
|
4
|
+
*/
|
5
|
+
var RevealNotes = (function() {
|
6
|
+
|
7
|
+
function openNotes() {
|
8
|
+
var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
|
9
|
+
jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
|
10
|
+
var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1120,height=850' );
|
11
|
+
|
12
|
+
// Fires when slide is changed
|
13
|
+
Reveal.addEventListener( 'slidechanged', post );
|
14
|
+
|
15
|
+
// Fires when a fragment is shown
|
16
|
+
Reveal.addEventListener( 'fragmentshown', post );
|
17
|
+
|
18
|
+
// Fires when a fragment is hidden
|
19
|
+
Reveal.addEventListener( 'fragmenthidden', post );
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Posts the current slide data to the notes window
|
23
|
+
*/
|
24
|
+
function post() {
|
25
|
+
var slideElement = Reveal.getCurrentSlide(),
|
26
|
+
slideIndices = Reveal.getIndices(),
|
27
|
+
messageData;
|
28
|
+
|
29
|
+
var notes = slideElement.querySelector( 'aside.notes' ),
|
30
|
+
nextindexh,
|
31
|
+
nextindexv;
|
32
|
+
|
33
|
+
if( slideElement.nextElementSibling && slideElement.parentNode.nodeName == 'SECTION' ) {
|
34
|
+
nextindexh = slideIndices.h;
|
35
|
+
nextindexv = slideIndices.v + 1;
|
36
|
+
} else {
|
37
|
+
nextindexh = slideIndices.h + 1;
|
38
|
+
nextindexv = 0;
|
39
|
+
}
|
40
|
+
|
41
|
+
messageData = {
|
42
|
+
notes : notes ? notes.innerHTML : '',
|
43
|
+
indexh : slideIndices.h,
|
44
|
+
indexv : slideIndices.v,
|
45
|
+
indexf : slideIndices.f,
|
46
|
+
nextindexh : nextindexh,
|
47
|
+
nextindexv : nextindexv,
|
48
|
+
markdown : notes ? typeof notes.getAttribute( 'data-markdown' ) === 'string' : false
|
49
|
+
};
|
50
|
+
|
51
|
+
notesPopup.postMessage( JSON.stringify( messageData ), '*' );
|
52
|
+
}
|
53
|
+
|
54
|
+
// Navigate to the current slide when the notes are loaded
|
55
|
+
notesPopup.addEventListener( 'load', function( event ) {
|
56
|
+
post();
|
57
|
+
}, false );
|
58
|
+
}
|
59
|
+
|
60
|
+
// If the there's a 'notes' query set, open directly
|
61
|
+
if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
|
62
|
+
openNotes();
|
63
|
+
}
|
64
|
+
|
65
|
+
// Open the notes when the 's' key is hit
|
66
|
+
document.addEventListener( 'keydown', function( event ) {
|
67
|
+
// Disregard the event if the target is editable or a
|
68
|
+
// modifier is present
|
69
|
+
if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
|
70
|
+
|
71
|
+
if( event.keyCode === 83 ) {
|
72
|
+
event.preventDefault();
|
73
|
+
openNotes();
|
74
|
+
}
|
75
|
+
}, false );
|
76
|
+
|
77
|
+
return { open: openNotes };
|
78
|
+
})();
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<html>
|
2
|
+
<body>
|
3
|
+
|
4
|
+
<iframe id="reveal" src="../../index.html" style="border: 0;" width="500" height="500"></iframe>
|
5
|
+
|
6
|
+
<div>
|
7
|
+
<input id="back" type="button" value="go back"/>
|
8
|
+
<input id="ahead" type="button" value="go ahead"/>
|
9
|
+
<input id="slideto" type="button" value="slideto 2-2"/>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<script>
|
13
|
+
|
14
|
+
(function (){
|
15
|
+
|
16
|
+
var back = document.getElementById( 'back' ),
|
17
|
+
ahead = document.getElementById( 'ahead' ),
|
18
|
+
slideto = document.getElementById( 'slideto' ),
|
19
|
+
reveal = window.frames[0];
|
20
|
+
|
21
|
+
back.addEventListener( 'click', function () {
|
22
|
+
|
23
|
+
reveal.postMessage( JSON.stringify({method: 'prev', args: []}), '*' );
|
24
|
+
}, false );
|
25
|
+
|
26
|
+
ahead.addEventListener( 'click', function (){
|
27
|
+
reveal.postMessage( JSON.stringify({method: 'next', args: []}), '*' );
|
28
|
+
}, false );
|
29
|
+
|
30
|
+
slideto.addEventListener( 'click', function (){
|
31
|
+
reveal.postMessage( JSON.stringify({method: 'slide', args: [2,2]}), '*' );
|
32
|
+
}, false );
|
33
|
+
|
34
|
+
}());
|
35
|
+
|
36
|
+
</script>
|
37
|
+
|
38
|
+
</body>
|
39
|
+
</html>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
simple postmessage plugin
|
4
|
+
|
5
|
+
Useful when a reveal slideshow is inside an iframe.
|
6
|
+
It allows to call reveal methods from outside.
|
7
|
+
|
8
|
+
Example:
|
9
|
+
var reveal = window.frames[0];
|
10
|
+
|
11
|
+
// Reveal.prev();
|
12
|
+
reveal.postMessage(JSON.stringify({method: 'prev', args: []}), '*');
|
13
|
+
// Reveal.next();
|
14
|
+
reveal.postMessage(JSON.stringify({method: 'next', args: []}), '*');
|
15
|
+
// Reveal.slide(2, 2);
|
16
|
+
reveal.postMessage(JSON.stringify({method: 'slide', args: [2,2]}), '*');
|
17
|
+
|
18
|
+
Add to the slideshow:
|
19
|
+
|
20
|
+
dependencies: [
|
21
|
+
...
|
22
|
+
{ src: 'plugin/postmessage/postmessage.js', async: true, condition: function() { return !!document.body.classList; } }
|
23
|
+
]
|
24
|
+
|
25
|
+
*/
|
26
|
+
|
27
|
+
(function (){
|
28
|
+
|
29
|
+
window.addEventListener( "message", function ( event ) {
|
30
|
+
var data = JSON.parse( event.data ),
|
31
|
+
method = data.method,
|
32
|
+
args = data.args;
|
33
|
+
|
34
|
+
if( typeof Reveal[method] === 'function' ) {
|
35
|
+
Reveal[method].apply( Reveal, data.args );
|
36
|
+
}
|
37
|
+
}, false);
|
38
|
+
|
39
|
+
}());
|
40
|
+
|
41
|
+
|
42
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/**
|
2
|
+
* phantomjs script for printing presentations to PDF.
|
3
|
+
*
|
4
|
+
* Example:
|
5
|
+
* phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
|
6
|
+
*
|
7
|
+
* By Manuel Bieh (https://github.com/manuelbieh)
|
8
|
+
*/
|
9
|
+
|
10
|
+
// html2pdf.js
|
11
|
+
var page = new WebPage();
|
12
|
+
var system = require( 'system' );
|
13
|
+
|
14
|
+
page.viewportSize = {
|
15
|
+
width: 1024,
|
16
|
+
height: 768
|
17
|
+
};
|
18
|
+
|
19
|
+
page.paperSize = {
|
20
|
+
format: 'letter',
|
21
|
+
orientation: 'landscape',
|
22
|
+
margin: {
|
23
|
+
left: '0',
|
24
|
+
right: '0',
|
25
|
+
top: '0',
|
26
|
+
bottom: '0'
|
27
|
+
}
|
28
|
+
};
|
29
|
+
|
30
|
+
var revealFile = system.args[1] || 'index.html?print-pdf';
|
31
|
+
var slideFile = system.args[2] || 'slides.pdf';
|
32
|
+
|
33
|
+
if( slideFile.match( /\.pdf$/gi ) === null ) {
|
34
|
+
slideFile += '.pdf';
|
35
|
+
}
|
36
|
+
|
37
|
+
console.log( 'Printing PDF...' );
|
38
|
+
|
39
|
+
page.open( revealFile, function( status ) {
|
40
|
+
console.log( 'Printed succesfully' );
|
41
|
+
page.render( slideFile );
|
42
|
+
phantom.exit();
|
43
|
+
} );
|
44
|
+
|