tree: b0a8a33e65afe667c17c80a67dc95efb6611ff92 [path history] [tgz]
  1. modules/
  2. ui-overrides/
  3. antora-playbook-local.yml
  4. antora.yml
  5. README.md
server/apps/distributed-app/docs/README.md

Building and serving documentation locally

Executing within source code

(Clone https://github.com/apache/james-project locally, go into server/apps/distributed-app/docs folder)

Step 1: Install Antora

Step 2: Build the Antora content locally

antora antora-playbook-local.yml

Step 3: Open build/site/index.html in your browser.

Building from the ZIP package

Install Antora.

Unzip james-server-distributed-app.zip.

Go in the docs folder.

Executing Antora can only be done from within a git repository.

You will need to initialize the git repository:

$ git init
$ git add .
$ git commit -m "First commit"

Then adapt antora-playbook-local.yml to match the git location:

site:
  title: Apache James Distributed Server
  url: https://james.apache.org/
  start_page: james-distributed-app::index.adoc
content:
  sources:
    - url: ./
      branches: HEAD
      start_path: ./
ui:
  bundle:
    url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
  supplemental_files: ./ui-overrides
runtime:
  fetch: true

Build the Antora content locally

antora antora-playbook-local.yml

Open build/site/index.html in your browser.