middleman-presentation-helpers 0.0.7 → 0.1.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +0 -2
- data/.rubocop.yml +45 -4
- data/README.md +23 -2
- data/Rakefile +6 -2
- data/features/image_gallery.feature +3 -4
- data/features/metadata.feature +40 -0
- data/features/step_definitions.rb +0 -1
- data/features/support/aruba.rb +1 -1
- data/features/support/ci.rb +1 -1
- data/features/support/env.rb +1 -1
- data/lib/middleman-presentation-helpers.rb +24 -0
- data/lib/middleman-presentation-helpers/helpers/image.rb +20 -0
- data/lib/{middleman-presentation → middleman-presentation-helpers}/helpers/image_gallery.rb +9 -7
- data/lib/middleman-presentation-helpers/helpers/metadata.rb +29 -0
- data/lib/{middleman-presentation → middleman-presentation-helpers}/helpers/slides.rb +6 -4
- data/lib/middleman-presentation-helpers/plugins/footer_plugin.rb +17 -0
- data/lib/middleman-presentation-helpers/plugins/highlight_plugin.rb +23 -0
- data/lib/middleman-presentation-helpers/plugins/image_gallery_plugin.rb +25 -0
- data/lib/middleman-presentation-helpers/plugins/images_plugin.rb +19 -0
- data/lib/{middleman-presentation/helpers/plugins/footer_plugin.rb → middleman-presentation-helpers/plugins/jquery_plugin.rb} +4 -5
- data/lib/middleman-presentation-helpers/plugins/metadata_plugin.rb +13 -0
- data/lib/{middleman-presentation/helpers/plugins/diagram_plugin.rb → middleman-presentation-helpers/plugins/normalize_plugin.rb} +4 -5
- data/lib/middleman-presentation-helpers/plugins/print_plugin.rb +17 -0
- data/lib/middleman-presentation-helpers/plugins/slides_plugin.rb +33 -0
- data/lib/{middleman-presentation/helpers → middleman-presentation-helpers}/version.rb +1 -1
- data/lib/middleman-presentation-plugin.rb +1 -0
- data/middleman-presentation-helpers.gemspec +5 -5
- data/vendor/assets/{javascripts → middleman-presentation-helpers/footer}/footer.js +4 -2
- data/vendor/assets/middleman-presentation-helpers/footer/footer.scss +3 -0
- data/vendor/assets/{stylesheets → middleman-presentation-helpers/image_gallery}/image_gallery.scss +0 -0
- data/vendor/assets/{stylesheets → middleman-presentation-helpers/images}/images.scss +0 -0
- data/vendor/assets/middleman-presentation-helpers/print/pdf.scss +200 -0
- metadata +29 -24
- data/.travis.yml +0 -8
- data/Gemfile +0 -50
- data/Gemfile.lock +0 -382
- data/config/rubocop/exclude.yml +0 -25
- data/config/rubocop/include.yml +0 -142
- data/lib/middleman-presentation/helpers.rb +0 -14
- data/lib/middleman-presentation/helpers/plugins/common_plugin.rb +0 -22
- data/lib/middleman-presentation/helpers/plugins/image_gallery_plugin.rb +0 -35
- data/lib/middleman-presentation/helpers/plugins/slides_plugin.rb +0 -43
- data/vendor/assets/stylesheets/footer.scss +0 -29
data/config/rubocop/include.yml
DELETED
@@ -1,142 +0,0 @@
|
|
1
|
-
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
-
# on 2014-08-04 09:10:49 +0200 using RuboCop version 0.24.1.
|
3
|
-
# The point is for the user to remove these configuration records
|
4
|
-
# one by one as the offenses are removed from the code base.
|
5
|
-
# Note that changes in the inspected code, or installation of new
|
6
|
-
# versions of RuboCop, may require this file to be generated again.
|
7
|
-
|
8
|
-
# Offense count: 1
|
9
|
-
# Configuration parameters: AlignWith, SupportedStyles.
|
10
|
-
Lint/EndAlignment:
|
11
|
-
Enabled: true
|
12
|
-
|
13
|
-
# Offense count: 1
|
14
|
-
Lint/Eval:
|
15
|
-
Enabled: true
|
16
|
-
|
17
|
-
# Offense count: 1
|
18
|
-
Lint/HandleExceptions:
|
19
|
-
Enabled: true
|
20
|
-
|
21
|
-
# Offense count: 1
|
22
|
-
# Cop supports --auto-correct.
|
23
|
-
Lint/StringConversionInInterpolation:
|
24
|
-
Enabled: true
|
25
|
-
|
26
|
-
# Offense count: 1
|
27
|
-
# Cop supports --auto-correct.
|
28
|
-
Lint/UnusedBlockArgument:
|
29
|
-
Enabled: true
|
30
|
-
|
31
|
-
# Offense count: 1
|
32
|
-
Lint/UselessAccessModifier:
|
33
|
-
Enabled: true
|
34
|
-
|
35
|
-
# Offense count: 7
|
36
|
-
# Cop supports --auto-correct.
|
37
|
-
Style/AndOr:
|
38
|
-
Enabled: true
|
39
|
-
|
40
|
-
# Offense count: 7
|
41
|
-
# Cop supports --auto-correct.
|
42
|
-
Style/Blocks:
|
43
|
-
Enabled: true
|
44
|
-
|
45
|
-
# Offense count: 1
|
46
|
-
Style/CaseEquality:
|
47
|
-
Enabled: true
|
48
|
-
|
49
|
-
# Offense count: 1
|
50
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
51
|
-
Style/ClassAndModuleChildren:
|
52
|
-
Enabled: true
|
53
|
-
|
54
|
-
# Offense count: 1
|
55
|
-
# Cop supports --auto-correct.
|
56
|
-
Style/CommentIndentation:
|
57
|
-
Enabled: true
|
58
|
-
|
59
|
-
# Offense count: 30
|
60
|
-
Style/Documentation:
|
61
|
-
Enabled: true
|
62
|
-
|
63
|
-
# Offense count: 3
|
64
|
-
Style/EachWithObject:
|
65
|
-
Enabled: true
|
66
|
-
|
67
|
-
# Offense count: 4
|
68
|
-
# Cop supports --auto-correct.
|
69
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
70
|
-
Style/HashSyntax:
|
71
|
-
Enabled: true
|
72
|
-
|
73
|
-
# Offense count: 1
|
74
|
-
# Cop supports --auto-correct.
|
75
|
-
Style/LeadingCommentSpace:
|
76
|
-
Enabled: true
|
77
|
-
|
78
|
-
# Offense count: 151
|
79
|
-
# Configuration parameters: AllowURI.
|
80
|
-
Style/LineLength:
|
81
|
-
Max: 225
|
82
|
-
|
83
|
-
# Offense count: 3
|
84
|
-
Style/MultilineBlockChain:
|
85
|
-
Enabled: true
|
86
|
-
|
87
|
-
# Offense count: 1
|
88
|
-
# Configuration parameters: CountKeywordArgs.
|
89
|
-
Style/ParameterLists:
|
90
|
-
Max: 6
|
91
|
-
|
92
|
-
# Offense count: 4
|
93
|
-
# Configuration parameters: NamePrefixBlacklist.
|
94
|
-
Style/PredicateName:
|
95
|
-
Enabled: true
|
96
|
-
|
97
|
-
# Offense count: 3
|
98
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
99
|
-
Style/RaiseArgs:
|
100
|
-
Enabled: true
|
101
|
-
|
102
|
-
# Offense count: 5
|
103
|
-
# Configuration parameters: MaxSlashes.
|
104
|
-
Style/RegexpLiteral:
|
105
|
-
Enabled: true
|
106
|
-
|
107
|
-
# Offense count: 1
|
108
|
-
# Cop supports --auto-correct.
|
109
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
110
|
-
Style/Semicolon:
|
111
|
-
Enabled: true
|
112
|
-
|
113
|
-
# Offense count: 2
|
114
|
-
# Configuration parameters: Methods.
|
115
|
-
Style/SingleLineBlockParams:
|
116
|
-
Enabled: true
|
117
|
-
|
118
|
-
# Offense count: 2
|
119
|
-
# Cop supports --auto-correct.
|
120
|
-
Style/SpaceInsideParens:
|
121
|
-
Enabled: true
|
122
|
-
|
123
|
-
# Offense count: 5
|
124
|
-
# Cop supports --auto-correct.
|
125
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
126
|
-
Style/StringLiterals:
|
127
|
-
Enabled: true
|
128
|
-
|
129
|
-
# Offense count: 5
|
130
|
-
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
131
|
-
Style/TrailingComma:
|
132
|
-
Enabled: true
|
133
|
-
|
134
|
-
# Offense count: 2
|
135
|
-
# Cop supports --auto-correct.
|
136
|
-
Style/TrailingWhitespace:
|
137
|
-
Enabled: true
|
138
|
-
|
139
|
-
# Offense count: 1
|
140
|
-
# Configuration parameters: CountComments.
|
141
|
-
Style/ClassLength:
|
142
|
-
Max: 160
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'middleman-presentation/helpers/version'
|
2
|
-
|
3
|
-
require 'middleman-presentation/helpers/plugins/common_plugin'
|
4
|
-
require 'middleman-presentation/helpers/plugins/diagram_plugin'
|
5
|
-
require 'middleman-presentation/helpers/plugins/image_gallery_plugin'
|
6
|
-
require 'middleman-presentation/helpers/plugins/slides_plugin'
|
7
|
-
require 'middleman-presentation/helpers/plugins/footer_plugin'
|
8
|
-
|
9
|
-
module Middleman
|
10
|
-
module Presentation
|
11
|
-
module Helpers
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module Middleman
|
4
|
-
module Presentation
|
5
|
-
# Helpers plugin
|
6
|
-
module Helpers
|
7
|
-
module CommonPlugin
|
8
|
-
extend PluginApi
|
9
|
-
|
10
|
-
#importable_files = %w(
|
11
|
-
# .png .gif .jpg .jpeg .svg .webp
|
12
|
-
# .eot .otf .svc .woff .ttf
|
13
|
-
#).map { |e| Regexp.new("#{Regexp.escape(e)}$") }
|
14
|
-
|
15
|
-
add_assets(
|
16
|
-
File.expand_path('../../../../../vendor/assets', __FILE__) # ,
|
17
|
-
# importable_files: importable_files
|
18
|
-
)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'middleman-presentation/helpers/image_gallery'
|
3
|
-
|
4
|
-
module Middleman
|
5
|
-
module Presentation
|
6
|
-
# Helpers plugin
|
7
|
-
module Helpers
|
8
|
-
module ImageGalleryPlugin
|
9
|
-
extend PluginApi
|
10
|
-
|
11
|
-
add_component(
|
12
|
-
name: 'jquery',
|
13
|
-
version: '~1.11',
|
14
|
-
importable_files: [
|
15
|
-
%r{dist/jquery\.js$}
|
16
|
-
]
|
17
|
-
)
|
18
|
-
|
19
|
-
add_component(
|
20
|
-
name: 'lightbox2',
|
21
|
-
github: 'dg-vrnetze/revealjs-lightbox2',
|
22
|
-
importable_files: [
|
23
|
-
%r{js/lightbox\.js$},
|
24
|
-
%r{sass/lightbox\.scss$},
|
25
|
-
],
|
26
|
-
ignorable_files: [
|
27
|
-
%r{/demopage/}
|
28
|
-
]
|
29
|
-
)
|
30
|
-
|
31
|
-
add_helpers Middleman::Presentation::Helpers::ImageGallery
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'middleman-presentation/helpers/slides'
|
3
|
-
|
4
|
-
module Middleman
|
5
|
-
module Presentation
|
6
|
-
# Helpers plugin
|
7
|
-
module Helpers
|
8
|
-
# Slides plugin
|
9
|
-
module SlidesPlugin
|
10
|
-
extend PluginApi
|
11
|
-
|
12
|
-
add_component(
|
13
|
-
name: 'reveal.js',
|
14
|
-
version: 'latest',
|
15
|
-
importable_files: [
|
16
|
-
%r{lib/js/head\.min},
|
17
|
-
%r{js/reveal\.min\.js},
|
18
|
-
%r{css/reveal\.min\.css},
|
19
|
-
%r{lib/css/zenburn\.css},
|
20
|
-
%r{css/theme/template/mixins\.scss},
|
21
|
-
%r{css/theme/template/settings\.scss}
|
22
|
-
],
|
23
|
-
loadable_files: [
|
24
|
-
%r{notes\.html},
|
25
|
-
%r{reveal\.js/.*/.*\.js$}
|
26
|
-
],
|
27
|
-
ignorable_files: [
|
28
|
-
/src/,
|
29
|
-
/test/,
|
30
|
-
/demo/,
|
31
|
-
/source/
|
32
|
-
],
|
33
|
-
output_directories: {
|
34
|
-
/notes\.html$/ => Pathname.new('javascripts'),
|
35
|
-
/pdf\.css$/ => Pathname.new('stylesheets')
|
36
|
-
}
|
37
|
-
)
|
38
|
-
|
39
|
-
add_helpers Middleman::Presentation::Helpers::Slides
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
.reveal footer.mp-presentation-footer {
|
2
|
-
position: absolute;
|
3
|
-
bottom: 20px;
|
4
|
-
left: 0px;
|
5
|
-
width: 100%;
|
6
|
-
text-align: center;
|
7
|
-
z-index: 29;
|
8
|
-
|
9
|
-
span {
|
10
|
-
margin-left: .2rem;
|
11
|
-
margin-right: .2rem;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
.reveal .mp-copyright-notice {
|
16
|
-
min-height: 10px;
|
17
|
-
font-size: 0.75rem;
|
18
|
-
display: inline-block;
|
19
|
-
}
|
20
|
-
|
21
|
-
.reveal a.mp-print-link {
|
22
|
-
font-size: 0.75rem;
|
23
|
-
}
|
24
|
-
|
25
|
-
.reveal i.mp-print {
|
26
|
-
@extend .fa;
|
27
|
-
@extend .fa-print;
|
28
|
-
margin-left: 5px;
|
29
|
-
}
|