middleman-presentation-core 0.16.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. checksums.yaml +7 -0
  2. data/.rdebugrc +7 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +52 -0
  5. data/.simplecov +25 -0
  6. data/.yardopts +5 -0
  7. data/Guardfile +13 -0
  8. data/LICENSE.software +21 -0
  9. data/Rakefile +200 -0
  10. data/config/license_finder.yml +13 -0
  11. data/cucumber.yml +2 -0
  12. data/doc/licenses/dependencies.csv +55 -0
  13. data/doc/licenses/dependencies.db +0 -0
  14. data/doc/licenses/dependencies.html +1415 -0
  15. data/doc/licenses/dependencies.md +603 -0
  16. data/doc/licenses/dependencies_detailed.csv +190 -0
  17. data/doc/yard/.keep +0 -0
  18. data/features/build_presentation.feature +62 -0
  19. data/features/code_highlighting.feature +43 -0
  20. data/features/components.feature +29 -0
  21. data/features/create_plugin-cli.feature +11 -0
  22. data/features/create_presentation-cli.feature +349 -0
  23. data/features/create_slide-cli.feature +188 -0
  24. data/features/create_slides-templates-cli.feature +114 -0
  25. data/features/create_theme-cli.feature +58 -0
  26. data/features/default_slides.feature +58 -0
  27. data/features/edit_slide-cli.feature +121 -0
  28. data/features/export_presentation-cli.feature +23 -0
  29. data/features/grouping_slides.feature +150 -0
  30. data/features/ignore_slides.feature +103 -0
  31. data/features/init_application-cli.feature +59 -0
  32. data/features/init_predefined_slides.feature +9 -0
  33. data/features/language_detection.feature +0 -0
  34. data/features/list_assets-cli.feature +13 -0
  35. data/features/list_components-cli.feature +13 -0
  36. data/features/list_helpers-cli.feature +13 -0
  37. data/features/list_plugins-cli.feature +13 -0
  38. data/features/list_styles-cli.feature +17 -0
  39. data/features/plugins.feature +63 -0
  40. data/features/presentation.feature +57 -0
  41. data/features/rename_slide-cli.feature +176 -0
  42. data/features/render_slides.feature +76 -0
  43. data/features/show_config-cli.feature +25 -0
  44. data/features/show_footer.feature +14 -0
  45. data/features/show_slide_number.feature +31 -0
  46. data/features/show_support_information-cli.feature +12 -0
  47. data/features/support/aruba.rb +18 -0
  48. data/features/support/ci.rb +3 -0
  49. data/features/support/env.rb +25 -0
  50. data/features/support/fixtures.rb +21 -0
  51. data/features/support/hash.rb +2 -0
  52. data/features/support/reporting.rb +2 -0
  53. data/features/version_number.feature +15 -0
  54. data/fixtures/middleman-presentation-simple_plugin/Rakefile +1 -0
  55. data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-plugin.rb +0 -0
  56. data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin/helpers.rb +13 -0
  57. data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin/plugin.rb +34 -0
  58. data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin/version.rb +8 -0
  59. data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin.rb +11 -0
  60. data/fixtures/middleman-presentation-simple_plugin/middleman-presentation-simple_plugin.gemspec +22 -0
  61. data/fixtures/middleman-presentation-simple_plugin/vendor/assets/stylesheets/test_simple.scss +3 -0
  62. data/lib/middleman-presentation-core/application_config.rb +198 -0
  63. data/lib/middleman-presentation-core/asset.rb +103 -0
  64. data/lib/middleman-presentation-core/asset_component.rb +34 -0
  65. data/lib/middleman-presentation-core/asset_list.rb +84 -0
  66. data/lib/middleman-presentation-core/asset_store.rb +73 -0
  67. data/lib/middleman-presentation-core/assets_loader.rb +95 -0
  68. data/lib/middleman-presentation-core/assets_manager.rb +73 -0
  69. data/lib/middleman-presentation-core/cache.rb +49 -0
  70. data/lib/middleman-presentation-core/cli/base.rb +30 -0
  71. data/lib/middleman-presentation-core/cli/base_group.rb +11 -0
  72. data/lib/middleman-presentation-core/cli/build.rb +13 -0
  73. data/lib/middleman-presentation-core/cli/build_presentation.rb +57 -0
  74. data/lib/middleman-presentation-core/cli/change.rb +13 -0
  75. data/lib/middleman-presentation-core/cli/change_slide.rb +82 -0
  76. data/lib/middleman-presentation-core/cli/create.rb +16 -0
  77. data/lib/middleman-presentation-core/cli/create_plugin.rb +62 -0
  78. data/lib/middleman-presentation-core/cli/create_presentation.rb +300 -0
  79. data/lib/middleman-presentation-core/cli/create_slide.rb +52 -0
  80. data/lib/middleman-presentation-core/cli/create_theme.rb +81 -0
  81. data/lib/middleman-presentation-core/cli/edit.rb +13 -0
  82. data/lib/middleman-presentation-core/cli/edit_slide.rb +49 -0
  83. data/lib/middleman-presentation-core/cli/export.rb +11 -0
  84. data/lib/middleman-presentation-core/cli/export_presentation.rb +55 -0
  85. data/lib/middleman-presentation-core/cli/init.rb +12 -0
  86. data/lib/middleman-presentation-core/cli/init_application.rb +48 -0
  87. data/lib/middleman-presentation-core/cli/init_predefined_slides.rb +31 -0
  88. data/lib/middleman-presentation-core/cli/list.rb +66 -0
  89. data/lib/middleman-presentation-core/cli/reset_thor.rb +18 -0
  90. data/lib/middleman-presentation-core/cli/runner.rb +47 -0
  91. data/lib/middleman-presentation-core/cli/serve.rb +13 -0
  92. data/lib/middleman-presentation-core/cli/serve_presentation.rb +30 -0
  93. data/lib/middleman-presentation-core/cli/shared.rb +51 -0
  94. data/lib/middleman-presentation-core/cli/show.rb +70 -0
  95. data/lib/middleman-presentation-core/comparable_slide.rb +69 -0
  96. data/lib/middleman-presentation-core/component.rb +86 -0
  97. data/lib/middleman-presentation-core/components_manager.rb +96 -0
  98. data/lib/middleman-presentation-core/configuration_file.rb +15 -0
  99. data/lib/middleman-presentation-core/css_class_extracter.rb +41 -0
  100. data/lib/middleman-presentation-core/custom_template.rb +15 -0
  101. data/lib/middleman-presentation-core/erb_template.rb +15 -0
  102. data/lib/middleman-presentation-core/errors.rb +10 -0
  103. data/lib/middleman-presentation-core/existing_slide.rb +92 -0
  104. data/lib/middleman-presentation-core/frontend_component.rb +75 -0
  105. data/lib/middleman-presentation-core/group_template.rb +15 -0
  106. data/lib/middleman-presentation-core/helpers_manager.rb +37 -0
  107. data/lib/middleman-presentation-core/ignore_file.rb +52 -0
  108. data/lib/middleman-presentation-core/liquid_template.rb +15 -0
  109. data/lib/middleman-presentation-core/list.rb +7 -0
  110. data/lib/middleman-presentation-core/locale_configurator.rb +84 -0
  111. data/lib/middleman-presentation-core/logger.rb +8 -0
  112. data/lib/middleman-presentation-core/main.rb +55 -0
  113. data/lib/middleman-presentation-core/markdown_template.rb +15 -0
  114. data/lib/middleman-presentation-core/middleman_environment.rb +108 -0
  115. data/lib/middleman-presentation-core/middleman_extension.rb +12 -0
  116. data/lib/middleman-presentation-core/middleman_step_definitions.rb +131 -0
  117. data/lib/middleman-presentation-core/new_slide.rb +140 -0
  118. data/lib/middleman-presentation-core/overwrite_sass.rb +22 -0
  119. data/lib/middleman-presentation-core/plugin.rb +8 -0
  120. data/lib/middleman-presentation-core/plugin_api.rb +65 -0
  121. data/lib/middleman-presentation-core/plugins_manager.rb +7 -0
  122. data/lib/middleman-presentation-core/predefined_slide_templates_directory.rb +15 -0
  123. data/lib/middleman-presentation-core/presentation_helper.rb +69 -0
  124. data/lib/middleman-presentation-core/register_extension.rb +4 -0
  125. data/lib/middleman-presentation-core/roles/comparable_by_name.rb +24 -0
  126. data/lib/middleman-presentation-core/slide_group.rb +33 -0
  127. data/lib/middleman-presentation-core/slide_list.rb +52 -0
  128. data/lib/middleman-presentation-core/slide_name.rb +61 -0
  129. data/lib/middleman-presentation-core/start.rb +68 -0
  130. data/lib/middleman-presentation-core/step_definitions.rb +238 -0
  131. data/lib/middleman-presentation-core/syntax_highlighter.rb +42 -0
  132. data/lib/middleman-presentation-core/test_helpers.rb +22 -0
  133. data/lib/middleman-presentation-core/transformers/file_keeper.rb +13 -0
  134. data/lib/middleman-presentation-core/transformers/group_slides.rb +34 -0
  135. data/lib/middleman-presentation-core/transformers/ignore_slides.rb +28 -0
  136. data/lib/middleman-presentation-core/transformers/remove_duplicate_slides.rb +32 -0
  137. data/lib/middleman-presentation-core/transformers/sort_slides.rb +13 -0
  138. data/lib/middleman-presentation-core/utils.rb +40 -0
  139. data/lib/middleman-presentation-core/version.rb +8 -0
  140. data/lib/middleman-presentation-core.rb +127 -0
  141. data/locales/de.yml +233 -0
  142. data/locales/en.yml +236 -0
  143. data/middleman-presentation-core.gemspec +40 -0
  144. data/source/slides/01.html.liquid +0 -0
  145. data/spec/asset_component_spec.rb +13 -0
  146. data/spec/asset_list_spec.rb +50 -0
  147. data/spec/asset_spec.rb +45 -0
  148. data/spec/asset_store_spec.rb +61 -0
  149. data/spec/assets_manager_spec.rb +111 -0
  150. data/spec/components_manager_spec.rb +142 -0
  151. data/spec/css_class_extracter_spec.rb +28 -0
  152. data/spec/existing_slide_spec.rb +177 -0
  153. data/spec/frontend_component_spec.rb +94 -0
  154. data/spec/helpers_manager_spec.rb +90 -0
  155. data/spec/ignore_file_spec.rb +75 -0
  156. data/spec/new_slide_spec.rb +155 -0
  157. data/spec/presentation_helper_spec.rb +137 -0
  158. data/spec/shared_examples/.keep +0 -0
  159. data/spec/slide_group_spec.rb +54 -0
  160. data/spec/slide_list_spec.rb +125 -0
  161. data/spec/slide_name_spec.rb +53 -0
  162. data/spec/spec_helper.rb +19 -0
  163. data/spec/support/aruba.rb +53 -0
  164. data/spec/support/ci.rb +20 -0
  165. data/spec/support/environment.rb +18 -0
  166. data/spec/support/filesystem.rb +22 -0
  167. data/spec/support/locale.rb +2 -0
  168. data/spec/support/reporting.rb +2 -0
  169. data/spec/support/rspec.rb +9 -0
  170. data/spec/support/string.rb +2 -0
  171. data/spec/transformers/file_keeper_spec.rb +24 -0
  172. data/spec/transformers/group_slides_spec.rb +44 -0
  173. data/spec/transformers/ignore_slides_spec.rb +64 -0
  174. data/spec/transformers/remove_duplicate_slides_spec.rb +120 -0
  175. data/spec/transformers/sort_slides_spec.rb +17 -0
  176. data/spec/utils_spec.rb +14 -0
  177. data/templates/.bowerrc.tt +4 -0
  178. data/templates/.gitignore +5 -0
  179. data/templates/Gemfile.tt +32 -0
  180. data/templates/LICENSE.presentation +1 -0
  181. data/templates/Rakefile +59 -0
  182. data/templates/bower.json.tt +8 -0
  183. data/templates/bundler_config.tt +6 -0
  184. data/templates/config.rb.tt +2 -0
  185. data/templates/config.yaml.tt +17 -0
  186. data/templates/gitignore.tt +14 -0
  187. data/templates/plugin/%plugin_name%.gemspec.tt +24 -0
  188. data/templates/plugin/.gitignore +13 -0
  189. data/templates/plugin/Gemfile.tt +4 -0
  190. data/templates/plugin/LICENSE.txt.tt +22 -0
  191. data/templates/plugin/README.md.tt +31 -0
  192. data/templates/plugin/Rakefile +1 -0
  193. data/templates/plugin/lib/%plugin_name%/version.rb.tt +8 -0
  194. data/templates/plugin/lib/%plugin_name%.rb.tt +10 -0
  195. data/templates/predefined_slides.d/00_00.html.erb.tt +26 -0
  196. data/templates/predefined_slides.d/00_01.html.md.tt +6 -0
  197. data/templates/predefined_slides.d/999980.html.erb.tt +4 -0
  198. data/templates/predefined_slides.d/999981.html.erb.tt +27 -0
  199. data/templates/predefined_slides.d/999982.html.erb.tt +4 -0
  200. data/templates/presentation_theme/bower.json.tt +20 -0
  201. data/templates/presentation_theme/images/.keep +0 -0
  202. data/templates/presentation_theme/javascripts/%theme_name%.js.tt +0 -0
  203. data/templates/presentation_theme/stylesheets/%theme_name%.scss.tt +9 -0
  204. data/templates/presentation_theme/stylesheets/_fonts.scss.tt +0 -0
  205. data/templates/presentation_theme/stylesheets/_images.scss.tt +5 -0
  206. data/templates/presentation_theme/stylesheets/_theme.scss.tt +251 -0
  207. data/templates/rackup.config.erb +16 -0
  208. data/templates/script/bootstrap +5 -0
  209. data/templates/script/build +3 -0
  210. data/templates/script/export +3 -0
  211. data/templates/script/presentation +3 -0
  212. data/templates/script/slide +3 -0
  213. data/templates/script/start +43 -0
  214. data/templates/slides/custom.md.tt +3 -0
  215. data/templates/slides/erb.tt +5 -0
  216. data/templates/slides/group.tt +3 -0
  217. data/templates/slides/liquid.tt +5 -0
  218. data/templates/slides/markdown.tt +3 -0
  219. data/templates/source/index.html.erb +1 -0
  220. data/templates/source/javascripts/application.js.tt +3 -0
  221. data/templates/source/layout.erb +133 -0
  222. data/templates/source/stylesheets/application.scss.tt +3 -0
  223. metadata +574 -0
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler'
4
+ Bundler.require :default, :development
5
+
6
+ desc 'Start presentation'
7
+ task default: :start
8
+
9
+ desc 'Bootstrap presentation'
10
+ task :bootstrap do
11
+ sh 'script/bootstrap'
12
+ end
13
+
14
+ desc 'Start presentation'
15
+ task :start do
16
+ sh 'script/start'
17
+ end
18
+
19
+ desc 'Build presentation'
20
+ task :build do
21
+ sh 'script/build'
22
+ end
23
+
24
+ namespace :export do
25
+ desc 'Export presentation as tar-archive'
26
+ task :tar do
27
+ sh 'script/export'
28
+ end
29
+ end
30
+
31
+ desc 'Export presentation as tar-archive'
32
+ task export: 'export:tar'
33
+
34
+ namespace :edit do
35
+
36
+ desc 'Edit all user defined slides'
37
+ task slides: 'slides:user_defined'
38
+
39
+ namespace :slides do
40
+ desc 'Edit all user-defined slides'
41
+ task :user_defined do
42
+ slides = Rake::FileList.new('source/slides/*') do |l|
43
+ l.exclude 'source/slides/999*'
44
+ end
45
+
46
+ sh "#{Middleman::Presentation.config.editor_command} #{slides.join(' ')}"
47
+ end
48
+
49
+ desc 'Edit all slides'
50
+ task :all do
51
+ slides = Rake::FileList.new('source/slides/*')
52
+
53
+ sh "#{Middleman::Presentation.config.editor_command} #{slides.join(' ')}"
54
+ end
55
+ end
56
+ end
57
+
58
+ desc 'Edit all user defined slides'
59
+ task edit: 'edit:slides'
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "<%= Middleman::Presentation.config.title %>",
3
+ "dependencies": {
4
+ <% Middleman::Presentation.components_manager.each_fetchable_component do |component, is_last| -%>
5
+ "<%= component.name %>": "<%= component.resource_locator %>"<% unless is_last -%>,<% end %>
6
+ <% end -%>
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ <% if @bundle_path -%>
2
+ BUNDLE_PATH: <%= @bundle_path %>
3
+ <% end -%>
4
+ <% if @bundle_frozen -%>
5
+ BUNDLE_FROZEN: <%= @bundle_frozen %>
6
+ <% end -%>
@@ -0,0 +1,2 @@
1
+ activate :presentation
2
+ Middleman::Presentation.start(self)
@@ -0,0 +1,17 @@
1
+ # middleman-presentation version <%= @version %>
2
+ ---
3
+ <% @config.known_options.sort.each do |field| -%>
4
+ <% if field == :theme && @config.public_send(field).blank? -%>
5
+ # theme:
6
+ # name: <name>
7
+ # github: <github_account>/<repository>
8
+ # javascripts:
9
+ # - javascripts/<name>
10
+ # stylesheets:
11
+ # - stylesheets/<name>
12
+ <% elsif @config.public_send(field).nil? -%>
13
+ # <%= field %>: ''
14
+ <% else -%>
15
+ # <%= field %>: <%= @config.public_send field %>
16
+ <% end -%>
17
+ <% end -%>
@@ -0,0 +1,14 @@
1
+ # Ignore bundler config
2
+ /.bundle
3
+ # Ignore the build directory
4
+ /build
5
+ # Ignore cache
6
+ /.sass-cache
7
+ /.cache
8
+ # Ignore .DS_store file
9
+ .DS_Store
10
+
11
+ # No generated files
12
+ *.zip
13
+ *.tar.gz
14
+ tmp/
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require '<%= @plugin_name %>/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = '<%= @plugin_name %>'
8
+ spec.version = <%= @plugin_class_name %>::VERSION
9
+ spec.authors = ['<%= @author %>']
10
+ spec.email = ['<%= @email %>']
11
+ spec.summary = %q{TODO: Write a short summary. Required.}
12
+ spec.description = %q{TODO: Write a longer description. Optional.}
13
+ spec.homepage = '<%= @homepage %>'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ #spec.add_development_dependency 'bundler', '~> 1.7'
22
+ #spec.add_development_dependency 'rake', '~> 10.0'
23
+ #spec.add_runtime_dependency 'xy', '~> 10.0'
24
+ end
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.bundle
10
+ *.so
11
+ *.o
12
+ *.a
13
+ mkmf.log
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in <%= @plugin_name %>.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) <%= @year %> <%= @author %>
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,31 @@
1
+ # <%= @plugin_class_name %>
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem '<%= @plugin_name %>'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install <%= @plugin_name %>
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/[my-github-username]/<%= @plugin_name %>/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,8 @@
1
+ <%- @plugin_class_name.split(/::/).each_with_index do |c,i| -%>
2
+ <%= ' '*i %>module <%= c %>
3
+ <%- end -%>
4
+ <%= ' '*@plugin_class_name.split(/::/).size %>VERSION = '0.0.1'
5
+ <%- (@plugin_class_name.split(/::/).size-1).downto(0) do |i| -%>
6
+ <%= ' '*i %>end
7
+ <%- end -%>
8
+
@@ -0,0 +1,10 @@
1
+ require '<%= @plugin_name %>/version'
2
+
3
+ <%- @plugin_class_name.split(/::/).each_with_index do |c,i| -%>
4
+ <%= ' '*i %>module <%= c %>
5
+ <%- end -%>
6
+ <%= ' '*@plugin_class_name.split(/::/).size %># Your code goes here...
7
+ <%- (@plugin_class_name.split(/::/).size-1).downto(0) do |i| -%>
8
+ <%= ' '*i %>end
9
+ <%- end -%>
10
+
@@ -0,0 +1,26 @@
1
+ <section class="mp-start-slide" data-state="mp-start-slide">
2
+ <ul class="mp-layout-grid-centered">
3
+ <li class="mp-layout-grid-column-66">
4
+ <h1><%= Middleman::Presentation.config.title %></h1>
5
+ <h2><%= Middleman::Presentation.config.subtitle %></h2>
6
+
7
+ <p class="mp-speaker">
8
+ <small><%= Middleman::Presentation.config.date %>&nbsp;&ndash;&nbsp;
9
+ <%= Middleman::Presentation.config.speaker -%>
10
+ <%- if Middleman::Presentation.config.company -%>
11
+ (<%= Middleman::Presentation.config.company %>)
12
+ <%- end -%>
13
+ </small>
14
+ </p>
15
+ <%- if Middleman::Presentation.config.version -%>
16
+ <p class="mp-version"><%= Middleman::Presentation.config.version %></p>
17
+ <%- end -%>
18
+ <%- if Middleman::Presentation.config.license -%>
19
+ <p class="mp-license"><%= Middleman::Presentation.config.license %></p>
20
+ <%- end -%>
21
+ </li>
22
+ <li class="mp-layout-grid-column-33">
23
+ <div class="mp-logo"></div>
24
+ </li>
25
+ </ul>
26
+ </section>
@@ -0,0 +1,6 @@
1
+ <section>
2
+ # <%= Middleman::Presentation.t('slides.agenda.title', locale: @language) %>
3
+
4
+ * <%= Middleman::Presentation.t('slides.agenda.entry_one', locale: @language) %>
5
+ * <%= Middleman::Presentation.t('slides.agenda.entry_two', locale: @language) %>
6
+ </section>
@@ -0,0 +1,4 @@
1
+ <section class="mp-last-slide">
2
+ <h1><%= Middleman::Presentation.t('slides.questions.title', locale: @language) %></h1>
3
+ <div class="mp-logo-question"></div>
4
+ </section>
@@ -0,0 +1,27 @@
1
+ <section class="mp-last-slide">
2
+ <h1><%= Middleman::Presentation.t('slides.contact.title', locale: @language) %></h1>
3
+ <ul class="mp-layout-grid-centered">
4
+ <li class"mp-layout-grid-column-33">
5
+ <div class="mp-logo-contact"></div>
6
+ </li>
7
+ <li class"mp-layout-grid-column-33">
8
+ <ul class="mp-list-with-icons">
9
+ <%% if Middleman::Presentation.config.email_address -%>
10
+ <li>
11
+ <i class="mp-icon mp-icon-contact-mail"></i><a href="mailto:<%%= Middleman::Presentation.config.email_address %>" class="mp-external-url"><%%= Middleman::Presentation.config.email_address %></a>
12
+ </li>
13
+ <%% end -%>
14
+ <%% if Middleman::Presentation.config.phone_number -%>
15
+ <li>
16
+ <i class="mp-icon mp-icon-contact-phone"></i><%%= Middleman::Presentation.config.phone_number %>
17
+ </li>
18
+ <%% end -%>
19
+ <%% if Middleman::Presentation.config.github_url -%>
20
+ <li>
21
+ <i class="mp-icon mp-icon-contact-github"></i><a href="<%%= Middleman::Presentation.config.github_url %>" class="mp-external-url" target="_blank"><%%= File.basename(URI.parse(Middleman::Presentation.config.github_url).path) %></a>
22
+ </li>
23
+ <%% end -%>
24
+ </ul>
25
+ </li>
26
+ </ul>
27
+ </section>
@@ -0,0 +1,4 @@
1
+ <section>
2
+ <h2><%= Middleman::Presentation.t('slides.end.title', locale: @language) %></h2>
3
+ <i class="mp-icon mp-icon-absolute-large mp-icon-the-end"></i>
4
+ </section>
@@ -0,0 +1,20 @@
1
+ {
2
+ name: '<%= @name %>',
3
+ version: '<%= @version %>',
4
+ <% if @url -%>
5
+ homepage: '<%= @url %>',
6
+ <% end -%>
7
+ <% if @author and @email-%>
8
+ authors: [
9
+ '<% @author %> <<%= @email %>>'
10
+ ],
11
+ <% end -%>
12
+ license: '<%= @license %>',
13
+ ignore: [
14
+ '**/.*',
15
+ 'node_modules',
16
+ 'bower_components',
17
+ 'test',
18
+ 'tests'
19
+ ]
20
+ }
File without changes
@@ -0,0 +1,9 @@
1
+ /**
2
+ * <%= @theme_name %>
3
+ *
4
+ * Copyright (C) <%= @year %>- <%= @author %>
5
+ */
6
+
7
+ @import 'fonts'
8
+ @import 'images'
9
+ @import 'theme'
@@ -0,0 +1,5 @@
1
+ div.mp-logo-contact {
2
+ }
3
+
4
+ div.mp-logo-question {
5
+ }
@@ -0,0 +1,251 @@
1
+ @import "reveal.js/css/theme/template/mixins";
2
+ @import "reveal.js/css/theme/template/settings";
3
+
4
+ // Override theme settings (see ../template/settings.scss)
5
+ $mainFont: sans-serif;
6
+ $mainColor: #000000;
7
+ $headingFont: sans-serif;
8
+ $headingColor: #000000;
9
+ $headingLetterSpacing: -0.08em;
10
+ $headingTextShadow: none;
11
+ $backgroundColor: #ffffff;
12
+ $linkColor: #2f2f2f;
13
+ $linkColorHover: #0061b2;
14
+ $selectionBackgroundColor: #858585;
15
+ $bulletPointColor: #2f2f2f;
16
+
17
+ // Theme template ------------------------------
18
+ @import "reveal.js/css/theme/template/theme";
19
+ // ---------------------------------------------
20
+
21
+ <% if @clean_css -%>
22
+ <% Middleman::Presentation::CssClassExtracter.new.extract(Middleman::Presentation.stylable_files, ignore: %w(slides reveal)).each do |klass| -%>
23
+ // <%= klass.files.to_list %>
24
+ .<%= klass.name %> {
25
+ }
26
+
27
+ <% end -%>
28
+ <% else -%>
29
+ section.mp-start-slide {
30
+ h1 {
31
+ font-family: sans-serif;
32
+ font-size: 4.5rem;
33
+ font-weight: bold;
34
+ }
35
+
36
+ h2 {
37
+ font-size: 2rem;
38
+ color: #2f2f2f;
39
+ font-family: sans-serif;
40
+ }
41
+
42
+ .mp-headline {
43
+ display: inline-block;
44
+ width: 70%;
45
+ }
46
+
47
+ .mp-author {
48
+ font-size: 2rem;
49
+ color: #2f2f2f;
50
+ line-height: 1rem;
51
+ margin: 0px;
52
+ margin-bottom: 5px;
53
+ }
54
+
55
+ .mp-license {
56
+ font-size: 1rem;
57
+ color: #2f2f2f;
58
+ line-height: 1rem;
59
+ margin: 0px;
60
+ }
61
+ }
62
+
63
+ .reveal section img {
64
+ padding: 10px;
65
+ border: none;
66
+ box-shadow: none;
67
+ }
68
+
69
+ .reveal .mp-inline-code {
70
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
71
+ padding-right: 4px;
72
+ padding-bottom: 0px;
73
+ }
74
+
75
+ .reveal h1 {
76
+ font-size: 4rem;
77
+ font-family: sans-serif;
78
+ font-weight: bold;
79
+ text-transform: uppercase;
80
+ }
81
+
82
+ .reveal h2 {
83
+ font-size: 3rem;
84
+ color: #2f2f2f;
85
+ font-family: sans-serif;
86
+ font-weight: bold;
87
+ text-transform: uppercase;
88
+ }
89
+
90
+ .reveal h3 {
91
+ font-family: sans-serif;
92
+ color: #2f2f2f;
93
+ font-size: 2rem;
94
+ text-transform: none;
95
+ }
96
+
97
+ .reveal pre {
98
+ width: 100%;
99
+ }
100
+
101
+ .reveal code {
102
+ width: 100%;
103
+ }
104
+
105
+ ::-webkit-scrollbar {
106
+ width: 12px;
107
+ }
108
+
109
+ .reveal blockquote {
110
+ box-shadow: none;
111
+ position: relative;
112
+ margin-top: 3rem;
113
+ margin-bottom: 2rem;
114
+ border: 1px black;
115
+ }
116
+
117
+ blockquote:before {
118
+ display: block;
119
+ font-size: 10em;
120
+ position: absolute;
121
+ left: -0.5em;
122
+ top: 0.3em;
123
+ content: "“";
124
+ color: #ff530a;
125
+ }
126
+
127
+ blockquote cite:before {
128
+ content: "\2014 \2009";
129
+ }
130
+
131
+ .reveal blockquote cite {
132
+ font-size: 0.7em;
133
+ color: grey;
134
+ display: block;
135
+ }
136
+
137
+ ::-webkit-scrollbar-track {
138
+ -webkit-box-shadow: inset 0 0 6px #ff530a;
139
+ border-radius: 10px;
140
+ }
141
+
142
+ ::-webkit-scrollbar-thumb {
143
+ -webkit-box-shadow: inset 0 0 6px #ff530a;
144
+ background-color: #ff530a;
145
+ border-radius: 10px;
146
+ }
147
+
148
+ .reveal ul li {
149
+ margin-bottom: 20px;
150
+ }
151
+
152
+ .reveal ul li ul li {
153
+ margin-bottom: 5px;
154
+ }
155
+
156
+ .reveal ul li ul {
157
+ list-style-type: circle;
158
+ }
159
+
160
+ .mp-hidden {
161
+ display: none;
162
+ }
163
+
164
+ li>i.mp-hint {
165
+ @extend .fa;
166
+ @extend .fa-exclamation-triangle;
167
+ margin-right: 15px;
168
+ font-size: 1em;
169
+ }
170
+
171
+ section>i.mp-question {
172
+ @extend .fa;
173
+ @extend .fa-question;
174
+ margin-right: 15px;
175
+ font-size: 5em;
176
+ }
177
+
178
+ ul > li {
179
+ margin-left: 2em;
180
+ }
181
+
182
+ ul.mp-with-image {
183
+ vertical-align: middle;
184
+ }
185
+
186
+ img.mp-with-list {
187
+ vertical-align: middle;
188
+ }
189
+
190
+ .reveal ul.mp-iconless-list {
191
+ list-style-type: none;
192
+ }
193
+
194
+ li > i.mp-phone {
195
+ @extend .fa;
196
+ @extend .fa-phone;
197
+ margin-right: 15px;
198
+ }
199
+
200
+ li > i.mp-mail {
201
+ @extend .fa;
202
+ @extend .fa-envelope;
203
+ margin-right: 15px;
204
+ }
205
+
206
+ li > i.mp-github {
207
+ @extend .fa;
208
+ @extend .fa-github;
209
+ margin-right: 15px;
210
+ }
211
+
212
+ a.mp-external-url:after {
213
+ font-family: "FontAwesome";
214
+ content: "\f08e";
215
+ margin-left: 12px;
216
+ margin-right: 12px;
217
+ font-size: 0.7em;
218
+ }
219
+
220
+ img.mp-preview-image {
221
+ max-width: 300px;
222
+ max-height: 300px;
223
+ display: inline-block;
224
+ margin: 5px auto;
225
+ box-shadow: rgba(0,0,0,0.2) 0px 2px 3px, inset rgba(0,0,0,0.2) 0px -1px 2px;
226
+ border-radius: 10px;
227
+ }
228
+
229
+ footer#mp-site-footer {
230
+ position: absolute;
231
+ bottom: 20px;
232
+ left: 0px;
233
+ width: 100%;
234
+ text-align: center;
235
+ }
236
+
237
+ #mp-copyright-notice {
238
+ min-height: 10px;
239
+ font-size: 0.75rem;
240
+ display: inline-block;
241
+ }
242
+
243
+ a#mp-print-link {
244
+ }
245
+
246
+ i.mp-print {
247
+ @extend .fa;
248
+ @extend .fa-print;
249
+ margin-left: 5px;
250
+ }
251
+ <% end -%>
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+
3
+ use Rack::Static,
4
+ :urls => ['/<%= @images_directory %>', '/<%= @stylesheets_directory %>', '/<%= @javascripts_directory %>', '/<%= @fonts_directory %>'],
5
+ :root => File.expand_path('.')
6
+
7
+ run lambda { |env|
8
+ [
9
+ 200,
10
+ {
11
+ 'Content-Type' => 'text/html',
12
+ 'Cache-Control' => 'public, max-age=86400'
13
+ },
14
+ File.open(File.expand_path('index.html'), File::RDONLY)
15
+ ]
16
+ }
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+
3
+ echo "Make sure you've got 'bower' installed on your system! Please see http://bower.io/ for more information about installing 'bower' on your system."
4
+
5
+ gem install bundler && bundle install
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ bundle exec middleman build $*
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ bundle exec middleman-presentation export presentation
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ bundle exec middleman-presentation serve presentation $*
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ bundle exec middleman-presentation create slide $*