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
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to NPM

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm test
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
src/
test/
.github/
docs/
.gitignore
.npmignore
jest.config.js
package-lock.json
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Docsify Interactive Checkboxes Plugin

[![GitHub Pages](https://github.com/andreferra/docsify-plugin-interactive-checkboxes/actions/workflows/deploy.yml/badge.svg)](https://github.com/andreferra/docsify-plugin-interactive-checkboxes/actions/workflows/deploy.yml)
[![npm version](https://badge.fury.io/js/docsify-interactive-checkboxes.svg)](https://badge.fury.io/js/docsify-interactive-checkboxes)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A lightweight Docsify plugin that transforms standard markdown checkboxes into interactive, persistent task lists.

Expand Down
4 changes: 2 additions & 2 deletions docs/plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "docsify-interactive-checkboxes",
"version": "1.0.0",
"version": "2.0.1",
"description": "A lightweight Docsify plugin that transforms standard markdown checkboxes into interactive, persistent task lists",
"main": "src/plugin.js",
"unpkg": "dist/plugin.min.js",
"jsdelivr": "dist/plugin.min.js",
"files": [
"src",
"dist"
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "terser src/plugin.js -o dist/plugin.min.js -c -m",
Expand All @@ -21,15 +23,16 @@
},
"keywords": [
"docsify",
"plugin",
"docsify-plugin",
"checkbox",
"interactive",
"todo",
"task-list",
"markdown",
"persistent"
"persistent",
"localstorage"
],
"author": "Andrea Ferrario",
"author": "Andrea Ferrario <andreaferrario02@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/andreferra/docsify-plugin-interactive-checkboxes/issues"
Expand All @@ -39,5 +42,8 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"terser": "^5.31.0"
},
"publishConfig": {
"access": "public"
}
}
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @author Andrea Ferrario
* @license MIT
* @version 2.0.0
* @version 2.0.1
*/

(function () {
Expand Down