This section describes some important information about how this repository is structured:
-
The component name, version, and start page are configured in each branch’s
antora.yml
file. -
The navigation for all modules is stored in the ROOT module’s
nav.adoc
file. -
The docs site playbook instructs Antora to automatically build the site using content in the
master
branch as well as any tags that are prefixed with v.
Documentation for new releases is hosted in versioned tags that are prefixed with v
. For example, content for the 4.1.1
version is hosted in the v4.1.1
tag. The latest-dev
content is stored in the master
branch
The documentation build process is triggered whenever you push a new tag to this repository or commit to the master
branch.
This section guides you through the steps for releasing documentation for patch releases.
-
Find the
.z
branch for your version. For example, if you’re working on content for version 4.1.2, find the branch named4.1.z
.TipFor guidance on writing content, see the contribution guidelines. NoteIf a branch for your major or minor version does not exist, see Major and Minor Releases. -
When you are ready to release, create a new release branch from the
.z
branch and name it with the full version number that you are releasing. For example, if you are releasing version 4.1.2, name the branch 4.1.2. -
In the
antora.yml
file of your release branch, update theversion
field with the version of IMDG that you are working on. For example from4.1.2-SNAPSHOT
to4.1.2
.version: 4.1.2
-
Tag the latest commit in your release branch with a
v
followed by the version number. -
If you have made any changes since creating your release branch, merge those changes back into the
.z
branch. -
Delete your release branch.
⚠️ Do not delete the .z
branch. This branch is for writing content for future patch releases. -
In the
antora.yml
file of the.z
branch, increment theversion
field. For example,4.1.2-SNAPSHOT
becomes4.1.3-SNAPSHOT
. -
If you are releasing a new latest version, in the
develop
branch of thehazelcast/hazelcast-docs
repository, submit a pull request to update the_redirects
file with your release version of IMDG.NoteThis file is where we alias the latest
path in URLs.# Redirect latest imdg alias to the latest version /imdg/latest/* /imdg/4.1.2/:splat 200!
The documentation site will now be built, including content from your tagged version.
This section guides you through the steps for releasing documentation for major and minor releases.
-
If you’re writing content for a new major or minor release, make your changes in the
master
branch. -
If you’re writing content for a new minor version of a previous major release, create a
{version}.y
branch and make your changes in that branch. For example if version 5.0 was already released and you plan to add content for version 4.3 then you need to create a branch named`4.y`.TipFor guidance on writing content, see the contribution guidelines. -
When you are ready to release, create a new release branch from the
master
or.y
branch and name it with the full version number that you are releasing. For example, if you are releasing version 5.0, name the branch 5.0. -
If you are releasing a new
latest-dev
version, in theantora.yml
file of themaster
branch, increment theversion
field to thelatest-dev
version. For example,5.0-SNAPSHOT
becomes5.1.0-SNAPSHOT
. -
To make it easier to amend your release for future patch versions or to fix typos, create a
{version}.z
branch from your release branch. For example if your release branch is named5.0
, create a branch named5.0.z
. -
In the
antora.yml
file of the.z
branch, increment theversion
field. For example,5.0
becomes5.0.1-SNAPSHOT
. -
In the
antora.yml
file of your release branch, update theversion
field with the version of IMDG that you are working on, and delete theprerelease
field. For example version5.0-SNAPSHOT
becomes5.0
.version: 5.0
-
Tag the latest commit in your release branch with a
v
followed by the version number. -
If you have made any changes since creating your release branch, merge those changes back into the
.z
branch (and if applicable also tomaster
branch). -
Delete your release branch.
⚠️ Do not delete the .z
branch. This branch is for writing content for future patch releases. -
In the
develop
branch of thehazelcast/hazelcast-docs
repository, submit a pull request to update the_redirects
file with the new versions of IMDG.NoteThis file is where we alias the latest-dev
andlatest
paths in URLs.# Redirect latest imdg alias to the latest version /imdg/latest/* /imdg/5.0/:splat 200! # Redirect latest-dev imdg alias to the latest-dev version /imdg/latest-dev/* /imdg/5.1-snapshot/:splat 200!
The documentation site will now be built, including content from your tagged version.
To automate some elements of the build process, this repository includes the following GitHub Actions:
File | Description | Triggers |
---|---|---|
|
Validates that all internal and external links are working |
On a pull request to the |
|
Builds the staging documentation site by sending a build hook to Netlify (the hosting platform that we use) |
On a pull request to the |
|
Builds the production documentation site by sending a build hook to Netlify (the hosting platform that we use) |
On a push to the |
If you want to add a change or contribute new content, see our contributing guide.
To let us know about something that you’d like us to change, consider creating an issue.