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,114 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html{:lang=>(attr :lang, 'en')}
|
3
|
+
%head
|
4
|
+
%meta(http-equiv='Content-Type' content="text/html; charset=#{attr :encoding}")
|
5
|
+
%meta(name='generator' content="Asciidoctor #{attr 'asciidoctor-version'}")
|
6
|
+
%meta(name='viewport' content='width=device-width, initial-scale=1.0')
|
7
|
+
- [:description, :keywords, :author, :copyright].each do |key|
|
8
|
+
- if attr? key
|
9
|
+
%meta{:name=>key, :content=>(attr key)}
|
10
|
+
%title=((doctitle :sanitize => true) || (attr 'untitled-label'))
|
11
|
+
- if Asciidoctor::DEFAULT_STYLESHEET_KEYS.include?(attr :stylesheet)
|
12
|
+
- if @safe >= Asciidoctor::SafeMode::SECURE || (attr? :linkcss)
|
13
|
+
%link(rel='stylesheet'){:href=>normalize_web_path(Asciidoctor::DEFAULT_STYLESHEET_NAME, (attr :stylesdir, ''))}
|
14
|
+
- else
|
15
|
+
%style=Asciidoctor::HTML5.default_asciidoctor_stylesheet
|
16
|
+
- elsif attr? :stylesheet
|
17
|
+
- if @safe >= Asciidoctor::SafeMode::SECURE || (attr? :linkcss)
|
18
|
+
%link(rel='stylesheet'){:href=>normalize_web_path((attr :stylesheet), (attr :stylesdir, ''))}
|
19
|
+
- else
|
20
|
+
%style=read_asset(normalize_system_path((attr :stylesheet), (attr :stylesdir, '')), true)
|
21
|
+
- if attr? :icons, 'font'
|
22
|
+
- if !(attr 'iconfont-remote', '').nil?
|
23
|
+
%link(rel='stylesheet'){:href=>(attr 'iconfont-cdn', 'http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css')}
|
24
|
+
- else
|
25
|
+
%link(rel='stylesheet'){:href=>normalize_web_path("#{attr 'iconfont-name', 'font-awesome'}.css", (attr :stylesdir, ''))}
|
26
|
+
- case attr 'source-highlighter'
|
27
|
+
- when 'coderay'
|
28
|
+
- if (attr 'coderay-css', 'class') == 'class'
|
29
|
+
- if @safe >= Asciidoctor::SafeMode::SECURE || (attr? :linkcss)
|
30
|
+
%link(rel='stylesheet'){:href=>normalize_web_path('asciidoctor-coderay.css', (attr :stylesdir, ''))}
|
31
|
+
- else
|
32
|
+
%style=Asciidoctor::HTML5.default_coderay_stylesheet
|
33
|
+
- when 'pygments'
|
34
|
+
- if (attr 'pygments-css', 'class') == 'class'
|
35
|
+
- if @safe >= Asciidoctor::SafeMode::SECURE || (attr? :linkcss)
|
36
|
+
%link(rel='stylesheet'){:href=>normalize_web_path('asciidoctor-pygments.css', (attr :stylesdir, ''))}
|
37
|
+
- else
|
38
|
+
%style=Asciidoctor::HTML5.pygments_stylesheet(attr 'pygments-style')
|
39
|
+
- when 'highlightjs'
|
40
|
+
%link(rel='stylesheet' href="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css")
|
41
|
+
%script(src="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/highlight.min.js")
|
42
|
+
%script hljs.initHighlightingOnLoad()
|
43
|
+
- when 'prettify'
|
44
|
+
%link(rel='stylesheet' href="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/#{attr 'prettify-theme', 'prettify'}.min.css")
|
45
|
+
%script(src="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/prettify.min.js")
|
46
|
+
%script document.addEventListener('DOMContentLoaded', prettyPrint)
|
47
|
+
- if attr? 'math'
|
48
|
+
%script(type='text/x-mathjax-config')
|
49
|
+
:plain
|
50
|
+
MathJax.Hub.Config({
|
51
|
+
tex2jax: {
|
52
|
+
inlineMath: [['\\(','\\)']],
|
53
|
+
displayMath: [['\\[','\\]']],
|
54
|
+
ignoreClass: 'nomath|nolatexmath'
|
55
|
+
},
|
56
|
+
asciimath2jax: {
|
57
|
+
delimiters: [['\\$','\\$']],
|
58
|
+
ignoreClass: 'nomath|noasciimath'
|
59
|
+
}
|
60
|
+
});
|
61
|
+
%script(type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_HTMLorMML')
|
62
|
+
%script(type='text/javascript')
|
63
|
+
:plain
|
64
|
+
document.addEventListener('DOMContentLoaded', MathJax.Hub.TypeSet)
|
65
|
+
- unless (docinfo_content = docinfo).empty?
|
66
|
+
=docinfo_content
|
67
|
+
%body{:id => @id, :class=>[doctype, ((attr? 'toc-class') && (attr? :toc) && (attr? 'toc-placement', 'auto') ? "#{attr 'toc-class'} toc-#{attr 'toc-position', 'left'}" : nil)], :style=>("max-width: #{attr 'max-width'};" if (attr? 'max-width'))}
|
68
|
+
- unless noheader
|
69
|
+
-# AsciiDoc leaves an empty header div even if there's no doctitle
|
70
|
+
#header
|
71
|
+
- if has_header?
|
72
|
+
- unless notitle
|
73
|
+
%h1=@header.title
|
74
|
+
- if attr? :author
|
75
|
+
%span#author=attr :author
|
76
|
+
%br
|
77
|
+
- if attr? :email
|
78
|
+
%span#email=sub_macros(attr :email)
|
79
|
+
%br
|
80
|
+
- if (authorcount = (attr :authorcount).to_i) > 1
|
81
|
+
- (2..authorcount).each do |idx|
|
82
|
+
%span{:id=>"author#{idx}", :class=>"author"}=(attr "author_#{idx}")
|
83
|
+
%br
|
84
|
+
- if attr? "email_#{idx}"
|
85
|
+
%span{:id=>"email#{idx}", :class=>"email"}= sub_macros(attr "email_#{idx}")
|
86
|
+
- if attr? :revnumber
|
87
|
+
%span#revnumber #{((attr 'version-label') || '').downcase} #{attr :revnumber}#{',' if (attr? :revdate)}
|
88
|
+
- if attr? :revdate
|
89
|
+
%span#revdate=attr :revdate
|
90
|
+
- if attr? :revremark
|
91
|
+
%br
|
92
|
+
%span#revremark=attr :revremark
|
93
|
+
- if (attr? :toc) && (attr? 'toc-placement', 'auto')
|
94
|
+
#toc{:class=>(attr 'toc-class', 'toc')}
|
95
|
+
#toctitle=attr 'toc-title'
|
96
|
+
-# hackish, find a way to make the toc generator more generic
|
97
|
+
=Asciidoctor::HTML5::DocumentTemplate.outline(self, (attr :toclevels, 2).to_i)
|
98
|
+
#content=content.chomp
|
99
|
+
- unless !footnotes? || attr?(:nofootnotes)
|
100
|
+
#footnotes
|
101
|
+
%hr
|
102
|
+
- footnotes.each do |fn|
|
103
|
+
.footnote{:id=>['_footnote', fn.index]}
|
104
|
+
= succeed ". #{fn.text}" do
|
105
|
+
%a(href="#_footnoteref_#{fn.index}")=fn.index
|
106
|
+
#footer
|
107
|
+
#footer-text
|
108
|
+
- if attr? :revnumber
|
109
|
+
#{attr 'version-label'} #{attr :revnumber}
|
110
|
+
- if attr? 'last-update-label'
|
111
|
+
%br
|
112
|
+
#{attr 'last-update-label'} #{attr :localdatetime}
|
113
|
+
- unless (docinfo_content = (docinfo :footer)).empty?
|
114
|
+
=docinfo_content
|
@@ -0,0 +1,10 @@
|
|
1
|
+
- unless notitle || !has_header?
|
2
|
+
%h1{:id=>@id}=@header.title
|
3
|
+
=content.chomp
|
4
|
+
- unless !footnotes? || attr?(:nofootnotes)
|
5
|
+
#footnotes
|
6
|
+
%hr
|
7
|
+
- footnotes.each do |fn|
|
8
|
+
.footnote{:id=>['_footnote', fn.index]}
|
9
|
+
= succeed ". #{fn.text}" do
|
10
|
+
%a(href="#_footnoteref_#{fn.index}")=fn.index
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Add custom functions to this module that you want to use in your Haml
|
2
|
+
# templates. Within the template you can invoke them as top-level functions
|
3
|
+
# just like the built-in helper functions that Haml provides.
|
4
|
+
module Haml::Helpers
|
5
|
+
#def a_helper_function
|
6
|
+
#end
|
7
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
- case @type
|
2
|
+
- when :xref
|
3
|
+
- refid = (attr :refid) || @target
|
4
|
+
%a(href="#{@target}")<=(@text || @document.references[:ids].fetch(refid, "[#{refid}]")).tr_s("\n", ' ')
|
5
|
+
- when :ref
|
6
|
+
%a(id=@target)
|
7
|
+
- when :bibref
|
8
|
+
%a(id=@target)>
|
9
|
+
=%([#{@target}])
|
10
|
+
- else
|
11
|
+
%a(href=@target){:class=>role, :target=>(attr :window)}=@text
|
@@ -0,0 +1 @@
|
|
1
|
+
%b.button=@text
|
@@ -0,0 +1,8 @@
|
|
1
|
+
- if @type == :xref
|
2
|
+
%span.footnoteref
|
3
|
+
= surround '[', ']' do
|
4
|
+
%a.footnote(href="#_footnote_#{attr :index}" title="View footnote.")=attr :index
|
5
|
+
- else
|
6
|
+
%span.footnote{:id=>(['_footnote', @id] if @id)}
|
7
|
+
= surround '[', ']' do
|
8
|
+
%a.footnote(href="#_footnote_#{attr :index}" title="View footnote."){:id=>['_footnoteref', (attr :index)]}=attr :index
|
@@ -0,0 +1,24 @@
|
|
1
|
+
%span{:class=>[@type, role], :style=>((attr? :float) ? "float: #{attr :float}" : nil)}<
|
2
|
+
- if @type == 'icon' && (@document.attr? :icons, 'font')
|
3
|
+
- style_class = ["icon-#{@target}"]
|
4
|
+
- style_class << "icon-#{attr :size}" if attr? :size
|
5
|
+
- style_class << "icon-rotate-#{attr :rotate}" if attr? :rotate
|
6
|
+
- style_class << "icon-flip-#{attr :flip}" if attr? :flip
|
7
|
+
- if attr? :link
|
8
|
+
%a.image{:href=>(attr :link), :target=>(attr :window)}
|
9
|
+
%i{:class=>style_class, :title=>(attr :title)}
|
10
|
+
- else
|
11
|
+
%i{:class=>style_class, :title=>(attr :title)}
|
12
|
+
- elsif @type == 'icon' && !(@document.attr? :icons)
|
13
|
+
- if attr? :link
|
14
|
+
%a.image{:href=>(attr :link), :target=>(attr :window)}
|
15
|
+
[#{attr :alt}]
|
16
|
+
- else
|
17
|
+
[#{attr :alt}]
|
18
|
+
- else
|
19
|
+
- src = (@type == 'icon' ? (icon_uri @target) : (image_uri @target))
|
20
|
+
- if attr? :link
|
21
|
+
%a.image{:href=>(attr :link), :target=>(attr :window)}
|
22
|
+
%img{:src=>src, :alt=>(attr :alt), :width=>(attr :width), :height=>(attr :height), :title=>(attr :title)}
|
23
|
+
- else
|
24
|
+
%img{:src=>src, :alt=>(attr :alt), :width=>(attr :width), :height=>(attr :height), :title=>(attr :title)}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
- menu = attr 'menu'
|
2
|
+
- menuitem = attr 'menuitem'
|
3
|
+
- if !(submenus = attr 'submenus').empty?
|
4
|
+
%span.menuseq
|
5
|
+
%span.menu>=menu
|
6
|
+
=' ▸ '
|
7
|
+
=submenus.map {|submenu| %(<span class="submenu">#{submenu}</span> ▸ ) }.join.chop
|
8
|
+
%span.menuitem>=menuitem
|
9
|
+
- elsif !menuitem.nil?
|
10
|
+
%span.menuseq
|
11
|
+
%span.menu>=menu
|
12
|
+
=' ▸ '
|
13
|
+
%span.menuitem>=menuitem
|
14
|
+
- else
|
15
|
+
%span.menu=menu
|
@@ -0,0 +1,22 @@
|
|
1
|
+
- unless @id.nil?
|
2
|
+
%a{:id=>@id}
|
3
|
+
- case @type
|
4
|
+
- when :emphasis
|
5
|
+
%em{:class=>role}=@text
|
6
|
+
- when :strong
|
7
|
+
%strong{:class=>role}=@text
|
8
|
+
- when :monospaced
|
9
|
+
%code{:class=>role}=@text
|
10
|
+
- when :superscript
|
11
|
+
%sup{:class=>role}=@text
|
12
|
+
- when :subscript
|
13
|
+
%sub{:class=>role}=@text
|
14
|
+
- when :double
|
15
|
+
=(role? ? %(<span class="#{role}">“#{@text}”</span>) : %(“#{@text}”))
|
16
|
+
- when :single
|
17
|
+
=(role? ? %(<span class="#{role}">‘#{@text}’</span>) : %(‘#{@text}’))
|
18
|
+
- when :asciimath, :latexmath
|
19
|
+
- open, close = ::Asciidoctor::INLINE_MATH_DELIMITERS[@type]
|
20
|
+
=%(#{open}#{@text}#{close})
|
21
|
+
- else
|
22
|
+
=(role? ? %(<span class="#{role}">#{@text}</span>) : @text)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
- slevel = @level == 0 && @special ? 1 : @level
|
2
|
+
- anchor = nil
|
3
|
+
- link = nil
|
4
|
+
- if @id
|
5
|
+
- if @document.attr? :sectanchors
|
6
|
+
- anchor = %(<a class="anchor" href="##{@id}"></a>)
|
7
|
+
- link = nil
|
8
|
+
- elsif @document.attr? :sectlinks
|
9
|
+
- anchor = nil
|
10
|
+
- link = %(<a class="link" href="##{@id}">)
|
11
|
+
- if slevel == 0
|
12
|
+
%h1{:id=>@id, :class=>"sect0"}=%(#{anchor}#{link}#{title}#{link && '</a>'})
|
13
|
+
=content.chomp
|
14
|
+
- else
|
15
|
+
%div{:class=>["sect#{slevel}", role]}
|
16
|
+
- haml_tag "h#{slevel + 1}##{@id}", %(#{anchor}#{link}#{@numbered ? "#{sectnum} " : nil}#{captioned_title}#{link && '</a>'})
|
17
|
+
- if slevel == 1
|
18
|
+
.sectionbody
|
19
|
+
=content.chomp
|
20
|
+
- else
|
21
|
+
=content.chomp
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%a{:id=>@id, :class=>['image', (attr :role)],
|
2
|
+
:style=>((style = [("text-align: #{attr :align}" if attr? :align),
|
3
|
+
("float: #{attr :float}" if attr? :float)].compact * '; ').empty? ? nil : style)}
|
4
|
+
- if attr? :link
|
5
|
+
%a.image{:href=>(attr :link), :target=>'_blank'}
|
6
|
+
%img{:src=>image_uri(attr :target), :alt=>(attr :alt), :width=>(attr :width), :height=>(attr :height)}
|
7
|
+
- else
|
8
|
+
%img{:src=>image_uri(attr :target), :alt=>(attr :alt), :width=>(attr :width), :height=>(attr :height)}
|
9
|
+
- if title?
|
10
|
+
.title="#{@caption}#{title}"
|
11
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title=doctitle
|
5
|
+
%meta(http-equiv='Content-Type' content="text/html; charset=#{attr :encoding}")
|
6
|
+
%meta(name='generator' content="Asciidoctor #{attr 'asciidoctor-version'}")
|
7
|
+
%meta(name='apple-mobile-web-app-capable' content='yes')
|
8
|
+
%meta(name='apple-mobile-web-app-status-bar-style' content='black-translucent')
|
9
|
+
%meta(name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no')
|
10
|
+
%link(rel='stylesheet' href='reveal.js/css/reveal.min.css')
|
11
|
+
- if attr? :revealjs_theme
|
12
|
+
%link(rel='stylesheet' href='reveal.js/css/theme/#{attr :revealjs_theme}.css' id='theme')
|
13
|
+
- else
|
14
|
+
%link(rel='stylesheet' href='reveal.js/css/theme/default.css' id='theme')
|
15
|
+
%link(rel='stylesheet' href='css/zenburn.css')
|
16
|
+
- if attr? :description
|
17
|
+
%meta(name='description'){:content=>(attr :description)}
|
18
|
+
- if attr? :keywords
|
19
|
+
%meta(name='keywords'){:content=>(attr :keywords)}
|
20
|
+
- if attr? :author
|
21
|
+
%meta(name='author'){:content=>(attr :author)}
|
22
|
+
|
23
|
+
%body{:id=>@id, :class=>['reveal-container',(attr :doctype)]}
|
24
|
+
.reveal
|
25
|
+
.slides
|
26
|
+
=content
|
27
|
+
%script(src='lib/js/head.min.js')
|
28
|
+
%script(src='reveal.js/js/reveal.min.js')
|
29
|
+
:javascript
|
30
|
+
Reveal.initialize({
|
31
|
+
// Display controls in the bottom right corner
|
32
|
+
controls: true,
|
33
|
+
// Display a presentation progress bar
|
34
|
+
progress: true,
|
35
|
+
// Push each slide change to the browser history
|
36
|
+
history: false,
|
37
|
+
// Enable keyboard shortcuts for navigation
|
38
|
+
keyboard: true,
|
39
|
+
// Enable the slide overview mode
|
40
|
+
overview: true,
|
41
|
+
// Vertical centering of slides
|
42
|
+
center: true,
|
43
|
+
// Loop the presentation
|
44
|
+
loop: false,
|
45
|
+
// Change the presentation direction to be RTL
|
46
|
+
rtl: false,
|
47
|
+
// Number of milliseconds between automatically proceeding to the
|
48
|
+
// next slide, disabled when set to 0, this value can be overwritten
|
49
|
+
// by using a data-autoslide attribute on your slides
|
50
|
+
autoSlide: 0,
|
51
|
+
// Enable slide navigation via mouse wheel
|
52
|
+
mouseWheel: false,
|
53
|
+
// Apply a 3D roll to links on hover
|
54
|
+
rollingLinks: true,
|
55
|
+
// Transition style
|
56
|
+
transition: 'default', // default/cube/page/concave/zoom/linear/fade/none
|
57
|
+
// Transition speed
|
58
|
+
transitionSpeed: 'default', // default/fast/slow
|
59
|
+
// Transition style for full page backgrounds
|
60
|
+
backgroundTransition: 'default' // default/linear
|
61
|
+
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
%section{:id=>id, :'data-transition'=>(attr 'data-transition'),
|
3
|
+
:'data-transition-speed'=>(attr 'data-transition-speed'),
|
4
|
+
:'data-background'=>(attr 'data-background'),
|
5
|
+
:'data-background-size'=>(attr 'data-background-size'),
|
6
|
+
:'data-background-repeat'=>(attr 'data-background-repeat'),
|
7
|
+
:'data-background-transition'=>(attr 'data-background-transition') }
|
8
|
+
%h2=title
|
9
|
+
=content.chomp
|
10
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
- case attr :style
|
2
|
+
- when 'qanda'
|
3
|
+
qandaset id=@id role=(attr :role) xreflabel=(attr :reftext)
|
4
|
+
- if title?
|
5
|
+
title=title
|
6
|
+
- items.each do |terms, dd|
|
7
|
+
qandaentry
|
8
|
+
question
|
9
|
+
- [*terms].each do |dt|
|
10
|
+
simpara=dt.text
|
11
|
+
- unless dd.nil?
|
12
|
+
answer
|
13
|
+
- if dd.text?
|
14
|
+
simpara=dd.text
|
15
|
+
- if dd.blocks?
|
16
|
+
=dd.content
|
17
|
+
- when 'glossary'
|
18
|
+
- items.each do |terms, dd|
|
19
|
+
glossentry
|
20
|
+
- [*terms].each do |dt|
|
21
|
+
glossterm=dt.text
|
22
|
+
- unless dd.nil?
|
23
|
+
glossdef
|
24
|
+
- if dd.text?
|
25
|
+
simpara=dd.text
|
26
|
+
- if dd.blocks?
|
27
|
+
=dd.content
|
28
|
+
- when 'horizontal'
|
29
|
+
*{:tag=>title? ? 'table' : 'informaltable', :id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext),
|
30
|
+
:tabstyle=>'horizontal', :frame=>'none', :colsep=>0, :rowsep=>0}
|
31
|
+
- if title?
|
32
|
+
title=title
|
33
|
+
tgroup cols=2
|
34
|
+
colspec colwidth="#{attr :labelwidth, 15}*" /
|
35
|
+
colspec colwidth="#{attr :labelwidth, 85}*" /
|
36
|
+
tbody valign='top'
|
37
|
+
- items.each do |terms, dd|
|
38
|
+
row
|
39
|
+
entry
|
40
|
+
- [*terms].each do |dt|
|
41
|
+
simpara=dt.text
|
42
|
+
- unless dd.nil?
|
43
|
+
entry
|
44
|
+
- if dd.text?
|
45
|
+
simpara=dd.text
|
46
|
+
- if dd.blocks?
|
47
|
+
=dd.content
|
48
|
+
- else
|
49
|
+
variablelist id=@id role=(attr :role) xreflabel=(attr :reftext)
|
50
|
+
- if title?
|
51
|
+
title=title
|
52
|
+
- items.each do |terms, dd|
|
53
|
+
varlistentry
|
54
|
+
- [*terms].each do |dt|
|
55
|
+
term=dt.text
|
56
|
+
- unless dd.nil?
|
57
|
+
listitem
|
58
|
+
- if dd.text?
|
59
|
+
simpara=dd.text
|
60
|
+
- if dd.blocks?
|
61
|
+
=dd.content
|