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.ymlfile. -
The navigation for all modules is stored in the ROOT module’s
nav.adocfile. -
The docs site playbook instructs Antora to automatically build the site using content in the
masterbranch as well as any branches that are prefixed withv/.
Documentation for new releases is hosted in versioned branches that are prefixed with v/.
We support documentation for the latest patch releases of minor versions. For example, content for the 4.1 version is hosted in the v/4.1 branch. This branch contains content for the latest patch release of version 4.1.
The latest-dev content (snapshot content) is stored in the master branch.
The documentation build process is triggered whenever you create a new branch with the v/ prefix, push to an existing v/ branch, or push to the master branch.
This section guides you through the steps for releasing documentation for patch releases.
-
In the
v/branch for the minor version whose patch you are releasing, update theasciidoc.attributes.full-versionfield in theantora.ymlfile to the new patch version. For example, if you are releasing version 4.1.3, find thev/4.1branch and update theasciidoc.attributes.full-versionfield in theantora.ymlfile with 4.1.3.NoteAs soon as you push content to this branch, GitHub will trigger a new build of the site, which will include your new content. -
If you are releasing a new
latestversion, submit a pull request to thedevelopbranch of thehazelcast/hazelcast-docsrepository to do the following:-
Update the
_redirectsfile with your release version of IMDG.NoteThis file is where we alias the latestpath in URLs.# Redirect latest imdg alias to the latest version /imdg/latest/* /imdg/4.1.2/:splat 200!
-
In the
search-config.jsonfile, change the value of thevariables.versionfield to your release version.NoteThis file is where we specify which documentation version to index for the search. { "index_name": "prod_hazelcast_docs", "start_urls": [ { "url": "https://docs.hazelcast.com/imdg/(?P<version>.*?)/", "tags": [ "imdg" ], "variables": { "version": ["4.2"] },
-
This section guides you through the steps for releasing documentation for major and minor releases.
-
Create a new release branch from the
masterbranch. For example if you’re working on content for version 5.0, create a branch named5.0. You can add the new content and/or fixes to this branch before the release. -
In the
antora.ymlfile of your release branch, do the following:-
Update the
version,display_version, andasciidoc.attributes.full-versionfields with the major and minor version of IMDG that you are releasing. -
Delete the
prereleasefield.For example version
5.0-SNAPSHOTbecomes5.0.version: '5.0' display_version: '5.0' asciidoc: attributes: full-version: '5.0'
-
-
If you are releasing a new
latest-devversion, in theantora.ymlfile of themasterbranch, increment theversionfield to thelatest-devversion. For example,5.0-SNAPSHOTbecomes5.1-SNAPSHOT. -
When you’re ready to release, create the maintenance branch from the release branch. For example if you are releasing version 5.0, create a maintenance branch called
v/5.0from the5.0branch.NoteAs soon as you push the maintenance branch to the repository, GitHub will trigger a new build of the site, which will include your new content. -
In the
developbranch of thehazelcast/hazelcast-docsrepository, submit a pull request to update the_redirectsfile with the new versions of IMDG.NoteThis file is where we alias the latest-devandlatestpaths 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!
-
In the
developbranch of thehazelcast/hazelcast-docsrepository, submit a pull request to update thesearch-config.jsonfile with the new versions of IMDG.NoteThis file is where we specify which documentation version to index for the search. { "index_name": "prod_hazelcast_docs", "start_urls": [ { "url": "https://docs.hazelcast.com/imdg/(?P<version>.*?)/", "tags": [ "imdg" ], "variables": { "version": ["4.2"] },
-
-
Delete the release branch. For example, if you released version
5.0, delete the5.0branch. This step helps to keep the repository clean of release branches.
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 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.
All documentation is available under the terms of a Creative Commons License