Antora Documentation Site
This directory contains the Antora playbook and site assembly logic for the Trento documentation hub. It builds the docs hub from the documentation maintained in this repository together with documentation fetched from upstream component repositories.
The Antora content assembly is controlled by two main files:
-
trento-docs-site/antora.ymldefines how local and fetched documentation is scanned into Antora modules -
trento-docs-site/antora-playbook.ymlselects the local branches to build and the UI bundle to use
Examples of fetched component repositories include:
For the full current list of fetched repositories, refer to trento-docs-site/antora.yml.
|
Use the root |
How to Build and Preview the Site
2. Install Dependencies
npm install
This installs the Antora dependencies and extensions declared in trento-docs-site/package.json.
3. Build Antora page
npx antora antora-playbook.yml
The build fetches documentation from the upstream repositories defined in antora.yml, so network access is required.
This generates the site into ./build/trento-docs-site-public.
|
This build consumes |
4. Preview Locally
To preview the generated site in your browser, start a local static web server:
npx http-server build/trento-docs-site-public/ -c-1 -p 3000
-
-c-1: Disables caching -
-p 3000: Runs the server on port 3000
Open your browser and visit: localhost at port 3000