1
0
mirror of https://github.com/one-among-us/data.git synced 2024-12-29 13:12:40 +08:00
one-among-us-data/README.md

77 lines
3.1 KiB
Markdown
Raw Normal View History

2021-11-13 01:35:58 +08:00
# Our Data
这里存了 [One Among Us](https://one-among.us/) 的条目,欢迎贡献!
2021-12-25 04:55:11 +08:00
2023-01-11 13:00:47 +08:00
在贡献之前请阅读我们的 [文档和贡献指南](https://github.com/one-among-us/how-we-work/blob/main/README-zh_Hans.md)。
Please read our [How-We-Work](https://github.com/one-among-us/how-we-work/blob/main/README.md) before contributing.
2021-12-25 04:56:38 +08:00
## GitHub Repo 结构
2021-12-25 04:55:11 +08:00
2022-08-16 04:20:19 +08:00
* [data](https://github.com/one-among-us/data) - 条目内容存储
* [web](https://github.com/one-among-us/web) - 网页前端源码
* [backend](https://github.com/one-among-us/backend) - 献花和编辑后端源码
2021-12-25 04:55:11 +08:00
2024-04-29 19:42:33 +08:00
## File Structure
2021-11-13 01:35:58 +08:00
* Directory `/people/<userid>/`: Data for a specific person
* `info.json5`: Profile information
* `page.md`: Profile page content
2021-12-25 04:55:11 +08:00
* `photos`: Photo directory
2022-03-20 07:18:04 +08:00
* `comments`: List of comments made by other users in the format of `yyyy-mm-dd-{name}-{id}.txt`
2021-11-13 03:10:40 +08:00
2022-03-21 00:53:16 +08:00
* Branch `gh-pages`: Data that's automatically generated by Github Actions
* `people-list.json`: A list of all people currently in the repository
* Directory `/people/<userid>/`: Built data for a specific person
* `page.js`: `page.md` built with MDX
2022-11-23 17:46:50 +08:00
2024-05-17 21:04:30 +08:00
## Multilingual
2024-05-17 21:04:30 +08:00
We are trying to rewrite the multilingual architecture of the website to make it more versatile and more concise in an updated way. During this transitional period, please try your best to use Simplified Chinese as the manuscript, and use automatic conversion or manual proofreading to generate the Traditional Chinese manuscript. After the new multilingual architecture is written, we will re-proofread all Traditional Chinese manuscripts.
<!--
2022-11-23 17:46:50 +08:00
## 生成/更新繁体文稿
更新简体文稿之后请手动执行一个脚本生成繁体文稿。(因为 Github Actions 奇怪的问题太多了,还好难测试,还是换成本地构建啦)
2022-12-03 15:37:04 +08:00
构建环境需要安装 docker, 然后 `docker-compose up` 就可以更新繁体了!
2022-11-23 17:46:50 +08:00
这个脚本不会覆盖在已有的繁体文件上的更改,更新已经生成过繁体的简体文稿之后会自动合并,不过还是要手动检查一下哦。
-->
2024-04-29 19:42:33 +08:00
## HData
`/data/hdata.json` defined some data which used for entry properties. Here is some description of it:
* `commentOnly`: `string[]`, the entries which include comments only, like `tdor` or `tdov`
* `exclude`: `string[]`, the directories which would not be handled
* `notShowOnHome`: `string[]`, if you don't want a entry show on the home, add it into this item
* `actualHide`: `string[]`, if you don't want a entry show on the home and won't be redirected by random buttons, add it into this item.
If you set a entry in this list, you have no need to set it into `notShowOnHome` again.
2024-05-19 12:15:30 +08:00
* `trigger`: `string[]`, if you think this article is likely to irritate readers and should be restricted, please set this option.
2024-04-29 19:42:33 +08:00
### Example
```json
{
"commentOnly": [
"tdor"
],
"exclude": [
"tdov"
],
"notShowOnHome": [
"Anilovr",
"noname3031"
],
"actualHide": [
"ArtsEpiphany"
2024-05-18 18:24:11 +08:00
],
"trigger": [
"Xu_Yushu"
2024-04-29 19:42:33 +08:00
]
}
```
If you dont understand how to modify it, please feel free to [Contact Us](https://one-among.us/about/).