Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit b2c0ca6

Browse files
author
Sujaykumar Hublikar
committed
Initial Commit
0 parents  commit b2c0ca6

File tree

14 files changed

+4786
-0
lines changed

14 files changed

+4786
-0
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Supported funding model platforms
2+
github: [sujaykumarh]
3+
# patreon: sujaykumarh
4+
open_collective:
5+
ko_fi: sujaykumarh
6+
tidelift:
7+
community_bridge:
8+
liberapay:
9+
issuehunt:
10+
otechie:
11+
# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12+
custom: ['https://buymeacoffee.com/sujaykumarh']

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Dependabot Configuration
2+
# https://docs.github.com/code-security/supply-chain-security/configuration-options-for-dependency-updates
3+
#
4+
5+
version: 2
6+
7+
updates:
8+
9+
# Maintain dependencies for npm
10+
- package-ecosystem: "npm"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
# ignore:
15+
# - dependency-name: "packagesToIgnore"

.github/workflows/publish.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Build and Publish resources
2+
# .github/workflows/publish.yml
3+
name: "Build & Publish package"
4+
5+
on:
6+
release:
7+
types: [created]
8+
9+
jobs:
10+
11+
# Generate dist
12+
dist:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
17+
# Pull Source Code
18+
-
19+
name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Set env
23+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
24+
25+
# Use nodejs
26+
- uses: actions/setup-node@v1
27+
with:
28+
node-version: '16.x'
29+
30+
# Install npm packages
31+
- run: npm install
32+
33+
# Setup env
34+
- run: echo ${{ env.RELEASE_VERSION }} >> Release.txt
35+
- run: sed -i -e 's/REL_VER_NUMBER/${{ env.RELEASE_VERSION }}/g' src/plugin.js
36+
- run: sed -i -e 's/REL_VER_NUMBER/${{ env.RELEASE_VERSION }}/g' src/plugin.css
37+
38+
# dist setup
39+
- run: rm -rf dist/.git* # delete .git* files in dist
40+
- run: echo ARCHIVE="docsify-plugin-footer-${{ env.RELEASE_VERSION }}.zip" >> $GITHUB_ENV
41+
- run: mv LICENSE LICENSE.txt
42+
43+
# Build for dist
44+
- run: npm run minify
45+
46+
# Publish to npm
47+
- name: "🚀 Publish to npm"
48+
uses: JS-DevTools/npm-publish@v1
49+
with:
50+
token: ${{ secrets.NPM_TOKEN }}
51+
access: "public"
52+
check-version: true
53+
54+
# Publish to github npm
55+
- name: "🚀 Publish to github npm"
56+
uses: JS-DevTools/npm-publish@v1
57+
with:
58+
token: ${{ secrets.GITHUB_TOKEN }}
59+
access: "public"
60+
registry: "https://npm.pkg.github.com"
61+
check-version: true
62+
63+
# package for release
64+
- name: "📦 zipping files"
65+
run: |
66+
zip -r ${{ env.ARCHIVE }} ./src ./dist LICENSE* package* *.config.js README.md
67+
68+
unzip -l ${{ env.ARCHIVE }}
69+
70+
- run: sha256sum ${{ env.ARCHIVE }} >> ${{ env.ARCHIVE }}.sha256
71+
- run: md5sum ${{ env.ARCHIVE }} >> ${{ env.ARCHIVE }}.md5
72+
73+
# Publish release
74+
- name: 🚀 Publish to Github Release
75+
uses: softprops/action-gh-release@v1
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
with:
79+
prerelease: false
80+
draft: false
81+
name: ${{ env.RELEASE_VERSION }}
82+
tag_name: ${{ env.RELEASE_VERSION }}
83+
files: |
84+
${{ env.ARCHIVE }}
85+
${{ env.ARCHIVE }}.sha256
86+
${{ env.ARCHIVE }}.md5

.gitignore

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
## Download this template at https://gist.github.com/Sujaykumarh/9969846612a7504c4aadb677276d3a53
2+
##
3+
## Combinined GitHub's https://github.com/github/gitignore
4+
##
5+
## Windows + Linux + OSX
6+
7+
8+
## Linux gitignore https://raw.githubusercontent.com/github/gitignore/master/Global/Linux.gitignore
9+
*~
10+
11+
# temporary files which can be created if a process still has a handle open of a deleted file
12+
.fuse_hidden*
13+
14+
# KDE directory preferences
15+
.directory
16+
17+
# Linux trash folder which might appear on any partition or disk
18+
.Trash-*
19+
20+
# .nfs files are created when an open file is removed but is still being accessed
21+
.nfs*
22+
23+
24+
25+
## Windows gitignore https://raw.githubusercontent.com/github/gitignore/master/Global/Windows.gitignore
26+
27+
# Windows thumbnail cache files
28+
Thumbs.db
29+
Thumbs.db:encryptable
30+
ehthumbs.db
31+
ehthumbs_vista.db
32+
33+
# Dump file
34+
*.stackdump
35+
36+
# Folder config file
37+
[Dd]esktop.ini
38+
39+
# Recycle Bin used on file shares
40+
$RECYCLE.BIN/
41+
42+
# Windows Installer files
43+
*.cab
44+
*.msi
45+
*.msix
46+
*.msm
47+
*.msp
48+
49+
# Windows shortcuts
50+
*.lnk
51+
52+
53+
54+
## OsX gitignore https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore
55+
56+
# General
57+
.DS_Store
58+
.AppleDouble
59+
.LSOverride
60+
61+
# Icon must end with two \r
62+
Icon
63+
64+
65+
# Thumbnails
66+
._*
67+
68+
# Files that might appear in the root of a volume
69+
.DocumentRevisions-V100
70+
.fseventsd
71+
.Spotlight-V100
72+
.TemporaryItems
73+
.Trashes
74+
.VolumeIcon.icns
75+
.com.apple.timemachine.donotpresent
76+
77+
# Directories potentially created on remote AFP share
78+
.AppleDB
79+
.AppleDesktop
80+
Network Trash Folder
81+
Temporary Items
82+
.apdisk
83+
84+
85+
## Custom config
86+
!.gitkeep
87+
.env
88+
89+
## npm
90+
node_modules
91+
npm-debug.log

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ignore these
2+
.git
3+
.github
4+
demo
5+
docs
6+
.DS_Store

0 commit comments

Comments
 (0)