Skip to content

Commit 2fd9aa8

Browse files
authored
Merge pull request #1 from andreferra/andrea/v2
Plug-in v2
2 parents 58c12a3 + ed0fb64 commit 2fd9aa8

File tree

13 files changed

+4840
-639
lines changed

13 files changed

+4840
-639
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test-and-build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run Tests
26+
run: npm test
27+
28+
- name: Run Build
29+
run: npm run build

.github/workflows/deploy.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,33 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v4
26-
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '20'
31+
cache: 'npm'
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Run Tests
37+
run: npm test
38+
39+
- name: Build Plugin
40+
run: npm run build
41+
42+
- name: Update Docs Asset
43+
run: cp dist/plugin.min.js docs/plugin.min.js
44+
2745
- name: Setup Pages
2846
uses: actions/configure-pages@v4
29-
47+
3048
- name: Upload artifact
3149
uses: actions/upload-pages-artifact@v3
3250
with:
3351
path: './docs'
34-
52+
3553
- name: Deploy to GitHub Pages
3654
id: deployment
3755
uses: actions/deploy-pages@v4

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ A lightweight Docsify plugin that transforms standard markdown checkboxes into i
77
## ✨ Features
88

99
- 🖱️ **Interactive Checkboxes** - Click to toggle completion
10-
- 💾 **Persistent State** - Saved in localStorage
10+
- 💾 **Persistent State** - Saved in localStorage with **stable IDs** (v2)
1111
- 📄 **Per-Page Storage** - Each page has its own states
1212
- 🎨 **Visual Feedback** - Strikethrough + fade effect
13+
- 📤 **Import/Export** - Backup your progress easily
1314
-**Zero Dependencies** - Pure JavaScript
1415
- 🚀 **Easy Integration** - Drop-in solution
1516

demo/demo.md

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)