-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
2,509 additions
and
10,141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build and Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- feature # 指定触发部署的分支,通常是main或master | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest # 使用最新的Ubuntu虚拟环境 | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '19' # 指定Node.js的版本,根据您的项目需求调整 | ||
|
||
- name: Install Dependencies | ||
run: npm install # 安装依赖 | ||
|
||
- name: Build | ||
run: npm run docs:build # 构建文档 | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@4.1.4 # 使用他人的 action 将文档推送至 gh-pages 分支 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.BLOB_DEPLOY_PRI }} | ||
BRANCH: gh-pages # 部署到gh-pages分支 | ||
FOLDER: docs/.vitepress/dist # 指定构建目录,根据您的构建工具可能不同,如'build'或'dist' | ||
CLEAN: true # 清理旧文件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,9 @@ typings/ | |
# next.js build output | ||
.next | ||
|
||
dist | ||
.cache | ||
|
||
.cache | ||
docs/.vitepress/dist/ | ||
docs/.vitepress/cache/ | ||
|
||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## v1.1.0 | ||
|
||
### Features | ||
|
||
- **style:** Set different color and type of dots and corners. | ||
- **logo:** More normal aspect ratio of logo but no always 1:1. | ||
- **canvas:** Faster drawing speed then before. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<template> | ||
<div> | ||
<div class="giscus"></div> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
name: 'Comment', | ||
mounted() { | ||
const script = document.createElement('script') | ||
script.setAttribute('data-repo', 'zxpsuper/qrcode-with-logos') | ||
script.setAttribute('data-repo-id', 'MDEwOlJlcG9zaXRvcnkxOTM4MjUxODg=') | ||
script.setAttribute('data-category', 'Announcements') | ||
script.setAttribute('data-category-id', 'DIC_kwDOC42JpM4CgVKz') | ||
script.setAttribute('data-mapping', 'pathname') | ||
script.setAttribute('data-strict', '0') | ||
script.setAttribute('data-reactions-enabled', '1') | ||
script.setAttribute('data-emit-metadata', '0') | ||
script.setAttribute('data-input-position', 'bottom') | ||
script.setAttribute('data-theme', 'preferred_color_scheme') | ||
script.setAttribute('data-lang', 'en') | ||
script.setAttribute('crossorigin', 'anonymous') | ||
script.src = 'https://giscus.app/client.js' | ||
document.body.appendChild(script) | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
<script> | ||
export default { | ||
name: 'Tongji', | ||
mounted() { | ||
var _hmt = _hmt || [] | ||
;(function () { | ||
var hm = document.createElement('script') | ||
hm.src = 'https://hm.baidu.com/hm.js?21afdcf6c76090b1f2ee7c584c71dd98' | ||
var s = document.getElementsByTagName('script')[0] | ||
s.parentNode.insertBefore(hm, s) | ||
})() | ||
} | ||
} | ||
</script> |
Oops, something went wrong.