Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [ "**" ]
pull_request:
branches: [ "main" ]

jobs:
test-and-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run Tests
run: npm test

- name: Run Build
run: npm run build
24 changes: 21 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,33 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4


- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run Tests
run: npm test

- name: Build Plugin
run: npm run build

- name: Update Docs Asset
run: cp dist/plugin.min.js docs/plugin.min.js

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ A lightweight Docsify plugin that transforms standard markdown checkboxes into i
## ✨ Features

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

Expand Down
110 changes: 0 additions & 110 deletions demo/demo.md

This file was deleted.

Loading