This repository hosts parts of the documentation of jenkins.io.
-
Developer Guide
-
User Guide
-
Tutorials
-
Solutions Pages
-
Books
The documentation site for Jenkins is split into two parts:
-
Version-controlled documentation (managed using Antora)
-
Non-versioned documentation (using Gatsby for rendering the current website)
This guide focuses on building the version-controlled documentation using Antora.
Gatsby is a React-based framework that allows developers to create fast and optimized websites. It leverages GraphQL for data handling and provides a plugin ecosystem for extended functionality. This project utilizes Gatsby for rendering the non-versioned documentation of Jenkins, enhancing performance and user experience.
The Gatsby site is structured as follows:
-
src/: Contains the source files for the site, including components, templates, and styles.
-
static/: Static files that are directly served, such as images or fonts.
-
gatsby-config.js: Configuration file for Gatsby where you can customize settings and plugins.
-
Install Node.js and npm
It is recommended to install Node.js and npm using the Node Version Manager (nvm): * NVM repository: [https://github.com/nvm-sh/nvm](https://github.com/nvm-sh/nvm)
+ Alternatively, you can download and install Node.js from the official Node.js website:
-
Node.js official website: [https://nodejs.org](https://nodejs.org)
After the installation, verify that both
node
andnpm
are correctly installed:node --version npm --version
-
-
Install Antora CLI
Antora is used for generating versioned documentation. Install it globally via npm:
npm install -g @antora/cli @antora/site-generator-default
Once Node.js, npm, and Antora are installed, install the dependencies by running the following command at the root of the repository:
npm i
To build and serve the site locally, use the provided Makefile. Run this command at the root of the repository:
make all
Once the site is up and running, it should be available locally at:
-
Antora Documentation: This version-controlled documentation covers different guides (e.g., Developer Guide, User Guide).
-
Gatsby Documentation: Non-versioned content managed via Gatsby. This forms the basis of the current https://jenkins.io/ site, which will be replaced in the future. For more details on how to work with the Gatsby site, refer to its dedicated README documentation at:
For more details on running the project, refer to the detailed documentation in the README.md
file: