Code Monkey home page Code Monkey logo

todayinhistory's Introduction

today In History

历史上的今天

示例网页

事件生成

结构

data 为根目录, 目前有 animememe 两个子类

子类下的日期按照mm-dd格式排序, 日期文件夹内储存当日事件数据

事件数据为 json 格式, 标准如下:

(以 data/meme/05-24/cherry.json 为例)

{
    "id": "cherry",
    "res": ".png",
    "date": "2016-5-24",
    "title": "陈睿 —— b站未来有可能会倒闭,但绝不会变质。"
}
  • id: 用于识别此事件, 同一日期下不能重复
  • res: 资源文件(图片格式); 可简写为拓展名(".png"等价于"cherry.png")
  • date: 日期, yyyy-mm-dd 格式
  • title: 事件描述,自由发挥

各级目录下由index.json索引

提交

对事件进行垃圾分类是非常麻烦的, 本项目由机器人完成自动分类

在子类下有autoFile目录, 可直接提交更改到此目录

机器人会在几秒钟内自动将事件移动到正确目录

步骤

方法1: (适用于大量编辑)

  1. 点击右上角 Fork 按钮, 将此项目fork到自己的账户中

  2. 使用 GitGitHub Disktop 克隆此仓库

    • Git: git clone https://github.com/Dituon/todayInHistory.git
    • GitHub Disktop: File => Clone reposit... => todayInHistory => Clone
  3. 在本地编辑后提交更改

    • Git:
      git add .
      git commit -m "something"
      git push origin main
      
    • GitHub Disktop: Commit to main => Push origin
  4. 提交Pull requests

方法2: (少量文件)

  1. 进入 anime/autoFilememe/autoFile 目录

  2. 点击右上角 Add file => Create new file, 参考 结构 中的格式编写json文件并提交

  3. 点击右上角 Add file => Upload files, 上传res中对应的图片文件并提交

更改合并到主仓库后, 可以在示例网页中看到添加的事件

注意

autoFile目录仅接受标准结构的json和图片文件

例如: data/meme/autoFile/cherry.json data/meme/autoFile/cherry.png

规范

  1. 对于具体年份未知的事件, 应当以作品发行年份作为事件年份
  2. 对于设定发生在古代或未来的事件, 年份范围为0001 - 9999
  3. 对于不存在的日期, 如12月32日, 应向下取最接近的日期

todayinhistory's People

Contributors

asbeel622 avatar dituon avatar xcw521 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

todayinhistory's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.