mirror of
https://github.com/xlucn/PAT.git
synced 2026-10-03 00:23:15 +08:00
8e2b91db686afb4b8f2391e13a85985729d5e49f
…
…
PAT解题说明
Github Pages + Jekyll搭建的静态博客
博客地址: https://oliverlew.github.io/PAT
本地依赖的Python模块:
- selenium (需要firefox)
- html2text
- beautifulsoup
文件结构
最终目标:生成jekyll博客接受的markdown文件,需要:
- PAT习题题目内容。放在
_articles/html,由scripts/download.py下载自PAT网站,并转换为markdown语法。 - 题解内容。写在
_articles/analysis文件夹里的markdown文件中。 - 代码。位于master分支,利用
git show命令读取。
scripts/build.pyPython脚本会将上述内容汇集到一个文件中,放在_articles文件夹下,并在其中添加适当的标题、
副标题、markdown语法结构还有为jekyll设置的yaml front matter。
博客基于minima这个jekyll主题,增加了一下功能/特点:
- 做了一定美化,css的改变集中在
assets/css/mystyle.css中 - 添加了分类(顶级、甲级、乙级)和标签
- 支持Mathjax,因此可以原样显示题目中的公式等
- 利用giscus评论系统
Todo list
- Get it running. First successful run in this commit
- Add correct date to filenames in this commit
- Use include to reduce code duplication in this pull request
- Use permalink to fix the page urls in this pull request
- Add MathJax support in this pull request
- Use tags/categories to manage posts.
- Add indexes of each category in this commit
- Add tags in this pull request
- Add commenting system. Added Gitalk in this pull request
- Add page analysis tool, added Google analytics in this commit
Languages
C
98.7%
Makefile
1.3%