Deploying help updates involves:
- Updating docs
- Staging docs
- Deploying docs to production
main
branch -- the equivalent of "staging"gh-pages
branch -- the equivalent of "production"- Initial PR with updates should always include @gregthrone and/or @ljsinclair as reviewers (as of 2023-02-17 -- a new process is being designed to streamline this)
- Github Action settings found in
/.github/workflows
which handle the deployment ofmain
togh-pages
- FeatureBase employees who update the docs
- Featurebase-docs admins (as of 2023-02-21 these are @gregthrone and @ljsinclair)
- FeatureBase Subject Matter Experts (SME)
The user (an engineer, programmer, writer) performs the following tasks:
- Clone the repository and create a new branch from
main
- Makes changes in the branch
- Builds locally to test -- Local build instructions
- Visual check of content to verify everything works as expected
- Runs broken link check
IMPORTANT FeatureBase-docs PRs must be reviewed by FeatureBase-docs administrators (as of 2023-02-21 these are @gregthrone and @ljsinclair)
- Create Pull Request to compare main with branch.
- Invites SMEs and FeatureBase Administrators to review
- Engages in discussion with SME and FeatureBase Docs administrators to fix any issues
featurebase-docs administrator:
- approves and merges the PR with
main
- deletes the previous branch to keep things tidy
These steps will be performed by featurebase-docs administrator.
- Checkout main and pull changes
- Test the branch builds
- Visual check on changed content to make sure nothing broken
- Run broken link check on local build and fix broken internal links
- If errors > create new branch to fix errors and Jira assigned to appropriate person
- If no errors > create pull request to compare main with gh-pages
These steps can only be performed by FeatureBase-docs administrator that can push to the gh-pages
branch:
- checkout
gh-pages
pages locally and merge changes frommain
using the commands below:
git clone https://github.com/molecula/documentation
cd documentation
git checkout gh-pages
git pull
git merge --ff-only origin/main
git push
- This is performed as such to avoid differing commits between
gh-pages
andmain
. Keeping them with the same commits allows for proper comparison by git - if
gh-pages
somehow gets ahead or moves away frommain
a hard reset ongh-pages
will be necessary by an administrator
Successful completion of the action deploys the changes to the production site at docs.featurebase.com