Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.29 KB

README.md

File metadata and controls

62 lines (47 loc) · 1.29 KB
layout title lang-ref
default
JekyllBook
home

JekyllBook is a Jekyll theme based on the awesome theme of the Rust book built by mdbook. If you're reading the README.md on Github, click here to visit the rendered version.

![]({{ site.baseurl }}/static/preview.png)

Usage

JekyllBook is built on top of jekyll. Simply run

gem install jekyll

to install jekyll, and serve it in the root directory of this repository with

jekyll -s --trace --baseurl ''

The table of contents / sidebar is located in the _config.yml. Simply set up your config in this format:

chapters:
  - path: chapters/01.md
    sections:
      - path: chapters/01-1.md
      - path: chapters/01-2.md
  - path: chapters/02.md

Then, each of your chapters / sections should be prefaced with the Jekyll header:

---
layout: default
title: Name Of Chapter
---

Katex is supported out of the box, so you can write equations easily with

$$ \begin{aligned} i \hbar \frac{\partial}{\partial t}\Psi(\mathbf{r},t) = \hat H \Psi(\mathbf{r},t) \end{aligned} $$

Author

Zeming Lin

License

Open sourced under the MIT license.

<3