middleman-presentation-core 0.16.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rdebugrc +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +52 -0
- data/.simplecov +25 -0
- data/.yardopts +5 -0
- data/Guardfile +13 -0
- data/LICENSE.software +21 -0
- data/Rakefile +200 -0
- data/config/license_finder.yml +13 -0
- data/cucumber.yml +2 -0
- data/doc/licenses/dependencies.csv +55 -0
- data/doc/licenses/dependencies.db +0 -0
- data/doc/licenses/dependencies.html +1415 -0
- data/doc/licenses/dependencies.md +603 -0
- data/doc/licenses/dependencies_detailed.csv +190 -0
- data/doc/yard/.keep +0 -0
- data/features/build_presentation.feature +62 -0
- data/features/code_highlighting.feature +43 -0
- data/features/components.feature +29 -0
- data/features/create_plugin-cli.feature +11 -0
- data/features/create_presentation-cli.feature +349 -0
- data/features/create_slide-cli.feature +188 -0
- data/features/create_slides-templates-cli.feature +114 -0
- data/features/create_theme-cli.feature +58 -0
- data/features/default_slides.feature +58 -0
- data/features/edit_slide-cli.feature +121 -0
- data/features/export_presentation-cli.feature +23 -0
- data/features/grouping_slides.feature +150 -0
- data/features/ignore_slides.feature +103 -0
- data/features/init_application-cli.feature +59 -0
- data/features/init_predefined_slides.feature +9 -0
- data/features/language_detection.feature +0 -0
- data/features/list_assets-cli.feature +13 -0
- data/features/list_components-cli.feature +13 -0
- data/features/list_helpers-cli.feature +13 -0
- data/features/list_plugins-cli.feature +13 -0
- data/features/list_styles-cli.feature +17 -0
- data/features/plugins.feature +63 -0
- data/features/presentation.feature +57 -0
- data/features/rename_slide-cli.feature +176 -0
- data/features/render_slides.feature +76 -0
- data/features/show_config-cli.feature +25 -0
- data/features/show_footer.feature +14 -0
- data/features/show_slide_number.feature +31 -0
- data/features/show_support_information-cli.feature +12 -0
- data/features/support/aruba.rb +18 -0
- data/features/support/ci.rb +3 -0
- data/features/support/env.rb +25 -0
- data/features/support/fixtures.rb +21 -0
- data/features/support/hash.rb +2 -0
- data/features/support/reporting.rb +2 -0
- data/features/version_number.feature +15 -0
- data/fixtures/middleman-presentation-simple_plugin/Rakefile +1 -0
- data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-plugin.rb +0 -0
- data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin/helpers.rb +13 -0
- data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin/plugin.rb +34 -0
- data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin/version.rb +8 -0
- data/fixtures/middleman-presentation-simple_plugin/lib/middleman-presentation-simple_plugin.rb +11 -0
- data/fixtures/middleman-presentation-simple_plugin/middleman-presentation-simple_plugin.gemspec +22 -0
- data/fixtures/middleman-presentation-simple_plugin/vendor/assets/stylesheets/test_simple.scss +3 -0
- data/lib/middleman-presentation-core/application_config.rb +198 -0
- data/lib/middleman-presentation-core/asset.rb +103 -0
- data/lib/middleman-presentation-core/asset_component.rb +34 -0
- data/lib/middleman-presentation-core/asset_list.rb +84 -0
- data/lib/middleman-presentation-core/asset_store.rb +73 -0
- data/lib/middleman-presentation-core/assets_loader.rb +95 -0
- data/lib/middleman-presentation-core/assets_manager.rb +73 -0
- data/lib/middleman-presentation-core/cache.rb +49 -0
- data/lib/middleman-presentation-core/cli/base.rb +30 -0
- data/lib/middleman-presentation-core/cli/base_group.rb +11 -0
- data/lib/middleman-presentation-core/cli/build.rb +13 -0
- data/lib/middleman-presentation-core/cli/build_presentation.rb +57 -0
- data/lib/middleman-presentation-core/cli/change.rb +13 -0
- data/lib/middleman-presentation-core/cli/change_slide.rb +82 -0
- data/lib/middleman-presentation-core/cli/create.rb +16 -0
- data/lib/middleman-presentation-core/cli/create_plugin.rb +62 -0
- data/lib/middleman-presentation-core/cli/create_presentation.rb +300 -0
- data/lib/middleman-presentation-core/cli/create_slide.rb +52 -0
- data/lib/middleman-presentation-core/cli/create_theme.rb +81 -0
- data/lib/middleman-presentation-core/cli/edit.rb +13 -0
- data/lib/middleman-presentation-core/cli/edit_slide.rb +49 -0
- data/lib/middleman-presentation-core/cli/export.rb +11 -0
- data/lib/middleman-presentation-core/cli/export_presentation.rb +55 -0
- data/lib/middleman-presentation-core/cli/init.rb +12 -0
- data/lib/middleman-presentation-core/cli/init_application.rb +48 -0
- data/lib/middleman-presentation-core/cli/init_predefined_slides.rb +31 -0
- data/lib/middleman-presentation-core/cli/list.rb +66 -0
- data/lib/middleman-presentation-core/cli/reset_thor.rb +18 -0
- data/lib/middleman-presentation-core/cli/runner.rb +47 -0
- data/lib/middleman-presentation-core/cli/serve.rb +13 -0
- data/lib/middleman-presentation-core/cli/serve_presentation.rb +30 -0
- data/lib/middleman-presentation-core/cli/shared.rb +51 -0
- data/lib/middleman-presentation-core/cli/show.rb +70 -0
- data/lib/middleman-presentation-core/comparable_slide.rb +69 -0
- data/lib/middleman-presentation-core/component.rb +86 -0
- data/lib/middleman-presentation-core/components_manager.rb +96 -0
- data/lib/middleman-presentation-core/configuration_file.rb +15 -0
- data/lib/middleman-presentation-core/css_class_extracter.rb +41 -0
- data/lib/middleman-presentation-core/custom_template.rb +15 -0
- data/lib/middleman-presentation-core/erb_template.rb +15 -0
- data/lib/middleman-presentation-core/errors.rb +10 -0
- data/lib/middleman-presentation-core/existing_slide.rb +92 -0
- data/lib/middleman-presentation-core/frontend_component.rb +75 -0
- data/lib/middleman-presentation-core/group_template.rb +15 -0
- data/lib/middleman-presentation-core/helpers_manager.rb +37 -0
- data/lib/middleman-presentation-core/ignore_file.rb +52 -0
- data/lib/middleman-presentation-core/liquid_template.rb +15 -0
- data/lib/middleman-presentation-core/list.rb +7 -0
- data/lib/middleman-presentation-core/locale_configurator.rb +84 -0
- data/lib/middleman-presentation-core/logger.rb +8 -0
- data/lib/middleman-presentation-core/main.rb +55 -0
- data/lib/middleman-presentation-core/markdown_template.rb +15 -0
- data/lib/middleman-presentation-core/middleman_environment.rb +108 -0
- data/lib/middleman-presentation-core/middleman_extension.rb +12 -0
- data/lib/middleman-presentation-core/middleman_step_definitions.rb +131 -0
- data/lib/middleman-presentation-core/new_slide.rb +140 -0
- data/lib/middleman-presentation-core/overwrite_sass.rb +22 -0
- data/lib/middleman-presentation-core/plugin.rb +8 -0
- data/lib/middleman-presentation-core/plugin_api.rb +65 -0
- data/lib/middleman-presentation-core/plugins_manager.rb +7 -0
- data/lib/middleman-presentation-core/predefined_slide_templates_directory.rb +15 -0
- data/lib/middleman-presentation-core/presentation_helper.rb +69 -0
- data/lib/middleman-presentation-core/register_extension.rb +4 -0
- data/lib/middleman-presentation-core/roles/comparable_by_name.rb +24 -0
- data/lib/middleman-presentation-core/slide_group.rb +33 -0
- data/lib/middleman-presentation-core/slide_list.rb +52 -0
- data/lib/middleman-presentation-core/slide_name.rb +61 -0
- data/lib/middleman-presentation-core/start.rb +68 -0
- data/lib/middleman-presentation-core/step_definitions.rb +238 -0
- data/lib/middleman-presentation-core/syntax_highlighter.rb +42 -0
- data/lib/middleman-presentation-core/test_helpers.rb +22 -0
- data/lib/middleman-presentation-core/transformers/file_keeper.rb +13 -0
- data/lib/middleman-presentation-core/transformers/group_slides.rb +34 -0
- data/lib/middleman-presentation-core/transformers/ignore_slides.rb +28 -0
- data/lib/middleman-presentation-core/transformers/remove_duplicate_slides.rb +32 -0
- data/lib/middleman-presentation-core/transformers/sort_slides.rb +13 -0
- data/lib/middleman-presentation-core/utils.rb +40 -0
- data/lib/middleman-presentation-core/version.rb +8 -0
- data/lib/middleman-presentation-core.rb +127 -0
- data/locales/de.yml +233 -0
- data/locales/en.yml +236 -0
- data/middleman-presentation-core.gemspec +40 -0
- data/source/slides/01.html.liquid +0 -0
- data/spec/asset_component_spec.rb +13 -0
- data/spec/asset_list_spec.rb +50 -0
- data/spec/asset_spec.rb +45 -0
- data/spec/asset_store_spec.rb +61 -0
- data/spec/assets_manager_spec.rb +111 -0
- data/spec/components_manager_spec.rb +142 -0
- data/spec/css_class_extracter_spec.rb +28 -0
- data/spec/existing_slide_spec.rb +177 -0
- data/spec/frontend_component_spec.rb +94 -0
- data/spec/helpers_manager_spec.rb +90 -0
- data/spec/ignore_file_spec.rb +75 -0
- data/spec/new_slide_spec.rb +155 -0
- data/spec/presentation_helper_spec.rb +137 -0
- data/spec/shared_examples/.keep +0 -0
- data/spec/slide_group_spec.rb +54 -0
- data/spec/slide_list_spec.rb +125 -0
- data/spec/slide_name_spec.rb +53 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/support/aruba.rb +53 -0
- data/spec/support/ci.rb +20 -0
- data/spec/support/environment.rb +18 -0
- data/spec/support/filesystem.rb +22 -0
- data/spec/support/locale.rb +2 -0
- data/spec/support/reporting.rb +2 -0
- data/spec/support/rspec.rb +9 -0
- data/spec/support/string.rb +2 -0
- data/spec/transformers/file_keeper_spec.rb +24 -0
- data/spec/transformers/group_slides_spec.rb +44 -0
- data/spec/transformers/ignore_slides_spec.rb +64 -0
- data/spec/transformers/remove_duplicate_slides_spec.rb +120 -0
- data/spec/transformers/sort_slides_spec.rb +17 -0
- data/spec/utils_spec.rb +14 -0
- data/templates/.bowerrc.tt +4 -0
- data/templates/.gitignore +5 -0
- data/templates/Gemfile.tt +32 -0
- data/templates/LICENSE.presentation +1 -0
- data/templates/Rakefile +59 -0
- data/templates/bower.json.tt +8 -0
- data/templates/bundler_config.tt +6 -0
- data/templates/config.rb.tt +2 -0
- data/templates/config.yaml.tt +17 -0
- data/templates/gitignore.tt +14 -0
- data/templates/plugin/%plugin_name%.gemspec.tt +24 -0
- data/templates/plugin/.gitignore +13 -0
- data/templates/plugin/Gemfile.tt +4 -0
- data/templates/plugin/LICENSE.txt.tt +22 -0
- data/templates/plugin/README.md.tt +31 -0
- data/templates/plugin/Rakefile +1 -0
- data/templates/plugin/lib/%plugin_name%/version.rb.tt +8 -0
- data/templates/plugin/lib/%plugin_name%.rb.tt +10 -0
- data/templates/predefined_slides.d/00_00.html.erb.tt +26 -0
- data/templates/predefined_slides.d/00_01.html.md.tt +6 -0
- data/templates/predefined_slides.d/999980.html.erb.tt +4 -0
- data/templates/predefined_slides.d/999981.html.erb.tt +27 -0
- data/templates/predefined_slides.d/999982.html.erb.tt +4 -0
- data/templates/presentation_theme/bower.json.tt +20 -0
- data/templates/presentation_theme/images/.keep +0 -0
- data/templates/presentation_theme/javascripts/%theme_name%.js.tt +0 -0
- data/templates/presentation_theme/stylesheets/%theme_name%.scss.tt +9 -0
- data/templates/presentation_theme/stylesheets/_fonts.scss.tt +0 -0
- data/templates/presentation_theme/stylesheets/_images.scss.tt +5 -0
- data/templates/presentation_theme/stylesheets/_theme.scss.tt +251 -0
- data/templates/rackup.config.erb +16 -0
- data/templates/script/bootstrap +5 -0
- data/templates/script/build +3 -0
- data/templates/script/export +3 -0
- data/templates/script/presentation +3 -0
- data/templates/script/slide +3 -0
- data/templates/script/start +43 -0
- data/templates/slides/custom.md.tt +3 -0
- data/templates/slides/erb.tt +5 -0
- data/templates/slides/group.tt +3 -0
- data/templates/slides/liquid.tt +5 -0
- data/templates/slides/markdown.tt +3 -0
- data/templates/source/index.html.erb +1 -0
- data/templates/source/javascripts/application.js.tt +3 -0
- data/templates/source/layout.erb +133 -0
- data/templates/source/stylesheets/application.scss.tt +3 -0
- metadata +574 -0
data/templates/Rakefile
ADDED
@@ -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,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,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,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 %> –
|
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,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,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
|
File without changes
|
File without changes
|
@@ -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
|
+
}
|