This is the Antora playbook project for all the docs that I publish at https://docs.harmen.ch.
To publish new content, simply push your changes in this repository to the origin master branch.
There is a GitHub Actions workflow defined in .github/workflow/build.yml
.
That workflow will build the website, upload it to S3 and then invalidate the cache of the Cloudfront distribution.
In case you ever have to perform the build and deployment manually, here are the steps:
-
Build the website
cd ~/repositories/ch-harmen-docs npm ci npx antora antora-playbook.yml
-
Sync the contents of
build/site
tos3://ch-harmen-docs/
. -
Invalidate the cache for the Cloudfront distribution that points to
s3://ch-harmen-docs/
.
Keep in mind, that this repository only holds the documentation content. Documentation styling is defined in my custom Antora UI bundle. That custom Antora UI bundle can be found in the repository ch-harmen-docs-ui. From time to time, you should maintain that custom Antora UI bundle. Meaning, you should rebase the custom bundle based on the original Antora UI bundle located at https://gitlab.com/antora/antora-ui-default. You can do that in the terminal with the following command:
cd ~/repositories/ch-harmen-docs-ui
git rebase -i upstream/master
Alternatively, you can do it in IntelliJ IDEA. Take your time when doing the merging, otherwise your custom settings or the updates from the Antora Default UI Bundle might get lost. When you are done with the rebase, push your changes to the origin master:
git push --force-with-lease
There is a GitHub Actions workflow defined in .github/workflow/build.yml
.
That workflow will build the custom Antora UI Bundle and deploy it, upload it to S3 and then invalidate the cache of the Cloudfront distribution.
In case you ever have to perform the build and deployment manually, here are the steps:
-
Build the website
cd ~/repositories/ch-harmen-docs-ui npm ci npx gulp bundle
-
Upload the
build/ui-bundle.zip
tos3://ch-harmen-docs-ui/
. -
Invalidate the cache for the Cloudfront distribution that points to
s3://ch-harmen-docs-ui/
.
If you perform further customizations to the custom Antora UI Bundle, you have to
-
Build and deploy the custom Antora UI bundle.
-
Build and deploy this repository again.
The build and deploy of the custom Antora UI bundle happens, when you push your changes to the custom Antora UI bundle to its origin master. The build and deploy of this repository has to be triggered manually. Navigate to https://github.com/harmenweber/ch-harmen-docs/actions and trigger the build workflow manually.