EnderMio / typst-book

A simple tool for creating modern online books in pure typst.

Home Page:https://myriad-dreamin.github.io/typst-book/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typst-book

A simple tool for creating modern online books in pure typst.

Installation (typst-book CLI)

There are multiple ways to install the typst-book CLI tool. Choose any one of the methods below that best suit your needs.

Pre-compiled binaries

Executable binaries are available for download on the GitHub Releases page. Download the binary for your platform (Windows, macOS, or Linux) and extract the archive. The archive contains an typst-book executable which you can run to build your books.

To make it easier to run, put the path to the binary into your PATH.

Build from source using Rust

To build the typst-book executable from source, you will first need to install Yarn, Rust, and Cargo. Follow the instructions on the Yarn installation page and Rust installation page. typst-book currently requires at least Rust version 1.71.

Since typst-book building depends on yarn, you cannot directly use cargo install to pull and build it. The build command is:

git clone https://github.com/Myriad-Dreamin/typst-book.git
cargo run --bin typst-book-build
# optional: install it globally
cargo install --path ./cli

With global installation, to uninstall, run the command cargo uninstall typst-book.

Again, make sure to add the Cargo bin directory to your PATH.

Get started

See the Get-started online documentation.

Setup for writing your book

We don't provide a watch command, but typst-book is designated to embracing all of the approaches to writing typst documents. It's feasible to preview your documents by following approaches (like previewing normal documents):

Acknowledgement

About

A simple tool for creating modern online books in pure typst.

https://myriad-dreamin.github.io/typst-book/

License:Apache License 2.0


Languages

Language:Rust 61.8%Language:CSS 12.4%Language:JavaScript 11.2%Language:Handlebars 9.2%Language:TypeScript 5.0%Language:Dockerfile 0.3%