The repository 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 don’t 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 don’t 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/turtles-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 --initOpen a terminal at the root of the git repository. Run the command below.
npm installAs a local example, run the command below to build the product version of the site:
npx antora turtles-local-product-playbook.ymlNavigate 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-productThe Makefile can be used to set up your environment, build the local and remote static sites, and clean your build output directory.
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.
For development purposes, you can build the product site using the development playbook by running:
make dev-productThis will use the turtles-dev-product-playbook.yml to generate the site with development settings.
To preview the above example development site locally, use the command below:
make preview-dev-productand then open http://127.0.0.1:8084/ in your browser for a web server preview.
It is recommended to report the issue via the SUSE Customer Center.