Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同步语雀文档 #8

Closed
wants to merge 132 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
199f33e
tweak, stage update
northword Jul 20, 2023
c0c1d1b
Create LICENSE
northword Jul 20, 2023
848e7bb
tweak
northword Jul 20, 2023
b7aef9e
Creat CODE_OF_CONDUCT
northword Jul 20, 2023
baa9044
Merge branch 'main' of https://github.com/zotero-chinese/wiki
northword Jul 20, 2023
6e8b62b
chore: update readme [skip ci]
northword Jul 20, 2023
eef447b
[ImgBot] Optimize images
ImgBotApp Jul 21, 2023
e161a5e
Merge pull request #1 from zotero-chinese/imgbot
northword Jul 21, 2023
df01ef4
添加贡献指南
northword Jul 21, 2023
afaa1a1
重命名图片名
northword Jul 21, 2023
2f043f3
修改首页
northword Jul 21, 2023
7016f1b
修正首页中的错误描述
northword Jul 21, 2023
dce31aa
修复导航栏贡献者指南链接错误,贡献者指南中错误
northword Jul 21, 2023
8e6978f
合入 csl 文档,暂存
northword Jul 22, 2023
c67aff3
更新插件镜像页链接
northword Jul 25, 2023
59016a3
修改CSL和首页标题
northword Jul 25, 2023
7db5ba4
Add md-lint
northword Sep 5, 2023
031e39b
Update plugins store url
northword Sep 5, 2023
9e4ee29
Update Zotero Chinese domin
northword Sep 7, 2023
89a83d1
[ImgBot] Optimize images
ImgBotApp Jul 21, 2023
c178c0c
doc: 去除多余的白色边框,更新图片说明
l0o0 Sep 10, 2023
4b7e8b5
完善部分链接地址 (#3)
Chikit-L Sep 13, 2023
9505b46
完善部分链接地址
northword Sep 13, 2023
f3e4fd6
Add files via upload (#5)
Chikit-L Sep 13, 2023
bdcbf20
Update 01-在Zotero中生成参考文献.md (#4)
Chikit-L Sep 13, 2023
98e28cb
新增通过VSCode-dev添加文档的指南
northword Sep 13, 2023
25b7da4
Fix Lint
northword Sep 13, 2023
77c6195
[ImgBot] Optimize images (#6)
imgbot[bot] Sep 13, 2023
e710986
修复提示块的渲染问题
northword Sep 14, 2023
a32b7db
完善引文格式的下载部分。 (#7)
Chikit-L Sep 14, 2023
0fd75be
Fix typo
northword Sep 14, 2023
ebc7007
精简导航栏
northword Sep 14, 2023
8f2d314
更新VSCode粘贴图片的保存路径 [skip ci]
northword Sep 14, 2023
355500b
对CSCode隐藏部分无关文件 [skip ci]
northword Sep 14, 2023
077c922
blog-isharestuff-V0.0.1
iShareStuff Sep 15, 2023
cc1452a
del no need js
iShareStuff Sep 15, 2023
5ff8d50
modify0.0.1
iShareStuff Sep 15, 2023
f53af09
标准化
iShareStuff Sep 15, 2023
9eb42c4
init-std
iShareStuff Sep 15, 2023
9754898
移除`.idea` [skip ci]
northword Sep 15, 2023
c0ff6b2
移除无用代码 [skip ci]
northword Sep 15, 2023
3719da9
修复JSON的格式化问题
northword Sep 15, 2023
9a7e2ae
添加 prettier.tabsize 配置
northword Sep 15, 2023
f4dcc5f
补充0.2-添加条目 (#10)
Chikit-L Sep 17, 2023
94df88f
[ImgBot] Optimize images (#11)
imgbot[bot] Sep 17, 2023
7dc0661
取消隐藏package.json
northword Sep 19, 2023
d4da042
替换文件名为全英文,取消文件名编号
northword Sep 19, 2023
b03c2f9
恢复 vscode 默认文件排序
northword Sep 19, 2023
3185355
测试显式指定作者
northword Sep 19, 2023
8ce1704
添加`快速开始`小节
northword Sep 19, 2023
115be49
减少子目录
northword Sep 20, 2023
c3256ea
将 about/ 内容移出子目录
northword Sep 20, 2023
ccf728b
修复图片路径导致的构建错误
northword Sep 20, 2023
9f57954
修改贡献指南
northword Sep 22, 2023
0a8793f
在脚本中增加 `npm install`
northword Sep 22, 2023
3b93737
在贡献指南添加图形化描述
northword Sep 22, 2023
7ac0bf0
删除安装命令避免死循环
northword Sep 22, 2023
7ceabef
添加WPS的待办
northword Sep 22, 2023
3c78cc6
Merge branch 'main' into isharestuff
northword Sep 22, 2023
fc9ede6
[ImgBot] Optimize images (#14)
imgbot[bot] Sep 22, 2023
aaec043
暂存:移动文件
northword Sep 22, 2023
75d99b0
暂存:修复部分格式
northword Sep 22, 2023
73a406a
暂存:修改部分格式
northword Sep 22, 2023
180243d
修改侧边栏,增加webdav和zoterobib
northword Sep 22, 2023
c44e883
添加 图片上有黑色遮挡的解决方法 (#15)
Chikit-L Sep 23, 2023
91ce00e
增加百度统计,更新依赖 (#13)
northword Sep 23, 2023
2064473
修复百度统计不生效的问题
northword Sep 23, 2023
4e569cc
不再隐藏文件
northword Sep 23, 2023
0307103
对PR测试能否成功构建 (#20)
northword Sep 23, 2023
d3cc0f8
重命名build action名称
northword Sep 23, 2023
93cf9f4
Fix lint (#19)
northword Sep 23, 2023
b915347
Fix build error
northword Sep 24, 2023
c37805e
部分完成数据与文件的同步 (#18)
Chikit-L Sep 24, 2023
193b686
添加WPS插件安装及使用教程 (#16)
l0o0 Sep 24, 2023
de4776b
[ImgBot] Optimize images (#17)
imgbot[bot] Sep 24, 2023
2dc80f8
Merge branch 'main' into isharestuff
northword Sep 24, 2023
215d171
[ImgBot] Optimize images (#23)
imgbot[bot] Sep 24, 2023
eee2a9c
完成ios同步部分内容 (#22)
Chikit-L Sep 25, 2023
b0f67ec
修复了部分文章中连续图片不能居中的问题,更新了zoo同步教程 (#25)
l0o0 Sep 28, 2023
c87ca0b
[ImgBot] Optimize images (#24)
imgbot[bot] Sep 28, 2023
cb34bf0
[ImgBot] Optimize images (#26)
imgbot[bot] Oct 2, 2023
782ae61
在贡献者指南中添加新建分支相关描述 (#29)
northword Oct 2, 2023
2e8317d
[ImgBot] Optimize images (#30)
imgbot[bot] Oct 4, 2023
8517d2e
添加Giscus评论 (#31)
northword Oct 4, 2023
e33eae3
chore: 更新VS Code配置 [skip ci]
northword Oct 4, 2023
3d439c2
添加备份小节 (#28)
northword Oct 4, 2023
6ef2982
Merge branch 'main' into isharestuff
northword Oct 4, 2023
c380ecb
移除已有内容
northword Oct 4, 2023
6078e97
暂时移除开发文档
northword Oct 4, 2023
808ecf1
Markdown Lint Fix
northword Oct 4, 2023
b116e86
添加其他系统的zotero profile directory
northword Oct 4, 2023
b61c996
移动行为准则至网站
northword Oct 4, 2023
c573c7c
修改开源协议为CC BY-SA 4.0
northword Oct 4, 2023
3fa98e5
添加关于word引用使用的一些文章 (#32)
northword Oct 4, 2023
a437c1f
Refactor GitHub action workflows (#47)
northword Oct 7, 2023
12f40d2
[ImgBot] Optimize images (#33)
imgbot[bot] Oct 7, 2023
022447b
添加 `zbib.org` 用法 (#49)
northword Oct 7, 2023
35fb92b
部署前签出仓库
northword Oct 7, 2023
28fb156
Merge branch 'main' of https://github.com/zotero-chinese/wiki
northword Oct 7, 2023
a51ee19
修复死链,添加代码高亮行 (#50)
northword Oct 7, 2023
537ba78
emoji变成黑白的解决方法 (#52)
Chikit-L Oct 24, 2023
c796a64
Fix typo in src/README.md (#53)
Maple-YZ Oct 24, 2023
daa207b
修改 iOS 示例图尺寸 (#54)
l0o0 Oct 25, 2023
1622305
获取更多样式”打不开怎么办 (#55)
Chikit-L Oct 26, 2023
9c0f684
[ImgBot] Optimize images (#51)
imgbot[bot] Oct 26, 2023
03e48c1
完成插件备份部分 (#57)
Chikit-L Oct 30, 2023
764cbd9
修改tara备份locate的描述 (#59)
northword Oct 31, 2023
af08e2f
Add plugin install (#61)
windingwind Nov 10, 2023
12b8675
参考文献中论文题目部分单词如何实现斜体及上标、下标效果 (#60)
Chikit-L Nov 10, 2023
8402e94
[ImgBot] Optimize images (#62)
imgbot[bot] Nov 10, 2023
0d97709
增加Feed小节 (#64)
northword Nov 15, 2023
fab5fba
添加从其他来源导入Zotero, close #43 (#65)
l0o0 Nov 21, 2023
36cba31
[ImgBot] Optimize images (#66)
imgbot[bot] Nov 21, 2023
64a5730
更新百度统计
northword Nov 21, 2023
96863e5
修复百度统计未生效的问题
northword Nov 21, 2023
f14df95
修改评论区内容存储仓库 (#70)
northword Nov 22, 2023
b98ec92
提交dist到`zotero-chinese.github.io` (#95)
northword Nov 24, 2023
cba36fb
完善一些文档语法风格 (#94)
northword Nov 24, 2023
9440622
Zotero在更新文档时出错 (#96)
Chikit-L Nov 24, 2023
496b59f
重命名COC为小写,修改README格式 (#97)
northword Nov 24, 2023
a9c12db
调整页面样式:加粗三四级标题 (#101)
northword Nov 25, 2023
f1dda93
修复图片大小错误 (#99)
northword Nov 25, 2023
bc1cb0b
更新依赖,README增加仓库大小 (#102)
northword Nov 25, 2023
2bc707c
对PR压缩图片 (#104)
northword Nov 26, 2023
099a2b9
切换包管理器为pnpm,启用CI缓存 (#103)
northword Nov 26, 2023
1f72dd3
完善添加条目相关文档 (#100)
wakewon Nov 26, 2023
104ab5c
维护:压缩PR中的所有图片
northword Nov 28, 2023
87ddfcf
完善插件的下载安装和更新部分 (#106)
Chikit-L Nov 28, 2023
ea27ee1
维护:增加Prettier和Git Hooks (#107)
northword Nov 30, 2023
c687871
添加”群组“小节 (#63)
Comte0825 Dec 6, 2023
de0f1ae
Merge branch 'main' into isharestuff
northword Dec 6, 2023
b5461fe
lint & 移除过时的文档
northword Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@

name: 部署文档
name: Build

on:
push:
branches:
# 确保这是你正在使用的分支名称
- main

permissions:
contents: write
workflow_call:

jobs:
deploy-gh-pages:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 签出仓库
uses: actions/checkout@v4
with:
fetch-depth: 0
# 如果你文档需要 Git 子模块,取消注释下一行
# submodules: true


- name: 设置 pnpm
uses: pnpm/action-setup@v2

- name: 设置 Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache: pnpm

- name: 安装依赖
run: npm ci
run: pnpm install

- name: 构建文档
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
npm run docs:build
pnpm run docs:build
> src/.vuepress/dist/.nojekyll

- name: 部署文档
uses: JamesIves/github-pages-deploy-action@v4
- name: 压缩构建文件
run: tar -cvf dist.tar src/.vuepress/dist

- name: 上传构建结果
uses: actions/upload-artifact@v3
with:
# 这是文档部署到的分支名称
branch: gh-pages
folder: src/.vuepress/dist
name: build-result
path: |
dist.tar
28 changes: 28 additions & 0 deletions .github/workflows/calibreapp-image-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Compress Images
on:
workflow_call:
pull_request:
# Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed.
# See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths for reference.
paths:
- "**/**.jpg"
- "**/**.jpeg"
- "**/**.png"
- "**/**.webp"

jobs:
build:
# Only run on Pull Requests within the same repository, and not from forks.
if: github.event.pull_request.head.repo.full_name == github.repository
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Compress Images
uses: calibreapp/image-actions@main
with:
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
githubToken: ${{ secrets.GITHUB_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy GitHub Pages

on:
workflow_call:
secrets:
ACCESS_TOKEN:
required: true

permissions:
contents: write

jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: 签出仓库
uses: actions/checkout@v4

- name: 下载构建内容
uses: actions/download-artifact@v3
with:
name: build-result
# path: dist.tar

- name: 解压构建文件
run: tar -xvf dist.tar src/.vuepress/dist

- name: 列出构建内容目录结构
run: ls -R -a

- name: 部署到 GitHub
uses: JamesIves/github-pages-deploy-action@v4
with:
repository-name: zotero-chinese/zotero-chinese.github.io
branch: gh-pages
folder: src/.vuepress/dist
single-commit: true
token: ${{ secrets.ACCESS_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint Markdown

on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: 签出仓库
uses: actions/checkout@v4
- name: 运行 MarkdownLint
uses: DavidAnson/markdownlint-cli2-action@v13
with:
globs: |
**/*.md
!test/*.md
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Main Action

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write

jobs:
lint:
uses: ./.github/workflows/lint.yml

build:
uses: ./.github/workflows/build.yml

deploy-gh-pages:
if: github.ref_name == 'main' && github.event_name == 'push' && github.repository == 'zotero-chinese/wiki'
needs:
- lint
- build
uses: ./.github/workflows/deploy-gh-pages.yml
secrets:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

.DS_Store
node_modules/
src/.vuepress/.cache/
src/.vuepress/.temp/
src/.vuepress/dist/
package-lock.json
# pnpm-lock.yaml

**/.vuepress/.cache/
**/.vuepress/.temp/
**/.vuepress/dist/
**/.obsidian
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
55 changes: 0 additions & 55 deletions .markdownlint.json

This file was deleted.

106 changes: 106 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
// 定义文档中涉及的专有名词
"MD044": {
"code_blocks": false,
"html_elements": false,
"names": [
"Zotero",
"JavaScript",
"GitHub",
"WebDAV",
"Android",
"iOS",
"macOS",
"WPS",
"Word",
"ZotFile",
"Zotero Chinese"
]
},

// 兼容 Prettier
// @see https://github.com/DavidAnson/markdownlint/blob/main/doc/Prettier.md
"blanks-around-fences": false,
"blanks-around-headings": false,
"blanks-around-lists": false,
"code-fence-style": false,
"emphasis-style": false,
"heading-start-left": false,
"hr-style": false,
"line-length": false,
"list-indent": false,
"list-marker-space": false,
"no-blanks-blockquote": false,
"no-hard-tabs": false,
"no-missing-space-atx": false,
"no-missing-space-closed-atx": false,
"no-multiple-blanks": false,
"no-multiple-space-atx": false,
"no-multiple-space-blockquote": false,
"no-multiple-space-closed-atx": false,
"no-trailing-spaces": false,
"ol-prefix": false,
"strong-style": false,
"ul-indent": false,

// 其他规则配置
// @see https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/.markdownlint.json
"default": true,
"MD003": {
"style": "atx"
},
"MD004": {
"style": "dash"
},
"MD013": false,
"MD024": {
"allow_different_nesting": true
},
"MD025": {
"front_matter_title": ""
},
"MD033": {
"allowed_elements": [
"br",
"template",
"script",
"style",
"ArtPlayer",
"AudioPlayer",
"AutoCatalog",
"Badge",
"BiliBili",
"Catalog",
"CodePen",
"DemoProject",
"FontIcon",
"ProjectLink",
"PDF",
"Replit",
"Share",
"SiteInfo",
"StackBlitz",
"XiGua",
"VideoPlayer",
"YouTube",
"AppearanceSwitch",
"HopeIcon",
"FlowChartPlayground",
"IconDisplay",
"KatexPlayground",
"NetlifyBadge",
"PrintButton",
"ThemeColorPicker",
"ToggleFullScreenButton",
"ToggleRTLButton"
]
},
// 兼容 Prettier 禁用
// "MD035": {
// "style": "---"
// },
"MD036": false,
"MD040": false,
"MD046": false,
"MD049": false
}
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Vuepress Cache
**/.vuepress/.cache/**
# Vuepress Temp
**/.vuepress/.temp/**
# Vuepress Output
**/.vuepress/dist/**
# Lib files
**/.vuepress/public/assets/

# Node modules
node_modules/

# Obsidian files
**/.obsidian/**

# NPM lock file
pnpm-lock.yaml
package-lock.json
yarn.lock

.husky/
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"recommendations": ["davidanson.vscode-markdownlint"]
"recommendations": [
"esbenp.prettier-vscode",
"davidanson.vscode-markdownlint",
"yzhang.markdown-all-in-one"
]
}
Loading
Loading