Skip to main content
Version: 3.11-dev

Working With Documentation

This section outlines the necessary steps to start developing the KubeRocketCI documentation using Docusaurus. Docusaurus is a modern static website generator that simplifies creating, deploying, and maintaining open source project websites.

note

For more details on Docusaurus, please refer to the Docusaurus official website.

Adjusting the documentation to use npm instead of Yarn for working with Docusaurus involves minor changes. Below is the revised version of the documentation section, now specifying npm commands:

Prerequisites​

Before you begin, ensure you have the following installed:

  • Node.js (version >= 18.0)
  • npm (usually comes with Node.js)

Local Development​

  1. Clone the KubeRocketCI documentation repository to your local machine.

  2. Install the dependencies:

    npm install
  3. Start a local development server:

    npm start

    This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

  4. Navigate to localhost:3000 (or the URL provided in the terminal after running the npm start command) in your web browser to view the documentation site.

  5. Make the necessary changes to the documentation. The files are located in the docs directory. Changes will automatically refresh in the browser.

  6. Commit your changes and create a pull request.

Build​

To build the static content of the site into the build directory, run:

npm run build

The content generated in the build directory can be served using any static content hosting service.

Deployment​

To deploy the documentation site, you can use the following command, which builds the site and pushes it to the gh-pages branch:

Using SSH:

USE_SSH=true npm run deploy

Not using SSH:

GIT_USER=<Your GitHub username> npm run deploy

Ensure you replace <Your GitHub username> with your actual GitHub username if you are not using SSH.