jekyll-webawesome 0.13.0 → 0.15.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 +4 -4
- data/CHANGELOG.md +30 -4
- data/README.md +173 -40
- data/jekyll-webawesome.gemspec +1 -1
- data/lib/jekyll/webawesome/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eed7bec14cb14b78a96929ed9674a7863027188e5ddd9135ebad4754098f99ce
|
|
4
|
+
data.tar.gz: 5e1b26bd64f32c5bd956745dd3c557acf14fdf79ede90dfced47e7166c423241
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f78a369900c6b38547a2431dab95ee5c2eb0a342ab7390f5577d282aa38e9acd1f96102f71c2650785eede96a3dfde10f99b82e0881471c17c4306137d8db81
|
|
7
|
+
data.tar.gz: 0d9dd06c86ff39b0c37706e2e4d392683cc3d0b0095ceab5b373199c2c0b9b43e0c44e2ea9dec9a1ed53b995a35d0e4e1f9d1601ceeaf066d41a3dbbd7c5d136
|
data/CHANGELOG.md
CHANGED
|
@@ -4,14 +4,40 @@ 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.
|
|
7
|
+
## [0.15.0] - 2026-03-12
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
-
- **
|
|
12
|
-
-
|
|
13
|
-
-
|
|
11
|
+
- **Inline popover syntax** via markawesome 0.9.0: `&&&trigger text >>> popover content&&&` for use within sentences
|
|
12
|
+
- Always renders as link-styled trigger (underlined text)
|
|
13
|
+
- Supports all parameters: placement, `without-arrow`, `distance:N`
|
|
14
|
+
- Plain text content (HTML-escaped, no markdown processing)
|
|
15
|
+
- Multiple inline popovers supported on the same line
|
|
16
|
+
- Inline popover examples added to example site
|
|
17
|
+
- Updated README with inline popover documentation
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Updated `markawesome` dependency to `~> 0.9`
|
|
22
|
+
|
|
23
|
+
## [0.14.0] - 2026-03-12
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
14
27
|
- Updated `markawesome` dependency to `~> 0.7`
|
|
28
|
+
- Popover rich content examples added to example site
|
|
29
|
+
|
|
30
|
+
## [0.13.0] - 2026-03-12
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **Popover component** (`&&&` or `:::wa-popover`) via markawesome 0.7.0:
|
|
35
|
+
- Floating popover content attached to a trigger element
|
|
36
|
+
- Placement options: `top` (default), `bottom`, `left`, `right`
|
|
37
|
+
- `without-arrow` flag, `distance:N` parameter, `link` trigger style
|
|
38
|
+
- Trigger text and popover content separated by `>>>`
|
|
39
|
+
- Example site updated with popover demonstrations (placements, link style, combined parameters)
|
|
40
|
+
- Example site README updated to reference Web Awesome Kit (replaces outdated beta CDN reference)
|
|
15
41
|
|
|
16
42
|
## [0.12.0] - 2026-02-14
|
|
17
43
|
|
data/README.md
CHANGED
|
@@ -23,7 +23,8 @@ This plugin focuses on the most commonly used Web Awesome components for Jekyll
|
|
|
23
23
|
| **Copy Button** | `<<<placement? disabled? duration? labels?` | `:::wa-copy-button attributes?` | `<wa-copy-button value="content" tooltip-placement="right" disabled>` |
|
|
24
24
|
| **Details** | `^^^appearance? icon-placement?` | `:::wa-details appearance? icon-placement?` | `<wa-details appearance="..." icon-placement="...">content</wa-details>` |
|
|
25
25
|
| **Dialog** | `???params?` | `:::wa-dialog params?` | `<wa-dialog>` with trigger button and content |
|
|
26
|
-
| **Icon** | `$$$icon-name`
|
|
26
|
+
| **Icon** | `$$$icon-name` | `:::wa-icon name` | `<wa-icon name="icon-name" variant="solid"></wa-icon>` |
|
|
27
|
+
| **Popover** | `&&&placement? link? without-arrow? distance:N?` | `:::wa-popover params?` | `<wa-popover>` with trigger and floating content |
|
|
27
28
|
| **Tab Group** | `++++++` | `:::wa-tabs` | `<wa-tab-group><wa-tab>content</wa-tab></wa-tab-group>` |
|
|
28
29
|
| **Tag** | `@@@brand` | `:::wa-tag brand` | `<wa-tag variant="brand">content</wa-tag>` |
|
|
29
30
|
|
|
@@ -669,45 +670,6 @@ Status: @@@ warning Beta @@@ - testing in progress
|
|
|
669
670
|
Combine inline @@@ pill small success Ready @@@ with attributes
|
|
670
671
|
```
|
|
671
672
|
|
|
672
|
-
### Icons
|
|
673
|
-
|
|
674
|
-
Insert icons inline using the `$$$` syntax:
|
|
675
|
-
|
|
676
|
-
```markdown
|
|
677
|
-
Click $$$settings to open settings.
|
|
678
|
-
|
|
679
|
-
A larger icon: $$$home:2x
|
|
680
|
-
|
|
681
|
-
Custom SVG: $$$/assets/icons/logo.svg
|
|
682
|
-
```
|
|
683
|
-
|
|
684
|
-
#### Icon Sizes
|
|
685
|
-
|
|
686
|
-
Append a size token after `:` to control the icon size:
|
|
687
|
-
|
|
688
|
-
```markdown
|
|
689
|
-
$$$star:xs Extra small (0.75em)
|
|
690
|
-
$$$star:sm Small (0.875em)
|
|
691
|
-
$$$star Default (inherits font size)
|
|
692
|
-
$$$star:lg Large (1.25em)
|
|
693
|
-
$$$star:xl Extra large (1.5em)
|
|
694
|
-
$$$star:2x 2x (2em)
|
|
695
|
-
$$$star:3x 3x (3em)
|
|
696
|
-
$$$star:4x 4x (4em)
|
|
697
|
-
```
|
|
698
|
-
|
|
699
|
-
#### Custom SVG Icons
|
|
700
|
-
|
|
701
|
-
Use a file path starting with `/` or `./` to render a custom SVG instead of a named icon:
|
|
702
|
-
|
|
703
|
-
```markdown
|
|
704
|
-
$$$/assets/icons/shoe.svg
|
|
705
|
-
$$$/assets/icons/shoe.svg:2x
|
|
706
|
-
$$$./icons/logo.svg:xl
|
|
707
|
-
```
|
|
708
|
-
|
|
709
|
-
This outputs `<wa-icon src="...">` instead of `<wa-icon name="...">`.
|
|
710
|
-
|
|
711
673
|
### Copy Buttons
|
|
712
674
|
|
|
713
675
|
Create copy-to-clipboard buttons using the `<<<` syntax:
|
|
@@ -1091,6 +1053,168 @@ This dialog has light dismiss enabled and is 700px wide.
|
|
|
1091
1053
|
|
|
1092
1054
|
> **Note**: The dialog uses Web Awesome's declarative `data-dialog` API, so no custom JavaScript is needed. Each dialog gets a unique ID automatically generated from its content. The header with X close button is always shown for accessibility, and a "Close" button is automatically added to the footer.
|
|
1093
1055
|
|
|
1056
|
+
### Popovers
|
|
1057
|
+
|
|
1058
|
+
Create floating popover content attached to a trigger element using the `&&&` syntax:
|
|
1059
|
+
|
|
1060
|
+
```markdown
|
|
1061
|
+
&&&
|
|
1062
|
+
Hover for info
|
|
1063
|
+
>>>
|
|
1064
|
+
This is the popover content with **markdown** support.
|
|
1065
|
+
&&&
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
This creates a trigger button and a floating popover:
|
|
1069
|
+
|
|
1070
|
+
```html
|
|
1071
|
+
<wa-button id='popover-abc123' variant='text'>Hover for info</wa-button>
|
|
1072
|
+
<wa-popover for='popover-abc123' placement='top'>
|
|
1073
|
+
<p>This is the popover content with <strong>markdown</strong> support.</p>
|
|
1074
|
+
</wa-popover>
|
|
1075
|
+
```
|
|
1076
|
+
|
|
1077
|
+
#### Popover Placement
|
|
1078
|
+
|
|
1079
|
+
Control where the popover appears relative to the trigger:
|
|
1080
|
+
|
|
1081
|
+
```markdown
|
|
1082
|
+
&&&top
|
|
1083
|
+
Hover (top)
|
|
1084
|
+
>>>
|
|
1085
|
+
Popover content above the trigger.
|
|
1086
|
+
&&&
|
|
1087
|
+
|
|
1088
|
+
&&&bottom
|
|
1089
|
+
Hover (bottom)
|
|
1090
|
+
>>>
|
|
1091
|
+
Popover content below the trigger.
|
|
1092
|
+
&&&
|
|
1093
|
+
|
|
1094
|
+
&&&left
|
|
1095
|
+
Hover (left)
|
|
1096
|
+
>>>
|
|
1097
|
+
Popover content to the left.
|
|
1098
|
+
&&&
|
|
1099
|
+
|
|
1100
|
+
&&&right
|
|
1101
|
+
Hover (right)
|
|
1102
|
+
>>>
|
|
1103
|
+
Popover content to the right.
|
|
1104
|
+
&&&
|
|
1105
|
+
```
|
|
1106
|
+
|
|
1107
|
+
**Supported placements:** `top` (default), `bottom`, `left`, `right`
|
|
1108
|
+
|
|
1109
|
+
#### Link-style Trigger
|
|
1110
|
+
|
|
1111
|
+
Use the `link` parameter to render the trigger as underlined text instead of a button:
|
|
1112
|
+
|
|
1113
|
+
```markdown
|
|
1114
|
+
&&&link
|
|
1115
|
+
Learn more
|
|
1116
|
+
>>>
|
|
1117
|
+
Detailed explanation that appears on hover.
|
|
1118
|
+
&&&
|
|
1119
|
+
|
|
1120
|
+
&&&bottom link
|
|
1121
|
+
See details
|
|
1122
|
+
>>>
|
|
1123
|
+
This popover appears below the link-style trigger.
|
|
1124
|
+
&&&
|
|
1125
|
+
```
|
|
1126
|
+
|
|
1127
|
+
Link triggers render as a native `<button>` styled to look like inline text with an underline, making them blend naturally into surrounding prose.
|
|
1128
|
+
|
|
1129
|
+
#### Without Arrow
|
|
1130
|
+
|
|
1131
|
+
Hide the popover's arrow indicator:
|
|
1132
|
+
|
|
1133
|
+
```markdown
|
|
1134
|
+
&&&without-arrow
|
|
1135
|
+
Hover me
|
|
1136
|
+
>>>
|
|
1137
|
+
This popover has no arrow pointing to the trigger.
|
|
1138
|
+
&&&
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
#### Custom Distance
|
|
1142
|
+
|
|
1143
|
+
Set the distance between the trigger and the popover (in pixels):
|
|
1144
|
+
|
|
1145
|
+
```markdown
|
|
1146
|
+
&&&distance:20
|
|
1147
|
+
Hover me
|
|
1148
|
+
>>>
|
|
1149
|
+
This popover is 20px away from the trigger.
|
|
1150
|
+
&&&
|
|
1151
|
+
```
|
|
1152
|
+
|
|
1153
|
+
#### Combining Parameters
|
|
1154
|
+
|
|
1155
|
+
All parameters can be combined in any order:
|
|
1156
|
+
|
|
1157
|
+
```markdown
|
|
1158
|
+
&&&bottom link without-arrow distance:10
|
|
1159
|
+
Read more
|
|
1160
|
+
>>>
|
|
1161
|
+
A link-style trigger with popover below, no arrow, and custom distance.
|
|
1162
|
+
&&&
|
|
1163
|
+
```
|
|
1164
|
+
|
|
1165
|
+
#### Rich Popover Content
|
|
1166
|
+
|
|
1167
|
+
The popover content supports full markdown — multiple paragraphs, lists, links, bold, italic, code, etc.:
|
|
1168
|
+
|
|
1169
|
+
```markdown
|
|
1170
|
+
&&&top
|
|
1171
|
+
Show details
|
|
1172
|
+
>>>
|
|
1173
|
+
**Feature highlights:**
|
|
1174
|
+
|
|
1175
|
+
- Supports *rich* markdown content
|
|
1176
|
+
- Including [links](https://example.com)
|
|
1177
|
+
- And `inline code`
|
|
1178
|
+
|
|
1179
|
+
Multiple paragraphs work too.
|
|
1180
|
+
&&&
|
|
1181
|
+
```
|
|
1182
|
+
|
|
1183
|
+
#### Inline Syntax
|
|
1184
|
+
|
|
1185
|
+
Popovers can be used inline within a sentence using `&&&trigger text >>> popover content&&&` on a single line. Inline popovers always render as link-styled triggers:
|
|
1186
|
+
|
|
1187
|
+
```markdown
|
|
1188
|
+
Send invoices via &&&Peppol >>> A standardized e-invoicing network&&& to your customers.
|
|
1189
|
+
|
|
1190
|
+
Learn about &&&bottom API keys >>> API keys authenticate your requests&&& in the docs.
|
|
1191
|
+
|
|
1192
|
+
Check &&&right without-arrow distance:5 validation >>> Invoices are validated against business rules&&& before submitting.
|
|
1193
|
+
```
|
|
1194
|
+
|
|
1195
|
+
Parameters (placement, `without-arrow`, `distance:N`) come before the trigger text. Inline popover content is plain text (use block syntax for rich markdown content).
|
|
1196
|
+
|
|
1197
|
+
#### Alternative Syntax
|
|
1198
|
+
|
|
1199
|
+
You can also use the explicit `:::wa-popover` syntax:
|
|
1200
|
+
|
|
1201
|
+
```markdown
|
|
1202
|
+
:::wa-popover bottom link
|
|
1203
|
+
Click for details
|
|
1204
|
+
>>>
|
|
1205
|
+
Popover content using the alternative syntax.
|
|
1206
|
+
:::
|
|
1207
|
+
```
|
|
1208
|
+
|
|
1209
|
+
#### Popover Parameters
|
|
1210
|
+
|
|
1211
|
+
| Option | Values | Default | Description |
|
|
1212
|
+
|--------|--------|---------|-------------|
|
|
1213
|
+
| `placement` | `top`, `bottom`, `left`, `right` | `top` | Where the popover appears |
|
|
1214
|
+
| `link` | keyword | off (always on for inline) | Renders trigger as underlined text instead of button |
|
|
1215
|
+
| `without-arrow` | keyword | off | Hides the popover arrow |
|
|
1216
|
+
| `distance:N` | number (pixels) | (default) | Distance between trigger and popover |
|
|
1217
|
+
|
|
1094
1218
|
### Details/Summary (Collapsible Content)
|
|
1095
1219
|
|
|
1096
1220
|
Create collapsible content using the `^^^` syntax:
|
|
@@ -1527,6 +1651,15 @@ Cards automatically parse content into these slots:
|
|
|
1527
1651
|
- **Label Extraction**: First `#` heading becomes the dialog label, or button text is used as fallback
|
|
1528
1652
|
- **Markdown Support**: Full markdown formatting in dialog content
|
|
1529
1653
|
|
|
1654
|
+
### Popover Parameters
|
|
1655
|
+
|
|
1656
|
+
| Option | Values | Default | Description |
|
|
1657
|
+
|--------|--------|---------|-------------|
|
|
1658
|
+
| `placement` | `top`, `bottom`, `left`, `right` | `top` | Where the popover appears relative to the trigger |
|
|
1659
|
+
| `link` | keyword | off | Renders trigger as underlined text instead of a `wa-button` |
|
|
1660
|
+
| `without-arrow` | keyword | off | Hides the popover arrow indicator |
|
|
1661
|
+
| `distance:N` | number (pixels) | (default) | Custom distance between trigger and popover |
|
|
1662
|
+
|
|
1530
1663
|
### Image Dialogs (Auto-transformation)
|
|
1531
1664
|
|
|
1532
1665
|
Enable automatic image-to-dialog transformation in your `_config.yml`:
|
data/jekyll-webawesome.gemspec
CHANGED
|
@@ -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.
|
|
36
|
+
spec.add_dependency 'markawesome', '~> 0.9'
|
|
37
37
|
|
|
38
38
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
39
39
|
spec.add_development_dependency 'rake', '~> 13.0'
|
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.
|
|
4
|
+
version: 0.15.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.
|
|
38
|
+
version: '0.9'
|
|
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.
|
|
45
|
+
version: '0.9'
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: bundler
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|