middleman-hashicorp 0.3.25 → 0.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Makefile +1 -0
- data/assets/stylesheets/hashicorp/enterprise-badges.scss +55 -0
- data/lib/middleman-hashicorp/extension.rb +12 -0
- data/lib/middleman-hashicorp/partials/_enterprise-alert.html.erb +12 -0
- data/lib/middleman-hashicorp/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5907dec9b9806f1d695f9ab8406ce40125015d0e
|
4
|
+
data.tar.gz: 8842e77e4ba7ea140be8d5fae0a5964383ac9e13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b2b3b0e99cc05161e9af02b57d4e8cf785dce2fcff9c45a0c68ba8d08ace706100f5f4950ef818ff417204fc229cc4b7344cc16ce22cf794ef45b67043642a
|
7
|
+
data.tar.gz: 2e9f87802500a8f00eb186acc7fd75eb7d3aa30ebe4d8eac9bd7f6de2d9d5a5d1a30e0d904f563c8d3b4abd2894dafa5384ba70eac5549d630024926d1bdf920
|
data/.travis.yml
CHANGED
data/Makefile
CHANGED
@@ -0,0 +1,55 @@
|
|
1
|
+
$label-enterprise-font-size: 12px;
|
2
|
+
$label-enterprise-font-size-lg: 16px;
|
3
|
+
$label-enterprise-alignment-tweak: 1px; //tweak font not aligning vertically centered
|
4
|
+
|
5
|
+
$header-font-family: 'klavika-web', Helvetica, sans-serif;
|
6
|
+
|
7
|
+
.label-enterprise {
|
8
|
+
background-color: black;
|
9
|
+
border-radius: 2px;
|
10
|
+
color: white;
|
11
|
+
display: inline-block;
|
12
|
+
font-family: $header-font-family;
|
13
|
+
font-size: $label-enterprise-font-size;
|
14
|
+
font-weight: 600;
|
15
|
+
letter-spacing: 0;
|
16
|
+
line-height: 1;
|
17
|
+
margin-left: 1 / 4 * 1em;
|
18
|
+
margin-right: 1 / 4 * 1em;
|
19
|
+
padding: (3px + $label-enterprise-alignment-tweak) / $label-enterprise-font-size * 1em
|
20
|
+
4px / $label-enterprise-font-size * 1em
|
21
|
+
(3px - $label-enterprise-alignment-tweak) / $label-enterprise-font-size * 1em;
|
22
|
+
position: relative;
|
23
|
+
text-transform: uppercase;
|
24
|
+
top: -2px / $label-enterprise-font-size * 1em;
|
25
|
+
vertical-align: middle;
|
26
|
+
|
27
|
+
.alert-enterprise & {
|
28
|
+
margin-left: 0;
|
29
|
+
margin-right: 0;
|
30
|
+
position: static;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
a.label-enterprise {
|
35
|
+
color: white;
|
36
|
+
cursor: pointer;
|
37
|
+
text-decoration: none;
|
38
|
+
|
39
|
+
&:hover,
|
40
|
+
&:focus {
|
41
|
+
background-color: #333;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.label-enterprise-lg {
|
46
|
+
font-size: $label-enterprise-font-size-lg;
|
47
|
+
}
|
48
|
+
|
49
|
+
.alert-enterprise {
|
50
|
+
background-color: #fafafa;
|
51
|
+
border: 1px solid black;
|
52
|
+
display: block;
|
53
|
+
margin-bottom: 15px;
|
54
|
+
padding: 14px;
|
55
|
+
}
|
@@ -258,6 +258,18 @@ class Middleman::HashiCorpExtension < ::Middleman::Extension
|
|
258
258
|
f = File.expand_path("../partials/_mega.html.erb", __FILE__)
|
259
259
|
render_individual_file(f, variables, { template_body: File.read(f) })
|
260
260
|
end
|
261
|
+
|
262
|
+
#
|
263
|
+
# Inserts the enterprise alert to be used across all project sites.
|
264
|
+
# @return [String]
|
265
|
+
#
|
266
|
+
def enterprise_alert(product, variables = {})
|
267
|
+
variables = variables.merge(
|
268
|
+
product: product.to_s,
|
269
|
+
)
|
270
|
+
f = File.expand_path("../partials/_enterprise-alert.html.erb", __FILE__)
|
271
|
+
render_individual_file(f, variables, { template_body: File.read(f) })
|
272
|
+
end
|
261
273
|
end
|
262
274
|
|
263
275
|
#
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<notextile>
|
2
|
+
<div class="alert-enterprise">
|
3
|
+
<div class="media">
|
4
|
+
<div class="media-left">
|
5
|
+
<span class="label-enterprise label-enterprise-lg">Enterprise</span>
|
6
|
+
</div>
|
7
|
+
<div class="media-body">
|
8
|
+
This feature requires <a href="https://www.hashicorp.com/products/<%= product %>/" target="_blank"><%= product.titleize %> Enterprise</a>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<notextile>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-hashicorp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman
|
@@ -198,12 +198,14 @@ files:
|
|
198
198
|
- assets/javascripts/ie-compat/respond.js
|
199
199
|
- assets/javascripts/jquery.js
|
200
200
|
- assets/stylesheets/hashicorp/anchor-links.scss
|
201
|
+
- assets/stylesheets/hashicorp/enterprise-badges.scss
|
201
202
|
- assets/stylesheets/hashicorp/mega-nav.scss
|
202
203
|
- assets/stylesheets/hashicorp/sidebar.scss
|
203
204
|
- docker/Dockerfile
|
204
205
|
- docker/entrypoint.sh
|
205
206
|
- lib/middleman-hashicorp.rb
|
206
207
|
- lib/middleman-hashicorp/extension.rb
|
208
|
+
- lib/middleman-hashicorp/partials/_enterprise-alert.html.erb
|
207
209
|
- lib/middleman-hashicorp/partials/_mega.html.erb
|
208
210
|
- lib/middleman-hashicorp/redcarpet.rb
|
209
211
|
- lib/middleman-hashicorp/releases.rb
|