# Static Content
# 1. Code Structure
- The main pages of the static content from Frosty are inside the
content
folder:
.
└─ content
├─ en
├─ fr
└─ ar-EG
We have the content separated by language and inside each language we have it separated per country, if the file is the same for each country we don't put it inside each country folder and it became general for every country.
On the example bellow,
disputes.md
is specific per country, andprivacy-policy.md
file is general for both countries.
.
└─ content
├─ en
├─ eg
├─ disputes.md
├─ ng
├─ disputes.md
└─ privacy-policy.md
├─ fr
└─ ar-EG
- We also have some general links (Merchant Api Link) and general labels (Onboarding email) that will adjust automatically per country, so we can make general content. In general these links accept a path and a label (
<ChompLink label="click here" path="/account/create" ></ChompLink>
). They can be found here:
.
└─ components
├─ global
├─ ChompLink.vue
├─ MerchantApiLink.vue
...
# 2. PR process
- To update the content you will need to create a branch from frosty repository.
# 1. Make sure that you have the code updated and that you are on the master branch
git checkout master
git pull
WARNING
- Do not commit or push code to master branch!
# 2. Create a branch for the development
git checkout -b *feature-name*
# 3. Add and commit your code
git add .
git commit -m "Message describing the development"
# 4. Push your code
git push -u origin *feature-name*
# 5. Create Pull Request
- Head to github, and by this point, you should have a popup with the name of your branch. Saying to create Pull Request. Create the pull request and send it to one of the developers to review it.
WARNING
- No code can be merged to master without reviews!