DeltaOMS uses Hugo to generate public documentation. These generated site is published here using GitHub pages
DeltaOMS has a built-in github action ,under gh-pages.yml,
to publish the docs automatically when changes are made to the documents on the dev
branch.
This is the preferred approach for updating documents.
The manual steps for generating documents is listed below.
- Clone the DeltaOMS repository into your local directory using
git clone
- Switch to the
dev
branch
- Navigate to the
docs
directory. The markdown contents used for generating the public document website are in thecontent
folder - Add/Modify the markdown files as required
- The Hugo generation is configured through the
config.toml
file - Static resources like images and notebooks are stored inside the
static
folder - Once your changes are made, you could test the site locally by using
hugo serve --buildDrafts
- Delete the
public
folder underdocs
(if exists) - Checkout the
public_docs
branch as a worktreegit worktree add -B public_docs public origin/public_docs
- Generate the site using
hugo
. This will create the static site underpublic
directory - Change to the
public
directory and push changes to thepublic_docs
branch - This will trigger the publish process and update the documentation