Update contest data: 2026-03-23
一个现代化的编程竞赛日历网页应用,帮助竞赛爱好者追踪各大平台的比赛信息。
更新:新增邮件提醒系统,可通过 GitHub Actions 实现每日比赛信息推送。
访问官网:https://ChanYeeSum.github.io/CodeCal/
克隆仓库:
git clone https://github.com/ChanYeeSum/CodeCal.git cd CodeCal
启动本地服务器:
python -m http.server 8080
访问网页:打开浏览器访问 http://localhost:8080
http://localhost:8080
准备配置文件:
cp mailer/config.example.json mailer/config.json
编辑 config.json,填入 SMTP 服务器信息
config.json
配置 GitHub Actions Secrets:
SMTP_HOST
SMTP_PORT
SMTP_USERNAME
SMTP_PASSWORD
SMTP_FROM
TO_ADDRESSES
CodeCal/ ├── intro.html # 介绍页面 ├── index.html # 列表视图 ├── calendar-modern.html # 日历视图 ├── index.css # 列表样式 ├── calendar-modern.css # 日历样式 ├── platform-tag.css # 平台标签样式 ├── contests.json # 比赛数据 ├── contest_fetcher.py # 数据爬取脚本 ├── mailer/ # 邮件模块 │ ├── send_contest_email.py │ ├── templates.py │ └── utils.py ├── icons/ # 平台图标 └── .github/workflows/ # GitHub Actions
编辑 index.html、calendar-modern.html 及相关 CSS 文件
index.html
calendar-modern.html
在 mailer/templates.py 中修改 HTML 模板
mailer/templates.py
在 contests.json 中添加数据,更新平台标签样式
contests.json
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/AmazingFeature
git commit -m 'Add some AmazingFeature'
git push origin feature/AmazingFeature
本项目基于 MIT 协议开源,详见 LICENSE 文件。
© ChanYeeSum. All rights reserved.
GitHub 仓库 | 作者主页
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
CodeCal - 编程竞赛日历
一个现代化的编程竞赛日历网页应用,帮助竞赛爱好者追踪各大平台的比赛信息。
特色功能
现代化界面
多视图展示
便捷操作
邮件提醒
支持平台
快速开始
在线访问
访问官网:https://ChanYeeSum.github.io/CodeCal/
本地部署
克隆仓库:
启动本地服务器:
访问网页:打开浏览器访问
http://localhost:8080配置邮件提醒
准备配置文件:
编辑
config.json,填入 SMTP 服务器信息配置 GitHub Actions Secrets:
SMTP_HOST:SMTP 服务器地址(如 smtp.gmail.com)SMTP_PORT:端口(如 587)SMTP_USERNAME:用户名SMTP_PASSWORD:密码或应用密码SMTP_FROM:发件人邮箱TO_ADDRESSES:收件人列表(逗号分隔)技术栈
前端
后端
自动化流程
项目结构
自定义开发
修改前端界面
编辑
index.html、calendar-modern.html及相关 CSS 文件调整邮件模板
在
mailer/templates.py中修改 HTML 模板添加新平台
在
contests.json中添加数据,更新平台标签样式参与贡献
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/AmazingFeaturegit commit -m 'Add some AmazingFeature'git push origin feature/AmazingFeature安全说明
开源协议
本项目基于 MIT 协议开源,详见 LICENSE 文件。
版权信息
© ChanYeeSum. All rights reserved.
GitHub 仓库 | 作者主页