README
1 Technology
- The source of the blog is on a git repository.
- html files are hosted on GitHub Pages.
- The blog source is compiled by hakyll.
- The content is written use my variation of Pandoc’s Markdown, I call it ChaoDoc.
- Coded most of the things in Sublime Text 3.
- The site uses chao-ui’s technical essay
profile. Shared styles live in
css/theme.cssandcss/essay.css. Site-specific layout lives incss/site-home.cssandcss/site-blog.css. - The math are shown with KaTex, rendered offline.
- Typography and reusable visual components follow the chao-ui essay guidance. Mathematical notation uses KaTeX’s coordinated fonts.
- To compile just
ChaoDoc.hs, you needpandocandciteproc. To compile thesite.hs, additionally you needhakyll. - For the homepage, I generate with python. Needs to run
pip install pyyaml mistune jinja2 bs4on a new machine. - KaTeX offline compilation. Requires katex_cli. Build it and
copy the executable into the base directory, and name it
katex_cli. - Make sure install llvm 13 for things to work correctly. This will be an issue until Hakyll start to work for higher pandoc version.
2 Notes
- I made an syntax highlighting file for sublime 3, so in Markdown it can also highlight latex codes.
2.1 KB-backed pages
pages/math-harness.md is generated from the canonical
math-harness essay in the author’s Knowledge Base. Edit that source, run
python3 sync-kb-math-harness.py, commit and push the
generated page on develop, then run ./push.sh
to update its stable URL.