Skip to content

rancher/turtles-product-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

529 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SUSE Rancher Prime Cluster API (Turtles): Product and Community Documentation

Build the Documentation site

The repository uses Antora Playbooks to locally or remotely build the AsciiDoc content into a static website.

Prerequisites

git

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 --version

If you don’t have git installed on your machine, download and install it for your operating system from the git downloads page.

Node.js

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 -v

If you don’t have Node.js installed on your machine, install it, preferably via nvm.

Clone the repository

Run the git command to clone this repository.

git clone https://github.com/rancher/turtles-product-docs.git

This 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 --init

Install node modules

Open a terminal at the root of the git repository. Run the command below.

npm install

Run Antora to build the static website - Product example

As a local example, run the command below to build the product version of the site:

npx antora turtles-local-product-playbook.yml

Navigate to the ./build/site-product directory and open the index.html file in your browser to view and navigate the documentation site.

Alternatively, run the below command first and then open http://127.0.0.1:8080/ in your browser for a web server preview:

make preview-local-product

Makefile

The Makefile can be used to set up your environment, build the local and remote static sites, and clean your build output directory.

Build the Static Website

You can use the make command to build the documentation site locally or remotely for either the Community or Product versions. The Makefile defines various tasks for building the site using different playbooks.

Example: Build the site using the development playbook - Product

For development purposes, you can build the product site using the development playbook by running:

make dev-product

This will use the turtles-dev-product-playbook.yml to generate the site with development settings.

Preview the development build locally - Product

To preview the above example development site locally, use the command below:

make preview-dev-product

and then open http://127.0.0.1:8084/ in your browser for a web server preview.

Clean up the build:

To remove the build and temporary directories, use the following command:

make clean

This will delete the build directory.

If you are a SUSE Rancher Customer

It is recommended to report the issue via the SUSE Customer Center.

If you are a SUSE Internal Employee

It is recommended to file a Jira ticket. If you do not have access to Jira then you can file a GitHub ticket on the respective product documentation repository.

About

Rancher Turtles (CAPI) project documentation

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors