Yet Another Static Site (Generator)

Requirements

To run the program or build it from the sources you need libcmark library which should be available in most Linux distributions. If not, you can download it source code from GitHub. Please refer to it documentation on how to compile it.

If you use downloaded AppImage version of the program, you don't need any other dependencies. More information about using AppImage files you can find in AppImage documentation

^ Top

Build from sources

Docker way

You can use Docker images adabuild and adabuildwin64 from the project Docker Ada. They contain all libraries and compiler needed to build the program.

To build the program for Linux, download adabuild image and type in console:

docker run --rm -v [path to source code]:/app ghcr.io/thindil/adabuild /bin/bash -c "cd /app && gprbuild -p -P yass.gpr -XMode=release"

To build the program for Windows 64-bit, download adabuildwin64 image and type in console:

docker run --rm -v [path to source code]:/app ghcr.io/thindil/adabuildwin64 /bin/bash -c "cd /app && gprbuild -p -P yass.gpr -XMode=release --target=x86_64-windows"

Classic way

Preparations

To build YASS from the source you will need few things:

Build program

Navigate to the main directory to compile:

If you want to be able to print content of README.md file to terminal (by readme program command), copy file README.md to bin directory.

Note: If you want to move the program around, compile it in release mode. In debug mode the program may have problems with finding all dependencies.

Build unit tests

Navigate to tests/driver directory from the main directory (where this file is):

Or if you have Bob installed, type bob tests.

^ Top