middleman-hashicorp 0.3.12 → 0.3.13
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/README.md +10 -0
- data/lib/middleman-hashicorp/partials/_mega.html.erb +1 -1
- data/lib/middleman-hashicorp/redcarpet.rb +1 -1
- data/lib/middleman-hashicorp/version.rb +1 -1
- data/spec/unit/markdown_spec.rb +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1fd56a22a40b1ad7c4f7b07e8acf0c41aeabfe85
|
|
4
|
+
data.tar.gz: 439ba649970686c407027c2bb4bc5533e21078d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd2ef764799095db9ebcc13266f1c7cd0d00709b3e8b6f47fb2263e9783daaba7e0efe91abd16a6d4f37e706d3977ca59d55c04bedf0609d8ae4f62892c77d00
|
|
7
|
+
data.tar.gz: 67b6d40035aaeadbe730ffb5ec7f31b0dd2cd53215cc7d92b06c109024619609c31165d4ed1139906bd1bc9e42ef67873f517f24557fe9e686501ef536a3d202
|
data/README.md
CHANGED
|
@@ -67,6 +67,16 @@ Customizations
|
|
|
67
67
|
- During build, assets are hashed
|
|
68
68
|
- During build, gzipped assets are also created
|
|
69
69
|
|
|
70
|
+
### IE Compatibility
|
|
71
|
+
|
|
72
|
+
There are bundled things that make IE behave nicely. Include them like this:
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<!--[if lt IE 9]>
|
|
76
|
+
<%= javascript_include_tag "ie-compat" %>
|
|
77
|
+
<![endif]-->
|
|
78
|
+
```
|
|
79
|
+
|
|
70
80
|
### Turbolinks
|
|
71
81
|
|
|
72
82
|
Turbolinks highjack links on the same domain and use AJAX to dynamically update
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<p class="mega-nav-h2">Any infrastructure for any application</p>
|
|
28
28
|
</div>
|
|
29
29
|
<div class="mega-nav-body-header-item">
|
|
30
|
-
<a href="
|
|
30
|
+
<a href="https://www.hashicorp.com/devops-defined/" class="mega-nav-btn"><img src="<%= image_path("mega-nav/logo-hashicorp.svg") %>" alt="HashiCorp Logo" /> Learn the HashiCorp Suite <svg class="mega-nav-icon mega-nav-icon-angle-right" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-angle"></use></svg></a>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
<div class="mega-nav-body-grid">
|
|
@@ -28,7 +28,7 @@ class Middleman::HashiCorp::RedcarpetHTML < ::Middleman::Renderers::MiddlemanRed
|
|
|
28
28
|
# @param [String] list_type
|
|
29
29
|
#
|
|
30
30
|
def list_item(text, list_type)
|
|
31
|
-
md = text.match(
|
|
31
|
+
md = text.match(/\A(?:<p>)?(<code>(.+?)<\/code>)/)
|
|
32
32
|
linked = !text.match(/\A(<p>)?<a(.+?)>(.+?)<\/a>\s*?[-:]?/).nil?
|
|
33
33
|
|
|
34
34
|
if !md.nil? && !linked
|
data/spec/unit/markdown_spec.rb
CHANGED
|
@@ -111,6 +111,23 @@ module Middleman::HashiCorp
|
|
|
111
111
|
expect(markdown).to render_html(output)
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
+
it "does not add links when the code is not first" do
|
|
115
|
+
markdown = <<-EOH.gsub(/^ {8}/, "")
|
|
116
|
+
- hello - no links here
|
|
117
|
+
- two - has `code` inside
|
|
118
|
+
EOH
|
|
119
|
+
output = <<-EOH.gsub(/^ {8}/, "")
|
|
120
|
+
<ul>
|
|
121
|
+
<li>hello - no links here
|
|
122
|
+
</li>
|
|
123
|
+
<li>two - has <code>code</code> inside
|
|
124
|
+
</li>
|
|
125
|
+
</ul>
|
|
126
|
+
EOH
|
|
127
|
+
|
|
128
|
+
expect(markdown).to render_html(output)
|
|
129
|
+
end
|
|
130
|
+
|
|
114
131
|
it "supports markdown inside HTML" do
|
|
115
132
|
markdown = <<-EOH.gsub(/^ {8}/, "")
|
|
116
133
|
This is some markdown
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Seth Vargo
|
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
233
233
|
version: '0'
|
|
234
234
|
requirements: []
|
|
235
235
|
rubyforge_project:
|
|
236
|
-
rubygems_version: 2.6.
|
|
236
|
+
rubygems_version: 2.6.10
|
|
237
237
|
signing_key:
|
|
238
238
|
specification_version: 4
|
|
239
239
|
summary: A series of helpers for consistency among HashiCorp's middleman sites
|