jekyll_patternbot 0.21.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/Gemfile +7 -7
- data/_config.yml +3 -0
- data/_includes/patternbot_patternlib_pattern.html +18 -12
- data/_layouts/patternbot_pattern_lib.html +20 -0
- data/_patterns/layouts/config.yml +11 -0
- data/_patterns/layouts/layouts.html +20 -0
- data/_patterns/utilities/classes.html +20 -0
- data/_patterns/utilities/config.yml +9 -3
- data/_patterns/utilities/variables.html +20 -0
- data/_plugins/jekyll_patternbot/finders/layouts.rb +32 -0
- data/_plugins/jekyll_patternbot/hooks/pattern_lib.rb +7 -2
- data/_plugins/jekyll_patternbot/loggers/patternbot.rb +2 -1
- data/_plugins/jekyll_patternbot/parsers/css_var.rb +28 -0
- data/_plugins/jekyll_patternbot/parsers/theme.rb +1 -0
- data/_plugins/jekyll_patternbot/processors/utilities.rb +30 -0
- data/_plugins/jekyll_patternbot.rb +3 -0
- data/assets/_patternbot/patterns/utilities/utilities.css +12 -0
- data/assets/_patternbot/patterns/utilities/utilities.min.css +1 -1
- data/jekyll_patternbot.gemspec +9 -8
- data/version.rb +1 -1
- metadata +39 -47
- data/_patterns/utilities/utilities.html +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcfd20d8d94f6dd76f47c9e9829e630f1ae0bb074e0f81ea16fa77225bd1fbb1
|
4
|
+
data.tar.gz: c2db021889a88be1dd9b2d796ee27e165c14068ae7b8e0a0bdbe33941eaa0179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 538e1cd1f064e074b15c3c9c15cc5affce324a0e8784248212e593619c152a4d2a32b216eb1cbecdba131fe38403bd0fc05ffcf8a674552d3089729256a332c0
|
7
|
+
data.tar.gz: 50d250ff5ff80f38c13440dfe17a50f5ffc43a3967daac98d1320c310631c15508d2f151101e1b77a3ab8079f21618ee811189d8437f43b0a8dcbde6ecb86f1c
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,26 @@ Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
---
|
7
7
|
|
8
|
+
## [1.0.0] — 2019-01-16
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Added the ability to document utility variables within the `theme.css` file.
|
13
|
+
- Added the ability to document layouts within the pattern library.
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
|
17
|
+
- Fixed the dependency versions to specific numbers.
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
|
21
|
+
- The Logger now outputs to `STDOUT` by default instead of `STDERR`
|
22
|
+
- When a field data type isn’t specified, a empty dash is output.
|
23
|
+
- Prevented the pattern description from being repeated.
|
24
|
+
- Fixed a responsive layout but in the utilities table on small screens.
|
25
|
+
|
26
|
+
---
|
27
|
+
|
8
28
|
## [0.21.0] — 2019-01-16
|
9
29
|
|
10
30
|
### Fixed
|
data/Gemfile
CHANGED
@@ -5,12 +5,12 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
5
5
|
ruby '2.5.3'
|
6
6
|
|
7
7
|
gem 'jekyll', '~> 3.8'
|
8
|
-
gem 'colorator'
|
9
|
-
gem 'babosa'
|
10
|
-
gem 'deep_merge'
|
11
|
-
gem 'unicode_titlecase'
|
12
|
-
gem 'css_parser'
|
13
|
-
gem 'color_contrast_calc'
|
14
|
-
gem 'indifference'
|
8
|
+
gem 'colorator', '~> 1'
|
9
|
+
gem 'babosa', '~> 1'
|
10
|
+
gem 'deep_merge', '~> 1'
|
11
|
+
gem 'unicode_titlecase', '~> 0.0'
|
12
|
+
gem 'css_parser', '~> 1'
|
13
|
+
gem 'color_contrast_calc', '~> 0.5'
|
14
|
+
gem 'indifference', '~> 0.0'
|
15
15
|
|
16
16
|
gemspec
|
data/_config.yml
CHANGED
@@ -12,6 +12,7 @@ patternbot:
|
|
12
12
|
theme: "theme.css"
|
13
13
|
main: "main.css"
|
14
14
|
utility_tag: "@utility"
|
15
|
+
var_tag: "@var"
|
15
16
|
icons:
|
16
17
|
source: "images"
|
17
18
|
filenames:
|
@@ -29,6 +30,8 @@ patternbot:
|
|
29
30
|
extensions:
|
30
31
|
- ".svg"
|
31
32
|
- ".png"
|
33
|
+
layouts:
|
34
|
+
# default: "Blah, blah…"
|
32
35
|
sample_pages:
|
33
36
|
source: "sample-pages"
|
34
37
|
js:
|
@@ -86,11 +86,13 @@
|
|
86
86
|
<div class="max-length">{{include.pattern.config.description | markdownify | sub_web_dev_tool_urls}}</div>
|
87
87
|
</div>
|
88
88
|
{% else %}
|
89
|
-
{%
|
90
|
-
|
91
|
-
<div class="
|
92
|
-
|
93
|
-
|
89
|
+
{% unless show_sub_headings %}
|
90
|
+
{% if first_pattern.description %}
|
91
|
+
<div class="pattern-desc milli island {% unless show_sub_headings %}patternbot-override-color{% endunless %}">
|
92
|
+
<div class="max-length">{{first_pattern.description | markdownify | sub_web_dev_tool_urls}}</div>
|
93
|
+
</div>
|
94
|
+
{% endif %}
|
95
|
+
{% endunless %}
|
94
96
|
{% endif %}
|
95
97
|
|
96
98
|
{% for pattern in include.pattern.config.patterns %}
|
@@ -206,13 +208,17 @@
|
|
206
208
|
{% unless field.required == false %}<span class="ib pico not-bold italic valign-middle">required</span>{% endunless %}
|
207
209
|
</th>
|
208
210
|
<td scope="col" colspan="6">
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
{
|
214
|
-
|
215
|
-
|
211
|
+
{% if field.data or field.type %}
|
212
|
+
<code class="pattern-code-field">
|
213
|
+
{% if field.data %}
|
214
|
+
object
|
215
|
+
{% else %}
|
216
|
+
{{field.type | escape}}
|
217
|
+
{% endif %}
|
218
|
+
</code>
|
219
|
+
{% else %}
|
220
|
+
<span>—</span>
|
221
|
+
{% endif %}
|
216
222
|
</td>
|
217
223
|
<td scope="col" colspan="11">
|
218
224
|
{% if field.data %}
|
@@ -124,7 +124,15 @@
|
|
124
124
|
</a>
|
125
125
|
</li>
|
126
126
|
{% endif %}
|
127
|
+
{% assign has_utilities = false %}
|
128
|
+
{% assign has_vars = false %}
|
127
129
|
{% if page._PatternbotData.css.theme.utilities and page._PatternbotData.css.theme.utilities != empty %}
|
130
|
+
{% assign has_utilities = true %}
|
131
|
+
{% endif %}
|
132
|
+
{% if page._PatternbotData.css.theme.vars and page._PatternbotData.css.theme.vars != empty %}
|
133
|
+
{% assign has_vars = true %}
|
134
|
+
{% endif %}
|
135
|
+
{% if has_utilities or has_vars %}
|
128
136
|
<li role="presentation">
|
129
137
|
<a class="gutter pad-t-1-4 pad-b-1-4 block" role="tab" aria-controls="utilities" href="#utilities">
|
130
138
|
<div class="relative">
|
@@ -136,6 +144,18 @@
|
|
136
144
|
</a>
|
137
145
|
</li>
|
138
146
|
{% endif %}
|
147
|
+
{% unless page._PatternbotData.layouts == empty %}
|
148
|
+
<li role="presentation">
|
149
|
+
<a class="gutter pad-t-1-4 pad-b-1-4 block" role="tab" aria-controls="layouts" href="#layouts">
|
150
|
+
<div class="relative">
|
151
|
+
<span>Layouts</span>
|
152
|
+
<i class="icon i-18 absolute pin-cr">
|
153
|
+
<svg><use xlink:href="#icon-active"></use></svg>
|
154
|
+
</i>
|
155
|
+
</div>
|
156
|
+
</a>
|
157
|
+
</li>
|
158
|
+
{% endunless %}
|
139
159
|
{% unless page._PatternbotData.icons == empty %}
|
140
160
|
<li role="presentation">
|
141
161
|
<a class="gutter pad-t-1-4 pad-b-1-4 block" role="tab" aria-controls="icons" href="#icons">
|
@@ -0,0 +1,11 @@
|
|
1
|
+
_layout: "patternbot_pattern_internal"
|
2
|
+
_extra_css:
|
3
|
+
- 'utilities/utilities.min.css'
|
4
|
+
|
5
|
+
patterns:
|
6
|
+
layouts:
|
7
|
+
title: "Layouts"
|
8
|
+
description: "Below is a reference of all the layouts available for pages within the website."
|
9
|
+
_popout_button: false
|
10
|
+
_resizable: false
|
11
|
+
_code: false
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="patternbot-font-primary text-left milli">
|
2
|
+
<div class="pattern-utilities-scrollable scrollable">
|
3
|
+
<table class="patternbot-utilities-table">
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<th scope="col" colspan="6">Layout</th>
|
7
|
+
<th scope="col" colspan="18">Description</th>
|
8
|
+
</tr>
|
9
|
+
</thead>
|
10
|
+
<tbody>
|
11
|
+
{% for layout in page._PatternbotData.layouts %}
|
12
|
+
<tr>
|
13
|
+
<th class="valign-middle" scope="row" colspan="6"><code class="ib valign-middle">{{layout.name | escape}}</code></th>
|
14
|
+
<td class="valign-middle" scope="col" colspan="18"><span class="ib valign-middle">{{layout.description | default: '—' | escape}}</span></td>
|
15
|
+
</tr>
|
16
|
+
{% endfor %}
|
17
|
+
</tbody>
|
18
|
+
</table>
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="patternbot-font-primary text-left milli">
|
2
|
+
<div class="pattern-utilities-scrollable scrollable">
|
3
|
+
<table class="patternbot-utilities-table">
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<th scope="col" colspan="6">Class</th>
|
7
|
+
<th scope="col" colspan="18">Description</th>
|
8
|
+
</tr>
|
9
|
+
</thead>
|
10
|
+
<tbody>
|
11
|
+
{% for util in page._PatternbotData.css.theme.utilities %}
|
12
|
+
<tr>
|
13
|
+
<th class="valign-middle" scope="row" colspan="6"><code class="ib valign-middle">{{util.class | escape}}</code></th>
|
14
|
+
<td class="valign-middle" scope="col" colspan="18"><span class="ib valign-middle">{{util.description | escape}}</span></td>
|
15
|
+
</tr>
|
16
|
+
{% endfor %}
|
17
|
+
</tbody>
|
18
|
+
</table>
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -3,9 +3,15 @@ _extra_css:
|
|
3
3
|
- 'utilities/utilities.min.css'
|
4
4
|
|
5
5
|
patterns:
|
6
|
-
|
7
|
-
title: "
|
8
|
-
description: "There are many
|
6
|
+
classes:
|
7
|
+
title: "Classes"
|
8
|
+
description: "There are many utility classes available to all patterns & pages that help to quickly style elements without contributing to extra code duplication."
|
9
|
+
_popout_button: false
|
10
|
+
_resizable: false
|
11
|
+
_code: false
|
12
|
+
variables:
|
13
|
+
title: "Variables"
|
14
|
+
description: "There are some utility variables available to all patterns & pages that help to quickly style elements without contributing to extra code duplication."
|
9
15
|
_popout_button: false
|
10
16
|
_resizable: false
|
11
17
|
_code: false
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="patternbot-font-primary text-left milli">
|
2
|
+
<div class="pattern-utilities-scrollable scrollable">
|
3
|
+
<table class="patternbot-utilities-table">
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<th scope="col" colspan="6">Name</th>
|
7
|
+
<th scope="col" colspan="18">Description</th>
|
8
|
+
</tr>
|
9
|
+
</thead>
|
10
|
+
<tbody>
|
11
|
+
{% for util in page._PatternbotData.css.theme.vars %}
|
12
|
+
<tr>
|
13
|
+
<th class="valign-middle" scope="row" colspan="6"><code class="ib valign-middle">{{util.name | escape}}</code></th>
|
14
|
+
<td class="valign-middle" scope="col" colspan="18"><span class="ib valign-middle">{{util.description | escape}}</span></td>
|
15
|
+
</tr>
|
16
|
+
{% endfor %}
|
17
|
+
</tbody>
|
18
|
+
</table>
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module JekyllPatternbot
|
2
|
+
class LayoutsFinder
|
3
|
+
|
4
|
+
def base
|
5
|
+
{
|
6
|
+
:name => false,
|
7
|
+
:description => false,
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
def info
|
12
|
+
layouts_dir = File.expand_path Config['layouts_dir']
|
13
|
+
layouts = []
|
14
|
+
return layouts unless File.directory? layouts_dir
|
15
|
+
layout_files = FileHelper.list_files_with_ext layouts_dir, '*'
|
16
|
+
for layout in layout_files
|
17
|
+
layout_data = base.clone
|
18
|
+
layout_data[:name] = File.basename layout, '.*'
|
19
|
+
unless Config['patternbot']['layouts'].nil?
|
20
|
+
Config['patternbot']['layouts'].each do |key, desc|
|
21
|
+
if key == layout_data[:name]
|
22
|
+
layout_data[:description] = desc.strip if desc
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
layouts.push layout_data
|
27
|
+
end
|
28
|
+
layouts
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
@@ -4,8 +4,9 @@ module JekyllPatternbot
|
|
4
4
|
PatternbotData = {
|
5
5
|
:css => {},
|
6
6
|
:js => {},
|
7
|
-
:logos =>
|
8
|
-
:icons =>
|
7
|
+
:logos => {},
|
8
|
+
:icons => [],
|
9
|
+
:layouts => [],
|
9
10
|
:patterns => {},
|
10
11
|
:pages => [],
|
11
12
|
}
|
@@ -50,6 +51,9 @@ module JekyllPatternbot
|
|
50
51
|
PatternbotData[:js][:main] = false
|
51
52
|
end
|
52
53
|
|
54
|
+
layouts = LayoutsFinder.new
|
55
|
+
PatternbotData[:layouts] = layouts.info
|
56
|
+
|
53
57
|
pattern_files = PatternsFinder.new
|
54
58
|
PatternbotData[:patterns] = {
|
55
59
|
:internal => pattern_files.internal_patterns_info,
|
@@ -61,6 +65,7 @@ module JekyllPatternbot
|
|
61
65
|
|
62
66
|
brand_processor = BrandProcessor.new.process
|
63
67
|
modules_processor = ModulesProcessor.new.process
|
68
|
+
utilities_processor = UtilitiesProcessor.new.process
|
64
69
|
|
65
70
|
# File.open('/Users/thomasjbradley/Desktop/patternbot.json', 'w') do |f|
|
66
71
|
# f.write(JSON.pretty_generate(PatternbotData))
|
@@ -2,7 +2,8 @@ module JekyllPatternbot
|
|
2
2
|
class PatternbotConsoleLogger
|
3
3
|
|
4
4
|
def initialize
|
5
|
-
@logger = Logger.new
|
5
|
+
@logger = Logger.new STDOUT
|
6
|
+
@logger.level = Logger::INFO
|
6
7
|
@logger.formatter = proc do |severity, datetime, progname, msg|
|
7
8
|
"PATTERNBOT — #{datetime}: #{msg}\n"
|
8
9
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module JekyllPatternbot
|
2
|
+
class CSSVarParser
|
3
|
+
|
4
|
+
def self.parse(filepath)
|
5
|
+
return false unless File.file? filepath
|
6
|
+
vars = []
|
7
|
+
comment_match = false
|
8
|
+
File.open(filepath).each do |line|
|
9
|
+
unless comment_match
|
10
|
+
comment_match = line.strip.match Regexp.new "\\/\\*\s*#{Config['patternbot']['css']['var_tag'].strip}\s+(?<description>[^\\*]*)\s*\\*\\/"
|
11
|
+
end
|
12
|
+
if comment_match
|
13
|
+
var_match = line.strip.match /(?<var>\-\-[^\:]+)\:(?<val>[^\;]+)\;/
|
14
|
+
if var_match
|
15
|
+
vars.push({
|
16
|
+
:name => var_match[:var].strip,
|
17
|
+
:value => var_match[:val].strip,
|
18
|
+
:description => comment_match[:description].strip,
|
19
|
+
})
|
20
|
+
comment_match = false
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
vars
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -32,6 +32,7 @@ module JekyllPatternbot
|
|
32
32
|
:colors => data ? CSSColorParser.parse(data) : {},
|
33
33
|
:fonts => data ? CSSFontParser.parse(Config['patternbot']['font_url'], data) : {},
|
34
34
|
:utilities => CSSUtilityParser.parse(@filepath),
|
35
|
+
:vars => CSSVarParser.parse(@filepath),
|
35
36
|
}
|
36
37
|
end
|
37
38
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module JekyllPatternbot
|
2
|
+
class UtilitiesProcessor
|
3
|
+
|
4
|
+
def remove_classes
|
5
|
+
begin PatternbotData.dig(:css, :theme, :utilities)
|
6
|
+
unless PatternbotData[:css][:theme][:utilities].length > 0
|
7
|
+
PatternbotData[:patterns][:internal]['utilities'][:config]['patterns'].delete 'classes'
|
8
|
+
end
|
9
|
+
rescue
|
10
|
+
PatternbotData[:patterns][:internal]['utilities'][:config]['patterns'].delete 'classes'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def remove_vars
|
15
|
+
begin PatternbotData.dig(:css, :theme, :vars)
|
16
|
+
unless PatternbotData[:css][:theme][:vars].length > 0
|
17
|
+
PatternbotData[:patterns][:internal]['utilities'][:config]['patterns'].delete 'variables'
|
18
|
+
end
|
19
|
+
rescue
|
20
|
+
PatternbotData[:patterns][:internal]['utilities'][:config]['patterns'].delete 'variables'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def process()
|
25
|
+
remove_classes
|
26
|
+
remove_vars
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -27,17 +27,20 @@ module JekyllPatternbot
|
|
27
27
|
require 'jekyll_patternbot/parsers/css_color'
|
28
28
|
require 'jekyll_patternbot/parsers/css_font'
|
29
29
|
require 'jekyll_patternbot/parsers/css_utility'
|
30
|
+
require 'jekyll_patternbot/parsers/css_var'
|
30
31
|
require 'jekyll_patternbot/parsers/theme'
|
31
32
|
require 'jekyll_patternbot/parsers/icons'
|
32
33
|
|
33
34
|
require 'jekyll_patternbot/finders/finder'
|
34
35
|
require 'jekyll_patternbot/finders/logos'
|
35
36
|
require 'jekyll_patternbot/finders/icons'
|
37
|
+
require 'jekyll_patternbot/finders/layouts'
|
36
38
|
require 'jekyll_patternbot/finders/patterns'
|
37
39
|
require 'jekyll_patternbot/finders/sample_pages'
|
38
40
|
|
39
41
|
require 'jekyll_patternbot/processors/brand'
|
40
42
|
require 'jekyll_patternbot/processors/modules'
|
43
|
+
require 'jekyll_patternbot/processors/utilities'
|
41
44
|
|
42
45
|
require 'jekyll_patternbot/hooks/pattern_lib'
|
43
46
|
|
@@ -1,4 +1,16 @@
|
|
1
|
+
.patternbot-utilities-table {
|
2
|
+
min-width: 50em;
|
3
|
+
}
|
4
|
+
|
1
5
|
.patternbot-utilities-table th,
|
2
6
|
.patternbot-utilities-table td {
|
3
7
|
border-color: rgba(var(--color-patternbot-interface), var(--color-patternbot-interface), var(--color-patternbot-interface), .2);
|
4
8
|
}
|
9
|
+
|
10
|
+
@media only screen and (min-width: 65em) {
|
11
|
+
|
12
|
+
.pattern-utilities-scrollable {
|
13
|
+
overflow: hidden
|
14
|
+
}
|
15
|
+
|
16
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
.patternbot-utilities-table td,.patternbot-utilities-table th{border-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.2)}
|
1
|
+
.patternbot-utilities-table{min-width:50em}.patternbot-utilities-table td,.patternbot-utilities-table th{border-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.2)}@media only screen and (min-width:65em){.pattern-utilities-scrollable{overflow:hidden}}
|
data/jekyll_patternbot.gemspec
CHANGED
@@ -19,16 +19,17 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.require_paths = ['_plugins']
|
21
21
|
|
22
|
+
spec.required_ruby_version = '~> 2'
|
23
|
+
|
22
24
|
spec.add_runtime_dependency 'jekyll', '~> 3.8'
|
23
|
-
spec.add_runtime_dependency 'colorator'
|
24
|
-
spec.add_runtime_dependency 'babosa'
|
25
|
-
spec.add_runtime_dependency 'deep_merge'
|
26
|
-
spec.add_runtime_dependency 'unicode_titlecase'
|
27
|
-
spec.add_runtime_dependency 'css_parser'
|
28
|
-
spec.add_runtime_dependency 'color_contrast_calc'
|
29
|
-
spec.add_runtime_dependency 'indifference'
|
25
|
+
spec.add_runtime_dependency 'colorator', '~> 1'
|
26
|
+
spec.add_runtime_dependency 'babosa', '~> 1'
|
27
|
+
spec.add_runtime_dependency 'deep_merge', '~> 1'
|
28
|
+
spec.add_runtime_dependency 'unicode_titlecase', '~> 0.0'
|
29
|
+
spec.add_runtime_dependency 'css_parser', '~> 1'
|
30
|
+
spec.add_runtime_dependency 'color_contrast_calc', '~> 0.5'
|
31
|
+
spec.add_runtime_dependency 'indifference', '~> 0.0'
|
30
32
|
|
31
33
|
spec.add_development_dependency 'bundler', '~> 1.17'
|
32
34
|
spec.add_development_dependency 'rake', '~> 10.0'
|
33
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
34
35
|
end
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_patternbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas J Bradley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -28,100 +28,100 @@ dependencies:
|
|
28
28
|
name: colorator
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: babosa
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: deep_merge
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: unicode_titlecase
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '0.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '0.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: css_parser
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: color_contrast_calc
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
103
|
+
version: '0.5'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
110
|
+
version: '0.5'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: indifference
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
117
|
+
version: '0.0'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
124
|
+
version: '0.0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: bundler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,20 +150,6 @@ dependencies:
|
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '10.0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rspec
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '3.0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '3.0'
|
167
153
|
description: A Jekyll plugin for developing pattern libraries & style guides that
|
168
154
|
can be used to generate a Jekyll website.
|
169
155
|
email:
|
@@ -199,6 +185,8 @@ files:
|
|
199
185
|
- _patterns/grid/grid-sizes.html
|
200
186
|
- _patterns/icons/config.yml
|
201
187
|
- _patterns/icons/icons.html
|
188
|
+
- _patterns/layouts/config.yml
|
189
|
+
- _patterns/layouts/layouts.html
|
202
190
|
- _patterns/modules/config.yml
|
203
191
|
- _patterns/modules/embed.html
|
204
192
|
- _patterns/modules/list-groups.html
|
@@ -214,8 +202,9 @@ files:
|
|
214
202
|
- _patterns/typography/size-adjustments.html
|
215
203
|
- _patterns/typography/typesetting.html
|
216
204
|
- _patterns/typography/vertical-spacing.html
|
205
|
+
- _patterns/utilities/classes.html
|
217
206
|
- _patterns/utilities/config.yml
|
218
|
-
- _patterns/utilities/
|
207
|
+
- _patterns/utilities/variables.html
|
219
208
|
- _plugins/jekyll_patternbot.rb
|
220
209
|
- _plugins/jekyll_patternbot/config.rb
|
221
210
|
- _plugins/jekyll_patternbot/filters/color.rb
|
@@ -224,6 +213,7 @@ files:
|
|
224
213
|
- _plugins/jekyll_patternbot/filters/text.rb
|
225
214
|
- _plugins/jekyll_patternbot/finders/finder.rb
|
226
215
|
- _plugins/jekyll_patternbot/finders/icons.rb
|
216
|
+
- _plugins/jekyll_patternbot/finders/layouts.rb
|
227
217
|
- _plugins/jekyll_patternbot/finders/logos.rb
|
228
218
|
- _plugins/jekyll_patternbot/finders/patterns.rb
|
229
219
|
- _plugins/jekyll_patternbot/finders/sample_pages.rb
|
@@ -239,6 +229,7 @@ files:
|
|
239
229
|
- _plugins/jekyll_patternbot/parsers/css_color.rb
|
240
230
|
- _plugins/jekyll_patternbot/parsers/css_font.rb
|
241
231
|
- _plugins/jekyll_patternbot/parsers/css_utility.rb
|
232
|
+
- _plugins/jekyll_patternbot/parsers/css_var.rb
|
242
233
|
- _plugins/jekyll_patternbot/parsers/gridifier.rb
|
243
234
|
- _plugins/jekyll_patternbot/parsers/icons.rb
|
244
235
|
- _plugins/jekyll_patternbot/parsers/modulifier.rb
|
@@ -247,6 +238,7 @@ files:
|
|
247
238
|
- _plugins/jekyll_patternbot/parsers/web_dev_tool.rb
|
248
239
|
- _plugins/jekyll_patternbot/processors/brand.rb
|
249
240
|
- _plugins/jekyll_patternbot/processors/modules.rb
|
241
|
+
- _plugins/jekyll_patternbot/processors/utilities.rb
|
250
242
|
- _plugins/jekyll_patternbot/tags/pattern.rb
|
251
243
|
- _plugins/jekyll_patternbot/tags/pattern_css.rb
|
252
244
|
- _plugins/jekyll_patternbot/tags/pattern_js.rb
|
@@ -300,9 +292,9 @@ require_paths:
|
|
300
292
|
- _plugins
|
301
293
|
required_ruby_version: !ruby/object:Gem::Requirement
|
302
294
|
requirements:
|
303
|
-
- - "
|
295
|
+
- - "~>"
|
304
296
|
- !ruby/object:Gem::Version
|
305
|
-
version: '
|
297
|
+
version: '2'
|
306
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
307
299
|
requirements:
|
308
300
|
- - ">="
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<div class="patternbot-font-primary text-left milli">
|
2
|
-
<table class="patternbot-utilities-table">
|
3
|
-
<thead>
|
4
|
-
<tr>
|
5
|
-
<th scope="col" colspan="6">Class</th>
|
6
|
-
<th scope="col" colspan="18">Description</th>
|
7
|
-
</tr>
|
8
|
-
</thead>
|
9
|
-
<tbody>
|
10
|
-
{% for util in page._PatternbotData.css.theme.utilities %}
|
11
|
-
<tr>
|
12
|
-
<th class="valign-middle" scope="row" colspan="6"><code class="ib valign-middle">{{util.class}}</code></th>
|
13
|
-
<td class="valign-middle" scope="col" colspan="18"><span class="ib valign-middle">{{util.description | escape}}</span></td>
|
14
|
-
</tr>
|
15
|
-
{% endfor %}
|
16
|
-
</tbody>
|
17
|
-
</table>
|
18
|
-
</div>
|