Non-technical contributors can refer to the visual guide here:
https://cloudstack.apache.org/website-guide/
or,
https://github.com/apache/cloudstack-www/tree/main/docs/
For adding blog posts, the following template can be copied and renamed in the format as -blog-name, see examples in the blog directory:
https://github.com/apache/cloudstack-www/tree/main/blog/.blog-template
- Fork this repository to your GitHub account:
<your_github_user>. To do that, navigate tohttps://github.com/apache/cloudstack-wwwand clickforkin the top right corner of the page. - Then, clone your fork to your local workstation:
git clone git@github.com:<your_github_user>/cloudstack-www.git - Cloning this way will make your GitHub fork the
originremote. cd cloudstack-www- Add the official repo as the
upstreamremote:git remote add upstream git@github.com:apache/cloudstack-www.git
Sync Local with Upstream
git checkout main
git fetch upstream
git pull upstream mainCommit Locally
Once you've made local changes and tested locally if you can, you may commit your changes as follows:
git add .
git commit -am "your commit message"
git push origin mainCreate a PR
- Confirm the changes appear correctly on your GitHub account.
- Create a Pull Request against
mainon thehttps://github.com/apache/cloudstack-wwwrepository.
COMMITTER: Validate a PR Locally
Note: The following instructions assume the <contributor> made their changes
on their main branch.
# validate contributor changes
cd /tmp
git clone https://github.com/<contributor>/cloudstack-www.git
cd cloudstack-www
git checkout main
yarn install
yarn build
# visually validate changes at: http://localhost:[3000|port number]COMMITTER: Merge & Deploy
Once a PR is merged into main branch using GitHub UI, the changes are made live
by a GitHub Actions based automation workflow.