Skip to content

AxonIQ/axoniq-library-site

Repository files navigation

AxonIQ Documentation

Building and serving the documentation

To build the documentation, first install the requirements:

npm install
VALE_VERSION=3.3.0
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
sudo tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C /usr/local/bin vale

Then run te following to download all repositories locally

cd localLinks
sh update.sh
cd ../

Now you can build the documentation:

npm run build:dev

And serve it locally on port 3000 (http://localhost:3000/)

npm run serve

A script has been written that crawls the documentation and checks all links. To run it, execute the following command after you have built the documentation

npm run check-links
Tip
This script also runs during the build process, and will prevent the build from succeeding if it finds any broken links.

Redirects

As Antora does not support everything, the create-custom-redirects.js script will be used during the build to generate two types of redirects:

  1. Redirects for latest of Axon Framework and Axon Server reference documentations to the actual version.

  2. Redirects for the old reference guide to the new reference guide, based on the sitemap.xml.

You can run the script manually by executing the following command:

node create-custom-redirects.js --build

The --build flag will clear out the build directory and rebuild the documentation before generating the redirects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published