Rancher Turtles project documentation
Go to file
Chandan Pinjani 4a0f0e8001
Fix envsubst command & typo fixes
Signed-off-by: Chandan Pinjani <chandan.pinjani@suse.com>
2025-04-14 20:10:40 +05:30
.github Fix updatecli release post (#266) 2025-03-31 14:28:29 +02:00
docs Fix envsubst command & typo fixes 2025-04-14 20:10:40 +05:30
turtles-supplemental-files
updatecli/values.d feat: add updatecli config for releasepost 2025-01-14 15:40:15 +01:00
.gitignore
.gitmodules
.releasepost.yaml feat: filter rc releases for changelog generator 2025-01-28 11:55:19 +01:00
CODEOWNERS Add highlander to codeowners 2025-01-15 17:13:54 +01:00
LICENSE
Makefile Add many improvements to the makefile 2025-01-17 14:47:14 +01:00
README.adoc Update README 2025-01-17 14:47:28 +01:00
package.json
playbook-remote.yml
turtles-dev-playbook.yml Add many improvements to the makefile 2025-01-17 14:47:14 +01:00
turtles-gh-pages-playbook.yml Add docs version v0.18.0 (#268) 2025-03-31 14:43:45 +02:00
updatecli-compose.yaml bump releasepost policy 2025-03-19 16:44:13 +01:00

README.adoc

[#turtles-product-documentation]
= Turtles Product Documentation

[#build-the-documentation-site]
== Build the Documentation site

The repository uses https://docs.antora.org/antora/latest/[Antora Playbooks] to locally or remotely build the AsciiDoc content into a static website.

[#prerequisites]
=== Prerequisites

[#git]
==== 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.

[,console]
----
git --version
----

If you don't have git installed on your machine, download and install it for your operating system from the https://git-scm.com/downloads[git downloads] page.

[#node-js]
==== 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 https://nodejs.org/en/about/releases/[active Node.js LTS version number]

[,console]
----
node -v
----

If you don't have Node.js installed on your machine, install it, preferably via https://github.com/nvm-sh/nvm[nvm]

[#clone-the-playbook-repository]
=== Clone the Playbook repository

Run the git command to clone this repository.

[,console]
----
git clone https://github.com/rancher/turtles-docs.git
----

[#install-node-modules]
=== Install node modules

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

[,console]
----
npm install
----

[#build-the-static-website]
=== Build the Static Website

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

### Build the site locally using the GitHub Pages playbook:

To build the site locally using the GitHub Pages playbook, run the following command:

[,console]
----
make gh-pages
----

This will generate the static website using the `turtles-gh-pages-playbook.yml` playbook.

### Build the site remotely:

To build the site remotely using the remote playbook, run:

[,console]
----
make remote
----

This will use the `playbook-remote.yml` to generate the site remotely.

### Build the site using the development playbook:

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

[,console]
----
make dev
----

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

### Clean up the build:

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

[,console]
----
make clean
----

This will delete the `build` and `tmp` directories.

### Preview the site locally:

To preview the site locally, use the `preview` task:

[,console]
----
make preview
----

This will serve the site locally, allowing you to view it in your browser.

### Watch for changes and rebuild:

To watch for changes in the content and rebuild the site automatically, use the `watch` task:

[,console]
----
make watch
----

This will watch the content and documentation files for changes, rebuild the site, and preview it with hot reload.

### Continuous Integration (CI):

To run the build process for continuous integration, use the `ci` task:

[,console]
----
make ci
----

This will run the build using the GitHub Pages playbook and the development playbook in sequence.