Welcome to the 'Templates' repository for Codesphere! This repository is a collection of starter templates that facilitate development with CodeSphere. Here's a guide on how you can contribute.
Before contributing, ensure you have:
- A GitHub account.
- Basic understanding of Git and GitHub.
- Familiarity with CodeSphere templates' guidelines and structures.
Before developing a new template:
- Create a new issue in the repository.
- Describe in detail what the template should do and why it is useful.
- Wait for the issue to be approved by the team, or pick an existing and approved issue.
- Visit the Templates Repository.
- Click on the "Fork" button at the top right of the page. This will create a copy of the repository in your own GitHub account.
-
Clone the forked repository to your local machine using:
bashCopy code
git clone https://github.com/YourUsername/templates.git
-
Navigate into the cloned repository:
cd templates
- Create a new template or improve an existing one. Ensure it adheres to Codesphere's guidelines.
- Add your template in the appropriate directory.
- Add to your template a json file named
metadata.json
in the root directory with the following structure:
{
"Workspace": "the lowest plan possible",
"Links": {
"Link-Title": "https://example.com/",
"Link2": "https://example2.com/",
"...": "..."
},
"Categories": ["Cat1", "Cat2", "..."],
"Contributors": ["GitHubAcc1", "GitHubAcc2", "..."],
"Title": "Example Template"
}
- Add a Cover picture in the
.webp
format in your templates directory. Name it like your templates folder (it is case-sensitive)
For example: if the folder's path is templates/Example/
-> the filename should be Example.webp
-> the path to your file should be templates/Example/Example.webp
You can use any picture that is free to use. You can create a graphic using tools like Figma.
-
Add your changes with
git add
. -
Commit your changes with a meaningful message:
git commit -m "New Template added: [Template-Name]"
-
Push your changes to your forked repository:
git push origin main
- Go to your forked repository on GitHub.
- Click on "Pull Request" and then on "New Pull Request".
- Ensure the base and compare branches are correctly set.
- Fill in the required information and submit the pull request.
Please adhere to the following guidelines when making contributions:
- Ensure your template is functional and well-documented.
- Stick to prevailing coding standards and practices.
- Clearly describe what your template does and how it can be used.
Thank you for contributing to the Codesphere community!