You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
456 B
Bash

#!/bin/bash
SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname "$SCRIPT")
build_html()
{
asciidoctor $1 -o $2 -v -a linkcss -a docinfo=shared-head -a docinfodir=$BASEDIR -r "$BASEDIR/tools/asciidoctor-grammar-preprocessor.rb"
}
# The generated HTML files **must** be at BASEDIR
build_html "$BASEDIR/core/index.adoc" "$BASEDIR/core.html"
build_html "$BASEDIR/dma/gta3/index.adoc" "$BASEDIR/gta3.html"
build_html "$BASEDIR/index.adoc" "$BASEDIR/index.html"