-
Notifications
You must be signed in to change notification settings - Fork 7
/
README.html
96 lines (94 loc) · 4.58 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The Art Gallery Guardian">
<meta name="author" content="Chao Xu">
<meta name="google-site-verification" content="YE2oeW4OwVOPdVVfdpYIakOuD0A2Qo80W_sUbMJDGok" />
<meta property="og:title" content="README" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="The Art Gallery Guardian" />
<meta property="article:tag" content="" />
<title>README</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
<link rel="stylesheet" href="/css/default.css" crossorigin="anonymous">
<link rel="stylesheet" href="/css/blog.css" crossorigin="anonymous">
<link rel="alternate" type="application/rss+xml" title="RSS"
href="https://chaoxu.prof/rss.xml">
</head>
<body>
<header class="hide-on-print">
<div id="site-title">
<a href="/blog.html">The Art Gallery Guardian</a>
</div>
<div style="display: none;">
<img src="/files/chao/chao_thumb.jpg" >
</div>
</header>
<nav class="hide-on-print">
<ul>
<li><a href="/">About</a></li>
<li><a href="/blog.html">Blog</a></li>
<li><a href="/cnblog.html">中文博客</a></li>
<li><a href="/files/cv.pdf">CV</a></li>
<li><a href="/pages/tools.html">Tools</a></li>
</ul>
</nav>
<main>
<article>
<h1 id="article-title">README</h1>
<h1 data-number="1" id="technology"><span
class="header-section-number">1</span> Technology</h1>
<ol type="1">
<li>The source of the blog is on a <a
href="https://github.com/chaoxu/chaoxu.github.io/tree/develop">git
repository</a>.</li>
<li>html files are hosted on <a href="https://pages.github.com">GitHub
Pages</a>.</li>
<li>The blog source is compiled by <a
href="http://jaspervdj.be/hakyll/">hakyll</a>.</li>
<li>The content is written use my variation of <a
href="http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown">Pandoc’s
Markdown</a>, I call it <a
href="https://github.com/chaoxu/chaoxu.github.io/blob/develop/ChaoDoc.hs">ChaoDoc</a>.</li>
<li>Coded most of the things in <a
href="http://www.sublimetext.com/3">Sublime Text 3</a>.</li>
<li>The theme is <a href="http://tarskitheme.com/">Tarski</a> with few
changes.</li>
<li>The math are shown with <a href="https://katex.org/">KaTex</a>,
rendered offline.</li>
<li>The heading themes are similar to <a
href="http://www.amazon.com/gp/product/0199205272/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=0199205272&linkCode=as2&tag=fighterempire-20">Connections
in Combinatorial Optimization</a>, and the remaining themes are similar
to <a
href="http://www.amazon.com/gp/product/0387984038/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=0387984038&linkCode=as2&tag=fighterempire-20">Categories
for the Working Mathematician</a>. The symbols are of KaTeX.</li>
<li>To compile just <code>ChaoDoc.hs</code>, you need
<code>pandoc</code> and <code>citeproc</code>. To compile the
<code>site.hs</code>, additionally you need <code>hakyll</code>.</li>
<li>For the homepage, I generate with python. Needs to run
<code>pip install pyyaml mistune jinja2 bs4</code> on a new
machine.</li>
<li>KaTeX offline compilation. Requires <a
href="https://github.com/chaoxu/katex_cli">katex_cli</a>. Build it and
copy the executable into the base directory, and name it
<code>katex_cli</code>.</li>
<li>Make sure install llvm 13 for things to work correctly. This will be
an issue until Hakyll start to work for higher pandoc version.</li>
</ol>
<h1 data-number="2" id="notes"><span
class="header-section-number">2</span> Notes</h1>
<ul>
<li>I made an <a
href="https://gist.github.com/chaoxu/195ce33124f384a2f4e4">syntax
highlighting file</a> for sublime 3, so in Markdown it can also
highlight latex codes.</li>
</ul>
</article>
</main>
<footer class="hide-on-print">© 2010 - <time><script>document.write(new Date().getFullYear())</script></time> <a href="https://chaoxu.prof" rel="author">Chao Xu</a>. Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
<a href="/README.html">Blog README</a>.</footer>
</body>
</html>