Guidelines for Contributors
We welcome every kind of contribution that can help us improve the website. We accept only the programming-related contribution.
How to Contribute?
The following branches are required from development to deployment of the website.
- Main - contains all the necessary code (docs, configurations files). This is the main working branch.
- gh-pages - is the build version of the main branch.
Procedure
First, clone the repository. Then run the following command:
- npm
- yarn
$ cd CodePrime && npm install
$ cd CodePrime && yarn install
This will install all the required packages needed to run the website.
Make sure your node version is >= 13.
Docs
In CodePrime, the folders name docs
contain all the .md and folder configuration files.
After adding content to the docs
folder, run the following command to build the HTML files.
- npm
- yarn
$ npm build
$ yarn build
The website's build version will be in the ``build``` folder.
After that, commit all the changes and push them to the main branch
. Once this is done, push build to gh-pages branch
using the following command.
git subtree push --prefix build origin gh-pages