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
mainbranch as well as any branches that are prefixed withv/.
Documentation for new releases is hosted in versioned branches that are prefixed with v/. For example, content for the 4.2020.12 version is hosted in the v/4.2020.12 tag. The latest-dev content is stored in the main 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 main branch.
-
When you are ready to release, create a new maintenance branch from the
mainbranch and name it with the full version number that you are releasing. For example, if you are releasing version 4.2020.12, name the branch v/4.2020.12.TipFor guidance on writing content, see the contribution guidelines. -
In the
antora.ymlfile of your maintenance branch, update theversionfield with the version of Management Center that you are working on.version: 4.2020.12
NoteAs soon as you push 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 management center alias to the latest version /management-center/latest/* /management-center/4.2020.12/:splat 200!
-
Update the
search-config.jsonfile with your release version 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/management-center/(?P<version>.*?)/", "tags": [ "management-center" ], "variables": { "version": ["4.2021.03"] },
-
-
If you are releasing a new
latest-devversion, do the following:-
In the
antora.ymlfile of themainbranch, increment theversionfield to thelatest-devversion. For example,4.2021.02-SNAPSHOTbecomes4.2021.03-SNAPSHOT. -
In the
developbranch of thehazelcast/hazelcast-docsrepository, submit a pull request to update the_redirectsfile with the newlatest-devversion of Management Center.NoteThis file is where we alias the latest-devandlatestpaths in URLs.# Redirect latest-dev management center alias to the latest-dev version /management-center/latest-dev/* /management-center/4.2021.03-SNAPSHOT/:splat 200!
-
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.