|||
Skip to current page in TOC

Introduction

Welcome to the documentation for Haita 0.3.0 (hǎi tǎ, Mandarin Pinyin, lit. Sea Otter).

PDF Ready!
Info 1
The documentation is also available as a PDF.
It’s not ready yet!
Warning 2
Haita is a decent choice for organizing long, comprehensive documentation. But just like Typst, Haita is an unfinished project, and is (currently) not a serious tool.
mermancmarkermitexHaitaHaitaTypst ContentMermaidMarkdownLaTeX...HTMLPDF
Figure 1: How Haita Works

Writing documentation is a lame task. It is even more boring and frustrating when you have to setup toolchains and environments and debug for hours to make sure that they build correctly, only to find that the current tools cannot plot your diagrams, or the PDF generation is missing fonts and takes hours to build. So here’s Haita. A simple tool that has a single requirement: Typst. Here are some features:

𝑊=Ψ2𝑎𝑏2𝜇0[𝜇2+𝑚,𝑛(𝑎𝑚𝑛24(𝑚2𝑛2𝑎2+𝑛2𝜋2𝑏2+𝜇2)+8𝑎𝑚𝑛𝜇2𝜋2𝑚𝑛)]
Listing 1: A math formula example (source). Hover on the equation to reveal the copy button!
𝑓(𝑥)=𝑓̂(𝜉)𝑒2𝜋𝑖𝜉𝑥d𝜉
Listing 2: See how it renders with Typst + MathML (source)

The default theme, New Hamber, also supports dark mode.

You can make a new project in Typst using Haita, set it to bundle export, and Haita would generate a site for you. You don’t need to worry about setting up the toolchain – Typst is the only tool required.

An Unfinished Project

Haita is still missing some features, specifically:

Pagefind Integration
Tip 3
You can integrate Pagefind manually. See this page for details.

However, if you want pure Typst documentation, ease of use, and/or MathML formulae, you might want to give it a try. If you want stability and extremely easy syntax, then maybe you should consider mdBook. If you have any issues, please feel free to open a ticket on GitHub. If you would like to contribute, please open a pull request.

Licensing

The source and the documentation are available under Apache License v2.0.

Tracking
Info 4
This site uses Umami to track visitor status. It stores no cookies and does not collect personal data. All data collected are anonymous, and you can disable tracking for this site following this guide.

  1. PDF generation only works when using --foramt pdf and does not work with --format bundle. See https://github.com/typst/typst/issues/8309 for details.