Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

feat: 追加时效性插件功能 #10

@TonyCrane

Description

@TonyCrane

#9 实现了时效性插件的基本功能,不过想了想还有改善空间:

  • 课程评价一般会按学期来分配,超过两个学期没更新就是过时,可以把具体学期体现在页面上
    • 不过根据 commit 时间判断学期好像不太靠谱(且目前也有很多页面的时效是在项目创建之前的),那可能需要添加额外 metadata 了(待讨论)
  • 同样有些课程可能两年都没什么变化不需要更新,需要标注已经检查过

几个想法:

  1. 每个页面加 metadata
    • 需要更新目前已有所有页面,比较复杂
    • 后续检查无需修改也需要 commit 添加 metadata
  2. 新建文件记录
    • 不会影响每个页面内容本身的实际修改时间
    • 检查过期内容只需要在一个文件中 commit,会整洁一点
    • 和 mkdocs.yml 里 nav 部分有重合,能否自动化关联(?)
  3. 额外 project board / 额外表单 / 额外 repo
    • 目标就是把过期页面审校工作摘到 TuringCourses commit log 以外
    • 可以在 build 时获取 project 中记录的学期信息

我个人想法 3. > 2. >> 1.,具体怎么办待讨论,反正现有内容在几个月内都不会出现过时警告。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions