Install the Official TapirMD Toolset

The page is written in TapirMD (source is available here).

This page outlines the steps to install the official TapirMD toolchain and introduces some basic commands it provides.

You can also try TapirMD formatting syntax online.

Installation steps

TapirMD hasn't yet reached version 1.0.0 (or even 0.1.0). At this stage, building from source is the only way to run the offcial TapirMD commands locally.

  1. Install Zig, if haven't. The latest minor version is recommended.

  2. Get the source code of the TapirMD project. You can clone it (install Git if needed) or download its source code.

  3. Open your terminal or command prompt, navigate to the TapirMD project folder, and run the following command to build the project:
       zig build -Doptimize=ReleaseSafe
    
    If the build is successful, the tmd command binary file will be generated in the bin folder under the project local zig-out folder.

    The ReleaseSafe optimization mode produces a fast binary with safety checks. For an even faster binary, use the ReleaseFast optimization mode instead:
       zig build -Doptimize=ReleaseFast
    

    Or you can just build a debug version:
       zig build
    
    The debug version will print more readable information when problems are encountered. As the toolchain is still in its early development phase, bugs are inevitable. Bug reports are seriously welcome here.

  4. (Optional), copy the tmd binary file to a directory configured in the PATH enviroment variable, or add the path of the bin folder to the PATH enviroment variable, so that you can run the tmd command anywhere.

Use the toolchain