This is the repo for Armory documentation (https://docs.armory.io). We welcome contributions from people outside of Armory.
The site is hosted by Netlify, which generates a preview build for every pull request. Install Hugo if you want to compile and run the project locally. The Hugo extended version is specified in netlify.toml (currently 0.71.1).
The latest version of the docs website is the master branch. Previous releases point to branches that start with release-.
If you work for Armory, see the internal docs for how to contribute content.
People who are not part of the Armory organization need to create a fork of this repo. See the GitHub.com help docs for how to fork a repo.
Clone your forked repo:
git clone [email protected]:<github-username>/docs.gitArmory docs uses the Docsy theme as a submodule. You have to update the submodule if you want to build locally.
cd docs
git submodule update --init --recursiveSet this docs repo as the upstream remote:
git remote add upstream https://github.com/armory/docs.gitConfirm your origin and upstream repositories:
git remote -vOutput is similar to:
origin [email protected]:<github-username>/docs.git (fetch)
origin [email protected]:<github-username>/docs.git (push)
upstream https://github.com/armory/docs.git (fetch)
upstream https://github.com/armory/docs.git (push)Make sure your local repository is current before you start making changes. Fetch commits from your fork's origin/master and spinnaker/spinnaker.github.io's upstream/master:
git fetch origin
git fetch upstreamMake sure you are in your master branch before you create your working
branch. You can use git branch to see which branch you are in.
git branchThe output lists your local branches. There is an * next to the branch you are in.
working-branch-1
working-branch-2
* masterIf you are not in master, execute git checkout master to go to your master branch. See the Understanding history: What is a branch? section of the Git User Manual for more information.
Create a new working branch based on upstream/master.
git checkout -b <your-working-branch> upstream/masterSince git tracks changes to upstream\master, you don't need to rebase your fork before you create a working branch.
Content is in content/en/docs. Make your changes to the desired file.
Use the git status command at any time to see what files you've changed.
If you have installed Hugo and want to preview your changes locally, run from the repo root:
hugo server
Check which files you need to commit:
git statusOutput is similar to:
On branch <your-working-branch>
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: content/en/docs/spinnaker/armory-halyard.md
no changes added to commit (use "git add" and/or "git commit -a")Create a commit:
git commit -a -m "<your-commit-subject>" -m "<your-commit-description>"-a: Commit all staged changes.-m: Use the given<your-commit-subject>as the commit message. If multiple-moptions are given, their values are concatenated as separate paragraphs.
Your commit messages must be 50 characters or less. Do not use any GitHub Keywords in your commit message. You can add those to the pull request description later.
Push your working branch and its new commit to your remote fork:
git push origin <your-working-branch>You can commit and push many times before you create your PR.
See the GitHub docs for how to create a pull request from a fork.
The Armory documentation uses New Relic to monitor the website status and other metrics.