This website is built using Docusaurus 2, a modern static website generator.
$ yarn
Test
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
$ USE_SSH=true yarn deploy
Not using SSH:
$ GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
- Branch
devis deployed (updated on each push). Access it bydev--<docs_domain>.comEach PR opens a preview site. https://deploy-preview-<PR NUMBER>--<docs_domain>.com- Branch dev will include the entire site.
- Master will include only the public site. (See docusaurus.config.js for full list).
- PR preview - will show preview will deploy only the public part.
- PR including
dev-previewprefix will show the preview of the entire site.
- New feature
Create new feature from latestdev.
bash git-flow/checkout_feature.sh <feature_name>
If feature already exists - jump to (6)
- Add changes
Add changes to feature
git add ...
git commit -m ...
vscode
- select
Source > controlon Left Bar- select
Source controlon Left Bar- press Plus sign next to files modified.
- Enter commit message
- Select commit
- Push feature to remote
bash git-flow/publish_feature.sh <feature_name>
Publishing feature with out a PR will not create a dev-preview site for feature.
- New PR
Create PR on github or vscode plugin from feature branch to dev.
vscode
- select
Github extensionon Left Bar- Select
Create Pull request- Change Into branch to
dev- Add discription
- Select Create
-
Add reviewers, comments, reviews - Web based interaction with reviewers.
-
PR update
Fixs to PR if needed.
Move to feature branch first - If currently checkout out another feature please first commit current changes (you don't have to publish if you don't want to change remote). \
Run
bash git-flow/checkout_feature.sh <feature_name>
Add Needed changes to PR
git add ...
git commit -m ...
vscode
- select
Source > controlon Left Bar- select
Source controlon Left Bar- press Plus sign next to files modified.
- Enter commit message
- Select commit
- Republish feature (will update the PR)
bash git-flow/publish_feature.sh <feature_name>
7.1) Back to comments and reviews -> (5)
- PR is approved - select sqaush merge PR Note: Make sure you only push feature branchs to dev.
Note: if don't need the updates in your feature branch you don't need to do this!
- rebase from dev
bash git-flow/refresh_feature.sh <feature_name>Rebasing dev may require to solve some conflicts if updated dev files are also changed in the feature branch. - Force publish feature branch
git push -f origin dev-preview/<feature_name>