YASS: Yet Another Static Site (Generator)
YASS is a static site generator written in Ada. It is headless application (no user interface). The program documentation is included in distribution.
- Support almost infinite amount of custom tags in HTML templates
- Separated tags for whole site and each page
- Fast
- Can be extended with modules written in any script/programming language
- Generating sitemaps
- Generating Atom feeds
- Auto reconfigure server when configuration file was changed
The easiest way to get YASS is by downloading the latest release for your operating system. For example, if you have windows, then download yass-windows_x86_64.zip
.
The easiest way to build YASS is via Alire. If you don't have alire already, you can get it from the main website or auto-install it via Getada.dev.
To build and install it, simply run alr install yass
and yass will automatically be
added to alire's binary folder (default is $HOME/.alire/bin
).
If you'd rather just download and build manually, navigate to a folder where you wish to build YASS and issue the following commands:
alr get yass
cd yass*
alr update && alr build
YASS will now be in the project's./bin
directory.
This should automatically pull all of the dependencies in, ie AWS and libcmark.
To build you need:
-
compiler: GCC with enabled Ada support or GNAT from:
-
gprbuild: it is included in GNAT from AdaCore and should be available in most Linux distributions too.
-
libcmark: should be available in every Linux distribution, if not, you can download source code from:
-
Ada Web Server (AWS): if you use GNAT from AdaCore it is included in package. In other situations, you may need to download it from:
https://www.adacore.com/download/more
or
-
XmlAda: if you use GNAT from AdaCore it is included in package. In other situation, you may need to download it from:
https://www.adacore.com/download/more
or
Navigate to the main directory (where this file is) to compile:
-
The easiest way to compile program is to use Gnat Studio included in GNAT. Select yass.gpr as a project file and select option
Build All
. -
If you prefer using console: in main source code directory type
gprbuild
for debug mode build or for release mode:gprbuild -XMode=release
.
Note: Unit tests are currently being migrated to aunit and alire so this may not work as expected.
Navigate to tests/driver
directory from the main directory (where this
file is):
- From console: type
gprbuild -P test_driver.gpr
To see all available options, type yass help
. If you want to run the program
from other directory, you should set the environment variable YASSDIR
to your
current directory. Example: export YASSDIR=$(pwd)
.
To see all available options, type yass.exe help
. If you want to run the program
from other directory, you should set the environment variable YASSDIR
to your
current directory. Example: set YASSDIR="C:\yass"
From the main directory go to test/driver
directory and type ./test_runner
.
There are available testing versions of the program. You can find them
in GitHub Actions.
Just select option from the list of results to see Artifacts list.
To use them, first you must download normal release. Then, for Linux: inside
directory where the program is, type ./yass-x86_64.AppImage --appimage-extract
to extract whole program to directory squashfs-root. And then move files
from the archive to the proper location. To run that version, enter
squashfs-root directory and type in console ./AppRun
. For Windows:
unzip files (replace existing) to the proper location where the program is installed.
-
yass-development-windows.tar contains Windows 64-bit version of the program.
-
yass-development-linux.tar contains Linux 64-bit version of the program.
Size is a file's size after unpacking. You will download it compressed with Zip.
To generate code documentation, you need ROBODoc
and Tcl. In main program directory enter: others/generatedocs.tcl
.
For more information, please look here.
This version of the script have set all default settings for the YASS code.
For detailed information about contributing (bugs reporting, ideas propositions, code conduct, etc), see CONTRIBUTING.md
-
YASS is released under GNU GPL v3 license.
-
Libcmark library distributed with the program is released under a few Open Sources licenses
- More unit tests
- Formally verify the project with SPARK
- Your propositions?
As usual, I probably forgot about something important here :)
Bartek thindil Jasicki & A.J. Ianozi