Skip to content

one-among-us/data

Repository files navigation

Our Data

这里存了 One Among Us 的条目,欢迎贡献!

在贡献之前请阅读我们的 文档和贡献指南

Please read our How-We-Work before contributing.

GitHub Repo 结构

  • data - 条目内容存储
  • web - 网页前端源码
  • backend - 献花和编辑后端源码

File Structure

  • Directory /people/<userid>/: Data for a specific person

    • info.yml: Profile information
    • page.md: Profile page content
    • photos: Photo directory
    • comments: List of comments made by other users in the format of yyyy-mm-dd-{name}-{id}.txt
  • 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

Multilingual

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.

HData

/data/hdata.json defines metadata for controlling entry behavior and display properties. Here is a description of each field:

  • commentOnly: string[], entries that contain only comments without full profile pages (e.g., tdor or tdov)
  • exclude: string[], directories that will be excluded from the build process entirely
  • notShowOnHome: string[], entries that exist but are hidden from the home page listing
  • actualHide: string[], entries completely hidden from both home page and random navigation.
    Note: If an entry is in this list, you don't need to add it to notShowOnHome again.
  • trigger: string[], entries with potentially triggering content that require content warnings and user confirmation before viewing
  • switch: [string, string][], paired entries for profile switching functionality. Each pair [A, B] allows switching from profile A to profile B.
  • skipAges: string[], entries where age calculation should be skipped
  • probabilities: object, probability weights for displaying entries on the home page. Format: {"entry_id": probability_value}. Values between 0.0-1.0 control random display chance. Entries not in this object are always shown.
  • groups: string[][], groups of entries that should be displayed together when sorted. Each group is an array of entry IDs. Members within a group are sorted by their sortKey, and groups are positioned based on the latest sortKey among their members.

Example

{
    "commentOnly": [
        "tdor"
    ],
    "exclude": [
        "tdov"
    ],
    "notShowOnHome": [
        "Anilovr",
        "noname3031"
    ],
    "actualHide": [
        "ArtsEpiphany"
    ],
    "trigger": [
        "Xu_Yushu"
    ],
    "switch": [
        ["profile_a", "profile_b"]
    ],
    "skipAges": [
        "example_entry"
    ],
    "probabilities": {
        "XingZ60": 1,
        "Huasheng": 0.5
    },
    "groups": [
        ["Elihuso", "Anilovr"]
    ]
}

If you don’t understand how to modify it, please feel free to Contact Us.

About

Data repo for https://one-among.us

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 41