This is a basic features of this builder:
- Builds documentation with Antora
- Adds integration with PlantUML
- Adds live reload ability
- Adds full text search
- Provides possibility to build documentation in dockerized environment. This simplifies installation.
Build process is based on Gulp JS.
First you have to install docker and docker-compose.
Run this in terminal:
curl https://raw.githubusercontent.com/Sebbia/antora-builder/master/install.sh | bashClone and run sample documentation:
git clone https://github.com/Sebbia/antora-builder.git
sebbia-antora-builder watch -s antora-builder/example-docs -p antora-playbook.yml -o ~/doc-buildOpen the documentation in a browser: http://localhost:3000.
These are dependencies which have to be installed on the host system:
- Docker
- Docker Compose
- bash
Build with live reload and serving:
./sebbia-antora-builder.sh watch -s where/documentation/root/is -p where/playbook/is/relative/to/src.ymlAfter start the documentation can be viewed in a web browser at this URL: http://localhost:3000
Finally build can be performed by this command:
./sebbia-antora-builder.sh build -p where/playbook/is.yml -o where/to/place/htmlWARNING: This way is harder for ordinary user.
These are dependencies which have to be installed on the host system:
- node >= 12
- make
- g++
- python3
$ cd ${project}
$ npm install
$ npx gulp build --playbook where/playbook/is.yml --output where/to/place/html$ cd ${project}
$ npx gulp build --playbook where/playbook/is.yml --output where/to/place/html$ cd ${project}
$ npx gulp watch --src where/documentation/root/is --playbook where/playbook/is.yml --output /where/to/place/htmlThe documentation is then accessible at http://localhost:3000.
The search ability was implemented with this project https://github.com/Mogztter/antora-lunr.
In short, to enable search field you need to proceed to this section:
https://github.com/Mogztter/antora-lunr#enable-the-search-component-in-the-ui
Images automatically built from this sources is located here: