jekyll-code-example-tag 0.0.7 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3f2ab79f86acddefec8aa74003093c252fc75b7
4
- data.tar.gz: 6e5d038047c3b5ae4d07bb5d3b9cbe71295f3da6
3
+ metadata.gz: f42a19e11086b9a4b159537e58c520eb27393c41
4
+ data.tar.gz: 9f9356db90717330bafc701a94d2913fc8745d5f
5
5
  SHA512:
6
- metadata.gz: b817c25f782472b674716642a2f6b9179b08208199223b14901f38165a5963a7f8e7c3e64dde6ab0d878ae2db631a753b92dcd3869390db4b7fddc5f0593abc7
7
- data.tar.gz: 1a3a21821590c632bdc392c6534b3f3796da94fc29b6d6d8469bbe805617ba152336ee169fad8178101283741e9d3580024a44565a17a959b88c143a3cd22137
6
+ metadata.gz: a17320e404494b5f44a63861e9b25dab3b3c36f964e73b0b5f378d177867aa8d9a81b4e90d195a49855a1f745d52acde50d698c91e71ae9fb1598ff704ca8271
7
+ data.tar.gz: 314575887e48797f9498a310f07f364409fe26e89b3b494d0078052f4790b00350660f7ad7a4b8e3bb2b5c63e3da7d8a32abdef4d20eb6d628ed047897a7fd9b
@@ -1,7 +1,20 @@
1
1
  CHANGELOG
2
2
  ==========
3
3
 
4
- This project does *not* adhere to Semantic Versioning
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+ [How to use a CHANGELOG](http://keepachangelog.com/)
7
+
8
+ ## 1.0.0 - 2017-01-30
9
+
10
+ ### Changed
11
+
12
+ - Started versioning based on semantic versioning.
13
+
14
+ ### Added
15
+
16
+ - CSS class applied to <li> and <ul> tags in language menus can be set via the
17
+ `code_example_list_class` in _config.yml.
5
18
 
6
19
  ## 0.0.7 - 2015-03-18
7
20
 
data/README.md CHANGED
@@ -5,7 +5,7 @@ jekyll-code-example-tag
5
5
  =======================
6
6
 
7
7
  Provides a tag that allows you to include in your posts and pages code examples
8
- for multiple langagues that are kept in seperate files. Another tag allows you
8
+ for multiple languages that are kept in separate files. Another tag allows you
9
9
  to combine all code examples that are on a page.
10
10
 
11
11
  ## Installation
@@ -46,6 +46,13 @@ a div with the class `the_buttons`.
46
46
  `code_example_buttons_class` defaults to 'buttons', and
47
47
  `code_example_button_class` defaults to 'button'.
48
48
 
49
+ Same is true for ```code_example_list_class``` which controls the class used for the ```<li>``` and ```<ul>``` tags.
50
+ The default class is 'code-tab' which can be changed by setting:
51
+ ```
52
+ code_example_list_class: my-list-class
53
+ ```
54
+ in _config.yml.
55
+
49
56
  ### code_example
50
57
 
51
58
  First, select a folder to place your code examples in. By default, the top
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jekyll-code-example-tag'
3
- s.version = '0.0.7'
3
+ s.version = '1.0.0'
4
4
  s.date = '2015-02-03'
5
5
  s.authors = ['GovDelivery']
6
6
  s.email = 'support@govdelivery.com'
@@ -35,13 +35,14 @@ module Jekyll
35
35
  site = context['site']
36
36
  buttons_class = site['code_example_buttons_class'] ? site['code_example_buttons_class'] : 'buttons'
37
37
  button_class = site['code_example_button_class'] ? site['code_example_button_class'] : 'button'
38
+ list_class = site['code_example_list_class'] ? site['code_example_list_class'] : 'code-tab'
38
39
  menu_items = ""
39
40
  examples.each_key do |lang|
40
- menu_items << "<li><a href='#' class='#{button_class}' target='#{lang}'>#{lang.capitalize}</a></li>"
41
+ menu_items << "<li class='#{list_class}'><a href='#' class='#{button_class}' target='#{lang}'>#{lang.capitalize}</a></li>"
41
42
  end
42
43
  <<EOF
43
44
  <div class="#{buttons_class} examples">
44
- <ul>
45
+ <ul class="#{list_class}">
45
46
  #{menu_items}
46
47
  </ul>
47
48
  </div>
@@ -52,7 +53,7 @@ EOF
52
53
  he = HTMLEntities.new
53
54
  <<EOF
54
55
  <div class="highlight example #{language}">
55
- <pre><code class="language #{language}" data-lang="#{language}">#{he.encode(content)}</code></pre>
56
+ <pre><code class="#{language}" data-lang="#{language}">#{he.encode(content)}</code></pre>
56
57
  </div>
57
58
  EOF
58
59
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-code-example-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GovDelivery
@@ -49,7 +49,7 @@ extra_rdoc_files: []
49
49
  files:
50
50
  - ".ruby-version"
51
51
  - ".travis.yml"
52
- - CHANGELOG
52
+ - CHANGELOG.md
53
53
  - Gemfile
54
54
  - Gemfile.lock
55
55
  - LICENSE.md