jekyll-webawesome 0.20.0 → 0.21.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: 357c6fd1272603627457c36d096cd9df2eafefc0fbe79564278d246db85ee400
4
- data.tar.gz: 55058f53d7164006a4de03d8135245b957cc88b3ff6562339dccc67bac2e5690
3
+ metadata.gz: 25a526401b8eb686097d354c75428eafd60dd2ea7ba35c3293ac393573c5f4bd
4
+ data.tar.gz: f3d8d6533c249bffefcc0a88b60eb29167f7db38ef1cf8898624a954b4e01bf1
5
5
  SHA512:
6
- metadata.gz: 17840e18f7bc1c5c131a30320b05ea243a5215519aa46dff76c55ab6b9abc06959751acae7c98504d71f62a0b2dd8ac97100f9eed9aed3bc72ce76546370a10a
7
- data.tar.gz: fe51782529d4091b9675dd074c88e2ce568e98e955190a1ef47c0eea3105f8ef08eceff4d0ce22f0b75740347df3ce31d813df0f36ec45e78938ec6bdb74418e
6
+ metadata.gz: cfc7e9c8b52ef424ca2aff190c153c2a8bad32f51f4f7fdb16aedf05a5b2b2b168849c1797d314a48b11c3efa65d1dc7051a95c8a18697e343400d3e30d2b8f5
7
+ data.tar.gz: f9024f9d5645b18dabb0aa47a6abb5e3ebc22caba3636c6f93b9a33014dc25e20e7fc661d0e03dd38f890754bac4de6acc1fba184a562d2491a3b7dbbc7f7ee5
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
6
6
 
7
+ ## [0.21.0] - 2026-06-25
8
+
9
+ ### Added
10
+
11
+ - Tooltip support, via markawesome 0.15.0. Inline contextual help shown on hover or focus — ideal for glossary terms and inline definitions. The primary form is inline: `(((anchor term >>> tip text)))`. The anchor becomes a focusable, dotted-underlined `<span>` (`tabindex="0"`, class `ma-tooltip-anchor`) and the tip is emitted as a `<wa-tooltip>` wired to it via a generated `for`/`id` pair, so keyboard and assistive-technology users get the tip too. Leading `placement` (`top` default, `bottom`, `left`, `right`) and `distance:N` tokens go before the anchor; tip text is plain text (HTML-escaped) with literal `\n` rendered as `<br>`. A `:::wa-tooltip placement? distance:N? … >>> … :::` block alternative is also accepted. Declarative and zero-JavaScript; no Jekyll-side configuration needed.
12
+ - Example site gains a `## Tooltips` section exercising the basic inline form, every placement, `distance:N`, combined parameters, multiple inline tooltips in one sentence, HTML escaping, `\n` line breaks, and the `:::wa-tooltip` alternative form. Validated live in the browser against the examples kit (WA 3.9.0): each anchor's `for` resolves to its tooltip's `id`, the `<wa-tooltip>` upgrades and opens on both hover and focus, and the requested `placement` positions the bubble correctly in the live DOM.
13
+
7
14
  ## [0.20.0] - 2026-06-24
8
15
 
9
16
  ### Added
data/README.md CHANGED
@@ -27,6 +27,7 @@ This plugin focuses on the most commonly used Web Awesome components for Jekyll
27
27
  | **Popover** | `&&&placement? link? without-arrow? distance:N?` | `:::wa-popover params?` | `<wa-popover>` with trigger and floating content |
28
28
  | **Tab Group** | `++++++` | `:::wa-tabs` | `<wa-tab-group><wa-tab>content</wa-tab></wa-tab-group>` |
29
29
  | **Tag** | `@@@brand` | `:::wa-tag brand` | `<wa-tag variant="brand">content</wa-tag>` |
30
+ | **Tooltip** | `(((anchor >>> tip)))` | `:::wa-tooltip placement? distance:N?` | focusable `<span>` anchor + `<wa-tooltip for="…" placement="top">tip</wa-tooltip>` |
30
31
 
31
32
  Not all components will make sense to include here, to be included in the "prose" content of a web page. Some components are more suitable to be used in layouts or used in the page as includes, too complicated for this purpose.
32
33
 
@@ -1215,6 +1216,82 @@ Popover content using the alternative syntax.
1215
1216
  | `without-arrow` | keyword | off | Hides the popover arrow |
1216
1217
  | `distance:N` | number (pixels) | (default) | Distance between trigger and popover |
1217
1218
 
1219
+ ### Tooltips
1220
+
1221
+ Add brief contextual help on hover or focus — ideal for glossary terms and inline definitions. The primary form is inline: put the anchor term and the tip text inside triple parentheses, separated by `>>>`:
1222
+
1223
+ ```markdown
1224
+ The web is styled with (((CSS >>> Cascading Style Sheets))) and structured with (((HTML >>> HyperText Markup Language))).
1225
+ ```
1226
+
1227
+ The anchor term becomes a focusable, dotted-underlined `<span>`, with a `<wa-tooltip>` wired to it via a generated `for`/`id` pair:
1228
+
1229
+ ```html
1230
+ <span id="tooltip-ab12c3d4" tabindex="0" class="ma-tooltip-anchor" style="text-decoration: underline dotted; cursor: help;">CSS</span>
1231
+ <wa-tooltip for="tooltip-ab12c3d4" placement="top">Cascading Style Sheets</wa-tooltip>
1232
+ ```
1233
+
1234
+ The anchor is focusable (`tabindex="0"`) so keyboard and assistive-technology users get the tip too (Web Awesome tooltips fire on focus as well as hover). The `ma-tooltip-anchor` class is a styling hook for overriding the default underline/cursor. No JavaScript is required.
1235
+
1236
+ #### Tooltip Placement
1237
+
1238
+ Leading `placement`/`distance:N` tokens go before the anchor term:
1239
+
1240
+ ```markdown
1241
+ Routed over (((bottom Peppol >>> A standardized pan-European e-invoicing network))) to the recipient.
1242
+
1243
+ Authentication uses an (((left API key >>> A secret token that authorizes a request))).
1244
+
1245
+ Files are delivered over (((right SFTP >>> SSH File Transfer Protocol))) for batch processing.
1246
+ ```
1247
+
1248
+ **Supported placements:** `top` (default), `bottom`, `left`, `right`
1249
+
1250
+ #### Custom Distance
1251
+
1252
+ Set the distance between the anchor and the tooltip (in pixels):
1253
+
1254
+ ```markdown
1255
+ Hover over (((distance:12 SLA >>> Service Level Agreement))) to see the tip pushed further from the anchor.
1256
+ ```
1257
+
1258
+ #### Combining Parameters
1259
+
1260
+ Tokens can be combined in any order before the anchor term:
1261
+
1262
+ ```markdown
1263
+ Read about (((bottom distance:8 OCR >>> Optical Character Recognition))) in the pipeline.
1264
+ ```
1265
+
1266
+ #### Tip Content and Line Breaks
1267
+
1268
+ Tip text is plain text and HTML-escaped, so symbols are safe. Use `\n` for line breaks (rendered as `<br>`):
1269
+
1270
+ ```markdown
1271
+ Org numbers differ by country — (((Org number >>> NO: 9 digits\nSE: 10 digits\nDK: 8-digit CVR))).
1272
+ ```
1273
+
1274
+ Tooltips hold brief text, so there is no Markdown body (unlike popovers).
1275
+
1276
+ #### Alternative Syntax
1277
+
1278
+ For consistency with the other components, a block form is also accepted:
1279
+
1280
+ ```markdown
1281
+ :::wa-tooltip bottom
1282
+ JIT
1283
+ >>>
1284
+ Just-In-Time — produced only at the moment it is needed.
1285
+ :::
1286
+ ```
1287
+
1288
+ #### Tooltip Parameters
1289
+
1290
+ | Option | Values | Default | Description |
1291
+ |--------|--------|---------|-------------|
1292
+ | `placement` | `top`, `bottom`, `left`, `right` | `top` | Where the tooltip appears relative to the anchor |
1293
+ | `distance:N` | number (pixels) | (default) | Distance between the anchor and the tooltip |
1294
+
1218
1295
  ### Details/Summary (Collapsible Content)
1219
1296
 
1220
1297
  Create collapsible content using the `^^^` syntax:
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.require_paths = ['lib']
34
34
 
35
35
  spec.add_dependency 'jekyll', '>= 3.7', '< 5.0'
36
- spec.add_dependency 'markawesome', '~> 0.14'
36
+ spec.add_dependency 'markawesome', '~> 0.15'
37
37
 
38
38
  spec.add_development_dependency 'rake', '~> 13.0'
39
39
  spec.add_development_dependency 'rspec', '~> 3.0'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module WebAwesome
5
- VERSION = '0.20.0'
5
+ VERSION = '0.21.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-webawesome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janne Waren
@@ -35,14 +35,14 @@ dependencies:
35
35
  requirements:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
- version: '0.14'
38
+ version: '0.15'
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '0.14'
45
+ version: '0.15'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rake
48
48
  requirement: !ruby/object:Gem::Requirement