jekyll-link-decorator 1.5.2 → 1.6.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
  SHA256:
3
- metadata.gz: 85919ec3882d487b1545ce0508fde30b74c0fd59e35f2823a8da4b4659437004
4
- data.tar.gz: b558d2dbd36f937a5f03a670a519439d14f54625d948123977ed38ec67076af4
3
+ metadata.gz: 4d91801b17b914f5fd1b053dabb0ca88e6d814c80dd0a58b929272ddaf636224
4
+ data.tar.gz: 22127cd8018119d37a82855bed5f73476783f46610b763c4eb31a5095689cdac
5
5
  SHA512:
6
- metadata.gz: 5a1011beabc1ebf913123b8aff0c38c747afd70c2ee572e16aa35c0d5cebd9ae9226d92ee47fda28dd7a6ac5a6ddd77956d29906faee86b62a1bfc08977cd98e
7
- data.tar.gz: 6498a39d46641219f4939b9c3becf8b5693441c9b69ed0726d1c49cb7bfff0635df4817b13e1fe6c66befd6e5ca5bda64f500abdd681a443199bb28cbbe52408
6
+ metadata.gz: 22225853f9368b78e14d32a8c44d945acc6c526a225992603d51317892c2c5ae9f958bf6f4882352441087a00d3f442071142f38f7953f2189bb4c1fe9a0daa1
7
+ data.tar.gz: f83df55c641942409368e632ef79763a669d06d558fe02b2911a4198361d6c81f936360213ce9858c48d32ebd64f465abdca96d42e7bcadc6c6a0613c0cbf002
@@ -6,6 +6,6 @@ module Jekyll
6
6
  # Regenerated alongside the gemspec on every `make gemspec` run (locally
7
7
  # or in CI), so it always matches spec.version in the built gem. Any
8
8
  # hand edit is overwritten on the next run.
9
- VERSION = '1.5.2'
9
+ VERSION = '1.6.0'
10
10
  end
11
11
  end
@@ -31,7 +31,7 @@
31
31
  # - `default_link_classes`: Classes applied to links outside an .alert.
32
32
  # Example: `default_link_classes: "text-decoration-none"`
33
33
  # If a link already carries its own `link-{color}`, `link-underline-*`,
34
- # `link-offset-*`, `link-underline-opacity-*`, or `link-opacity-*` class,
34
+ # `link-offset-*`, `link-underline-opacity-*`, `link-opacity-*`, or `focus-ring(-{color})?` class,
35
35
  # the plugin skips the matching default token automatically — see LINK_CLASS_FAMILIES.
36
36
  # - `alert_link_classes`: Classes applied to links inside an .alert box.
37
37
  # Example: `alert_link_classes: "text-decoration-underline"`
@@ -66,8 +66,8 @@
66
66
  # ```yaml
67
67
  # with_link_decorator: true
68
68
  # with_link_decorator_data:
69
- # default_link_classes: "link link-offset-3 link-offset-3-hover link-underline-primary link-underline-opacity-0 link-underline-opacity-100-hover"
70
- # alert_link_classes: "alert-link"
69
+ # default_link_classes: "link link-offset-3 link-offset-3-hover link-underline-primary link-underline-opacity-0 link-underline-opacity-100-hover focus-ring"
70
+ # alert_link_classes: "alert-link focus-ring"
71
71
  # external_link_icon: true
72
72
  # external_link_icon_excluded_tags:
73
73
  # - img
@@ -97,8 +97,8 @@ module Jekyll
97
97
  # external-link icons for cross-domain links.
98
98
  class LinkDecorator < Jekyll::Converters::Markdown
99
99
  DEFAULT_LINK_CLASSES = 'link link-offset-3 link-offset-3-hover link-underline-primary ' \
100
- 'link-underline-opacity-0 link-underline-opacity-100-hover'
101
- DEFAULT_ALERT_LINK_CLASSES = 'alert-link'
100
+ 'link-underline-opacity-0 link-underline-opacity-100-hover focus-ring'
101
+ DEFAULT_ALERT_LINK_CLASSES = 'alert-link focus-ring'
102
102
 
103
103
  # Bootstrap 5 link-utility "families" whose defaults must not silently
104
104
  # override an author's own explicit class from the same family — see
@@ -111,9 +111,9 @@ module Jekyll
111
111
  #
112
112
  # Enumerated families (offset, both opacity families) lock to Bootstrap's
113
113
  # fixed value set, so an out-of-range value like "link-opacity-42" isn't
114
- # recognized as an override either. Color families (link-{color},
115
- # link-underline-{color}) stay generic (\S+) since Bootstrap themes can
116
- # define arbitrary custom color names.
114
+ # recognized as an override either. Color and focus-ring families
115
+ # (link-{color}, link-underline-{color}, focus-ring(-{color})?) stay
116
+ # generic (\S+) since Bootstrap themes can define arbitrary custom color names.
117
117
  LINK_CLASS_FAMILIES = [
118
118
  { # link-{color}, e.g. link-primary, link-body-emphasis (bare colored-link class;
119
119
  # excludes link-underline-*, link-offset-*, and link-opacity-* families)
@@ -131,6 +131,11 @@ module Jekyll
131
131
  { # link-opacity-{10,25,50,75,100}, each with an optional -hover variant
132
132
  # (controls link-text opacity, distinct from link-underline-opacity-*)
133
133
  pattern: /\Alink-opacity-(?:10|25|50|75|100)(-hover)?\z/
134
+ },
135
+ { # focus-ring and focus-ring-{color}, e.g. focus-ring-primary, focus-ring-success
136
+ # Bootstrap 5.3 focus-ring has no hover, offset, or opacity variants — only bare
137
+ # and color forms; color stays generic (\S+) for custom theme colors
138
+ pattern: /\Afocus-ring(-\S+)?\z/
134
139
  }
135
140
  ].freeze
136
141
  DEFAULT_EXTERNAL_LINK_ICON = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-link-decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain Reguera Delgado