Skip to content

Commit

Permalink
重构:合并 zotero-chinese/styles 仓库变更 (#318)
Browse files Browse the repository at this point in the history
* 重构:合并 zotero-chinese/styles 仓库变更

* 运行构建脚本

* 合并`@display/block`变更

* 修改CI判断条件

* 恢复误删除的样式

* clean code

* md注释格式修改

* 更新readme

* Fix [NO_PRINTED_FORM]

* 更新readme

* 更新文档

* 更新issue模板

* 修复文档中未闭合的HTML标签

* prettier json files

* Remove eslint

* 移除QQ群,Zotero ID 占位符

* 修复脚本处理note和测试引注的错误

* 读取summary和updated

* 读取csl的author和contributor

* Merge upstream/main to refactor
  • Loading branch information
northword authored Jun 14, 2024
1 parent 8fc262c commit f3b3f0f
Showing 1,116 changed files with 240,126 additions and 164,489 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.csl linguist-vendored=false
*.csl linguist-generated=false
*.csl linguist-documentation=false
*.csl linguist-detectable=true
3 changes: 0 additions & 3 deletions .gitee/ISSUE_TEMPLATE.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!-- 以下内容用于申请新的 CSL 样式。
如果反馈样式 bug 请删掉下列内容,并填写样式文件名、错误信息、预期结果、屏幕截图等信息。 -->


**样式信息**

<!-- 这些信息需要填写在 CSL 样式中,如果没有对应信息可以留空。 -->
@@ -27,7 +26,6 @@ literature, math, medicine, philosophy, physics, political_science, psychology,
science, social_science, sociology, theology, zoology
-->


**测试条目**

<!-- 如果参考文献格式与 GB/T 7714 差异较大,需要将其示例文献录入 Zotero 方便我们进行测试。
@@ -48,7 +46,6 @@ Zotero ID:
4. 《法学引注手册》: <https://www.zotero.org/groups/4677213/chinese_csl_development/collections/GTTN32IE>
-->


**其他样式信息**

<!-- 例如:与国标有哪些差异 -->
75 changes: 75 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: 错误报告
description: 报告错误帮助我们改进
title: "错误:"
labels:
- bug
# - Needs Triage
body:
- type: textarea
attributes:
label: 涉及到的样式文件
description: |
例如:
- xxxx1.csl
- xxxx2.csl
validations:
required: true

- type: textarea
attributes:
label: 描述错误
description: |
清晰简洁地描述错误是什么,预期的结果是什么。
如果必要,请添加屏幕截图以帮助解释。
validations:
required: false

- type: textarea
id: description
attributes:
label: 条目信息
description: |
将出错的文献条目导出为 CSL-JSON 格式。
在 Zotero 中,选中条目,右击,导出,CSL-JSON 格式。
例如:
```json
[
{
"id": "doe1984his",
"type": "book",
"title": "His anonymous life",
"author": [
{
"family": "Doe",
"given": "John"
}
],
"issued": {
"date-parts": [
[
"1984"
]
]
}
}
]
```
value: |
```json
{}
```
validations:
required: false

- type: textarea
id: additional-context
attributes:
label: 其他相关信息
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
在此处添加有关该问题的其他信息。
validations:
required: false
52 changes: 0 additions & 52 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: true
contact_links:
- name: 反馈关于网站的问题
url: https://github.com/zotero-chinese/website
about: "前往 zotero-chinese/website 仓库参与讨论!"

- name: 提问、求助、好想法
url: https://github.com/orgs/zotero-chinese/discussions/new/choose
about: "前往 Discussion 参与讨论!"
107 changes: 107 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: 样式申请
description: 申请添加新的 CSL 样式
title: "新样式:"
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
## 样式信息
- type: input
attributes:
label: 期刊 / 学校名称
placeholder: XX学报 / XX大学研究生学位论文
validations:
required: true

- type: input
attributes:
label: 英文名称
placeholder: e.g. Acta Psychologica Sinica / Tsinghua University
validations:
required: true

- type: checkboxes
attributes:
label: 相关领域
options:
- label: anthropology
- label: astronomy
- label: biology
- label: botany
- label: chemistry
- label: communications
- label: engineering
- label: geography
- label: geology
- label: history
- label: humanities
- label: law
- label: linguistics
- label: literature
- label: math
- label: medicine
- label: philosophy
- label: physics
- label: political_science
- label: psychology
- label: science
- label: social_science
- label: sociology
- label: zoology

- type: textarea
attributes:
label: 参考文献格式
description: 尽量提供**官网**的链接,或者上传官方的格式文件。
value: |
- 官方文件链接:
- 参考文献格式的更新日期:[例如 2020-07-30]
- (学校)文件号:[例如“研生[2019]10号”]
- (期刊)ISSN 号:[例如 0439-755X]
validations:
required: true

- type: markdown
attributes:
value: |
## 测试条目信息
如果参考文献格式与 GB/T 7714 差异较大,需要将其示例文献录入 Zotero 方便我们进行测试。
1. 加入 Zotero 群组 [Chinese CSL development](https://www.zotero.org/groups/4677213/chinese_csl_development);
2. 提供 Zotero ID,我们会稍后将此账号修改为 admin 权限允许编辑;
3. 获得编辑权限后,在“期刊”或“学位论文”的 collection 中以期刊/学校名称创建 subcollection;
4. 将期刊/学校**官方**的示例文献全部录入,没有对应网页的文献需手动录入。不要修改其他 collection 的内容。
- type: input
attributes:
label: Zotero ID
validations:
required: false

- type: textarea
id: description
attributes:
label: 条目信息
description: |
如果你没有把条目录入到上述群组,那可以把 CSL-JSON 数据贴在此处,或把文件拖拽到下面的输入框。
将文献条目导出为 CSL-JSON 格式:在 Zotero 中,选中条目,右击,导出,CSL-JSON 格式。
value: |
```json
{}
```
validations:
required: false

- type: markdown
attributes:
value: |
## 其他信息
- type: textarea
attributes:
label: 其他信息
placeholder: 例如:与国标有哪些差异
59 changes: 0 additions & 59 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ci-pr

on:
# pull_request:
# branches:
# - main
workflow_dispatch:

jobs:
upload:
name: 上传运行信息
runs-on: ubuntu-latest
if: github.repository == 'redleafnew/Chinese-STD-GB-T-7714-related-csl' && github.event_name == 'pull_request'
steps:
- name: 保存 PR 编号
run: |
echo "${{ github.event.number }}" > pr_num
- name: 上传 PR 编号
uses: actions/upload-artifact@v4
with:
name: pr-num
path: ./pr_num
Loading
Oops, something went wrong.

0 comments on commit f3b3f0f

Please sign in to comment.