mirror of
https://github.com/xlucn/PAT.git
synced 2026-10-19 22:52:36 +08:00
6d926ca402d8ee9ba6491bf8b65ebbba910eb913
…
…
…
PAT解题说明
https://oliverlew.github.io/PAT
Github Pages + Jekyll搭建的静态博客
Requirements:
- selenium + firefox
- html2text
- beautifulsoup
文件结构
最终目标:生成jekyll博客接受的markdown文件,需要:
- PAT习题题目内容。由
source/download.py下载自PAT网站,并转换为markdown语法。 - 题解内容。写在
analysis文件夹里的markdown文件中。 - 代码。利用
git show命令从master分支中读取。
source/build.pyPython脚本会将上述内容汇集到一个文件中,并添加适当的标题、
副标题、markdown语法结构还有为jekyll设置的yaml front matter。
博客基于[minimal][]这个jekyll主题,并有所改变:
- 做了一定美化,css的改变集中在
assets/css/mystyle.css中 - 使用category layout
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%