Skip to content

codesphere-community/templates

Repository files navigation

Contributing to the Codesphere 'Templates' Repository

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.

Preparation

Before contributing, ensure you have:

  • A GitHub account.
  • Basic understanding of Git and GitHub.
  • Familiarity with CodeSphere templates' guidelines and structures.

Template Ideas

Before developing a new template:

  1. Create a new issue in the repository.
  2. Describe in detail what the template should do and why it is useful.
  3. Wait for the issue to be approved by the team, or pick an existing and approved issue.

Step 1: Fork the Repository

  1. Visit the Templates Repository.
  2. 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.

Step 2: Clone Locally

  1. Clone the forked repository to your local machine using:

    bashCopy code

    git clone https://github.com/YourUsername/templates.git

  2. Navigate into the cloned repository:

    cd templates

Step 3: Create Template

  1. Create a new template or improve an existing one. Ensure it adheres to Codesphere's guidelines.
  2. Add your template in the appropriate directory.
  3. 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"  
} 
  1. 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.

Step 4: Commit Changes

  1. Add your changes with git add.

  2. Commit your changes with a meaningful message:

    git commit -m "New Template added: [Template-Name]"

Step 5: Push Changes

  1. Push your changes to your forked repository:

    git push origin main

Step 6: Create Pull Request

  1. Go to your forked repository on GitHub.
  2. Click on "Pull Request" and then on "New Pull Request".
  3. Ensure the base and compare branches are correctly set.
  4. Fill in the required information and submit the pull request.

Contribution Guidelines

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!