middleman-hashicorp 0.3.25 → 0.3.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e209a9dcc4198bbdb2173e1b64ccf0a7d05fed84
4
- data.tar.gz: 264517ba75e9dbe87bb3f753b339f65d2f4d1c37
3
+ metadata.gz: 5907dec9b9806f1d695f9ab8406ce40125015d0e
4
+ data.tar.gz: 8842e77e4ba7ea140be8d5fae0a5964383ac9e13
5
5
  SHA512:
6
- metadata.gz: a1e24b922e2171610a75813607f1de5a4e867f8a364cc2a66667c206b54246573c5fbac8b57d9cc88738c1a965c0948a1a7a65dcca882d0fb82873299d44f31b
7
- data.tar.gz: 7e62ea0506020bdac1a7419529d4be13e37fd967c2fc3a86ebd5e5aeee0553c3b4d07796b5142c92187e83d2c540a18680a175543f0c916b3891ba1b944843e4
6
+ metadata.gz: 79b2b3b0e99cc05161e9af02b57d4e8cf785dce2fcff9c45a0c68ba8d08ace706100f5f4950ef818ff417204fc229cc4b7344cc16ce22cf794ef45b67043642a
7
+ data.tar.gz: 2e9f87802500a8f00eb186acc7fd75eb7d3aa30ebe4d8eac9bd7f6de2d9d5a5d1a30e0d904f563c8d3b4abd2894dafa5384ba70eac5549d630024926d1bdf920
data/.travis.yml CHANGED
@@ -5,7 +5,7 @@ language: ruby
5
5
  cache: bundler
6
6
 
7
7
  rvm:
8
- - 2.3.1
8
+ - 2.3.4
9
9
 
10
10
  branches:
11
11
  only:
data/Makefile CHANGED
@@ -4,6 +4,7 @@ docker:
4
4
  @echo "==> Building container v${VERSION}..."
5
5
  @docker build \
6
6
  --file "docker/Dockerfile" \
7
+ --squash \
7
8
  --tag "hashicorp/middleman-hashicorp" \
8
9
  --tag "hashicorp/middleman-hashicorp:${VERSION}" \
9
10
  --pull \
@@ -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>
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module HashiCorp
3
- VERSION = "0.3.25"
3
+ VERSION = "0.3.26"
4
4
  end
5
5
  end
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.25
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-05-26 00:00:00.000000000 Z
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