This repository contains the documentation for SUSE Storage (Longhorn).
It uses Antora Playbooks to locally or remotely build the AsciiDoc content into a static website.
You need git to get the source code of this repository. Run the command below to check whether git is installed on your machine.
git --versionIf you do not have git installed on your machine, download and install it for your operating system from the git downloads page.
Antora requires an active long term support (LTS) release of Node.js. Run the command below to check if you have Node.js installed, and which version. This command should return an active Node.js LTS version number.
node -vIf you do not have Node.js installed on your machine, install it, preferably via nvm.
Run the git command to clone this repository.
git clone https://github.com/rancher/longhorn-product-docs.gitThis playbook repository uses a git submodule to get the custom Antora supplemental files that provide a custom GUI theme for the documentation website. Run the command below to get the submodule.
git submodule update --initBefore building, ensure all required Node modules are installed:
make environmentTo build the documentation using your local files and the local playbook:
make localThis command generates the static site in the ./build directory and creates a log file at ./tmp/local-build.log.
Once the build is complete, launch a local web server to view the documentation:
make previewAfter running this, open your browser and navigate to:
http://127.0.0.1:8080
The Makefile simplifies the build and preview lifecycle:
| Command | Description |
|---|---|
|
Builds the site using |
|
Performs a clean install ( |
|
Installs project dependencies defined in |
|
Serves the |
|
Removes the |
The supported versioned documentation is in folders in docs/.
The unsupported versioned documentation is in folders in archived_docs/.
It is recommended to report the issue via the SUSE Customer Center.