hexo-design-cards 0.1.0 → 0.1.3
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.
- package/.github/workflows/release.yml +48 -0
- package/CHANGELOG.md +5 -0
- package/README.md +6 -17
- package/lib/css.js +1 -1
- package/package.json +1 -1
- package/screenshots/03-compare.png +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ['v*']
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
node-version: [18, 20, 22]
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: actions/setup-node@v4
|
|
20
|
+
with:
|
|
21
|
+
node-version: ${{ matrix.node-version }}
|
|
22
|
+
- run: npm install
|
|
23
|
+
- run: npm test
|
|
24
|
+
|
|
25
|
+
release:
|
|
26
|
+
needs: test
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- name: Create GitHub Release
|
|
32
|
+
uses: softprops/action-gh-release@v2
|
|
33
|
+
with:
|
|
34
|
+
generate_release_notes: true
|
|
35
|
+
|
|
36
|
+
publish:
|
|
37
|
+
needs: test
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-node@v4
|
|
42
|
+
with:
|
|
43
|
+
node-version: 22
|
|
44
|
+
registry-url: https://registry.npmjs.org
|
|
45
|
+
- run: npm install
|
|
46
|
+
- run: npm publish --provenance --access public
|
|
47
|
+
env:
|
|
48
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# hexo-design-cards
|
|
2
2
|
|
|
3
|
-
[](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml) [](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml) [](https://www.npmjs.com/package/hexo-design-cards) [](https://www.npmjs.com/package/hexo-design-cards) [](https://opensource.org/licenses/MIT)
|
|
4
4
|
|
|
5
5
|
Beautiful design card tags for [Hexo](https://hexo.io) — replace verbose inline HTML with clean tag syntax.
|
|
6
6
|
|
|
@@ -8,25 +8,13 @@ Beautiful design card tags for [Hexo](https://hexo.io) — replace verbose inlin
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
### From GitHub Packages
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
# Add to .npmrc in your Hexo project
|
|
15
|
-
echo "@leafbird:registry=https://npm.pkg.github.com" >> .npmrc
|
|
16
|
-
echo "//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN" >> .npmrc
|
|
17
|
-
|
|
18
|
-
npm install @leafbird/hexo-design-cards
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### From npm (coming soon)
|
|
22
|
-
|
|
23
11
|
```bash
|
|
24
12
|
npm install hexo-design-cards
|
|
25
13
|
```
|
|
26
14
|
|
|
27
15
|
## Quick Start
|
|
28
16
|
|
|
29
|
-
After installing, use tag syntax in your Hexo markdown files. No additional configuration needed — the plugin auto-injects CSS and uses the **
|
|
17
|
+
After installing, use tag syntax in your Hexo markdown files. No additional configuration needed — the plugin auto-injects CSS and uses the **Olive Garden** colorway by default.
|
|
30
18
|
|
|
31
19
|
## Tags
|
|
32
20
|
|
|
@@ -152,6 +140,8 @@ Simple horizontal flow diagram with arrow connectors.
|
|
|
152
140
|
{% flow "Step A|description" "*Step B|description" "Step C|description" %}
|
|
153
141
|
```
|
|
154
142
|
|
|
143
|
+

|
|
144
|
+
|
|
155
145
|
- `*` prefix: highlighted step (bold border)
|
|
156
146
|
- `|` inside quotes: separates title and description
|
|
157
147
|
- Trailing `|` after all steps: caption text
|
|
@@ -160,7 +150,6 @@ Simple horizontal flow diagram with arrow connectors.
|
|
|
160
150
|
{% flow "Request" "*Process" "Response" | Data flow overview %}
|
|
161
151
|
```
|
|
162
152
|
|
|
163
|
-

|
|
164
153
|

|
|
165
154
|
|
|
166
155
|
## Font Size Parameter
|
|
@@ -182,8 +171,8 @@ Five built-in color palettes. Each has 5 colors (C1–C5) from darkest to lighte
|
|
|
182
171
|
|
|
183
172
|
| Colorway | Vibe |
|
|
184
173
|
|----------|------|
|
|
185
|
-
| `
|
|
186
|
-
| `
|
|
174
|
+
| `olive-garden` (default) | Warm olive-gold |
|
|
175
|
+
| `deep-sea` | Calm blue-grey |
|
|
187
176
|
| `fiery-ocean` | Bold red-blue contrast |
|
|
188
177
|
| `rustic-earth` | Natural earth tones |
|
|
189
178
|
| `sunny-beach` | Vivid orange-teal |
|
package/lib/css.js
CHANGED
|
@@ -26,7 +26,7 @@ function getCSS() {
|
|
|
26
26
|
|
|
27
27
|
.dc-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}
|
|
28
28
|
.dc-compare-option{padding:20px;border-radius:12px;border-width:3px;border-style:solid}
|
|
29
|
-
.dc-compare-option.dc-recommended{border-width:
|
|
29
|
+
.dc-compare-option.dc-recommended{border-width:4px}
|
|
30
30
|
.dc-compare-option h4{margin:0 0 10px;text-align:center}
|
|
31
31
|
.dc-compare-option .dc-emoji{text-align:center;font-size:40px}
|
|
32
32
|
.dc-compare-body{text-align:center}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hexo-design-cards",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Beautiful design card tags for Hexo — flow diagrams, header cards, accent cards, comparison cards, quotes, alerts, mini cards, and section banners with customizable colorways.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
Binary file
|