ryanntannn / raid-website

Public facing website to promote RAiD's efforts

Home Page:https://raid.swiftoffice.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues MIT License


> RAiDLogo

RAiD Website

The officially unofficial public-facing website for RAiD.
Explore the docs and repo »

View Site · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

RAiD Website Screenshot

This is the public repository for the RAiD website! We encourage all members of RAiD to try their hand at contributing to the website as an open source contributor, and in so doing, learn what it truly means to contribute to open source.

(back to top)

Built With

  • Next
  • React
  • Node
  • ChakraUI

(back to top)

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Prerequisites

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo

    git clone https://github.com/your_username_/raid-website.git
  2. If you do not have yarn installed, install yarn

npm install --global yarn
  1. Install NPM packages through yarn
    yarn install

(back to top)

Contributing

The RAiD website is RAiD's first open-source project on Github. Anyone can contribute tothe RAiD website, be it to create a new post in our Blog or Events page, to introduce a new feature enhancement or even to fix bugs on the website.

You may follow the relevant tutorials based on your role as a contributor:

Contributing As A Content Editor

The following tutorial assumes you have no knowledge of Github and coding in general, and follows the process of how to create a simple blog or event post as a content editor.

For contributors who are developers coming in to introduce new features and fix bugs, you may look at the Contributing As A Developer tutorial.

This tutorial covers the following:

Create a Github Account

Fork the Project

To contribute to a project, you first have to create a copy of the project in your personal github account. The following instructions takes reference from Github's tutorial of how to fork a repository.

  1. On GitHub.com, navigate to the afnexus/raid-website repository.

  2. In the top-right corner of the page, click Fork. Click Fork

  3. Select an owner for the forked repository. This is usually your personal github account! Select An Owner

  4. By default, forks are named the same as their upstream repositories. You can change the name of the fork to distinguish it further. Name Your Repository

  5. Optionally, add a description of your fork in the description field.

  6. Ensure that the checkbox beside Copy the develop branch only is checked. By default, only the develop branch is copied. Copy The Develop Branch Only

  7. Click Create fork.

Navigating To Your Forked Repository

  1. On GitHub.com, click your avatar on the top-right corner of your navigation bar. In the dropdown menu, select your repositories. Navigate to Your Respositories

  2. Navigate to your fork of the raid-website repository. Navigate to Your Fork of The RAiD Website Repository

  3. You should now see a list of files attributed to the raid website repository. Fork of Raid Website Repository

Create Your Branch

  1. At the top left hand corner of the repository, click the button labelled develop branch to switch branches and tags. Click the Develop Branch

  2. To create a new branch, type the name of the new branch in the input field with the default text Find or create a branch.... Name Your Branch

When naming branches, best practices often recommend prefixing the branch name with the general category of the change you are trying to implement. Categories that our repository uses includes the following:

Category Explanation
feat New feature that adds on and expands on the production code
bug Bug fixes
docs Changes to the documentation
style Formatting changes (i.e. missing semi-colons) that do not affect production code
refactor Refactoring production code (i.e. changing a variable name)
test Adding missing tasks or refactoring existing tests that do not affect production code
chore Other tasks to be done that do not affect production code
blog New content on the raid website blog page
event New content on the raid website events page

This is followed by a concise description of the change that uses hyphens as separators to increase readability.

Branch Name Example Explanation
docs/contributor-tutorial Addition of tutorials on how to contribute to RAiD website in README.md file
feat/innofest Addition of Innofest page
bug/images-not-loading-in-blog-post Fixing of bug related to images not being loaded in blog posts
blog/contributing-as-a-content-editor New blog post titled 'Contributing As a Content Editor'
  1. After naming your branch, click on Create branch: <your-branch-name> from 'develop' to create your branch. Create Your Branch

  2. You should navigate to your newly created branch immediately after. Check that the branch button now indicates your new branch name to verify you are on your new branch. You can switch branches by clicking on this button and clicking on the destination branch you want to navigate to. Navigate to Your Branch

Editing Content in Github

This portion takes reference from Github's article on creating new files.

  1. In your new branch, navigate to the content directory among the list of files within the repository. Navigate to the Content Directory

  2. Depending on which content you want to edit, go to either the posts or events directory. This example will follow the example of creating a new blog post. Navigate to the Posts Directory

  3. Each file in the posts directory represents a blog post, except the template.md file. Click on the template.md file to open it. Navigate to the Template File

  4. Once in the file, click on the edit pencil icon on the top right corner of the file. Click on Edit Icon

  5. You should be brought to the raw markdown text in the template file. Select all the text and click copy. DO NOT CUT OR CHANGE THE TEXT IN THIS FILE. Select All and Copy

  6. Click Cancel Changes to exit the file. Cancel Changes

  7. Now navigate back to the posts directory. Navigate to the Posts Directory

  8. In the posts directory, click on the top right Add File button. Add File

  9. Click on Create A New File to create a new file for your blog post. Create New File

  10. Name the new file after the title of your blog post in small case and using hyphens as separators and attaching the .md file ending to the file. REMEMBER TO ADD THE .md FILE ENDING Name Your New File

  11. Paste the template that you copied in step 5 in the empty file space below Edit new file. Paste the Template

  12. Begin filling out the post metadata in the template with details of your blog post within the --- markers. Fill In Template Details

  13. You may now start writing your blog post content under the --- marker using markdown syntax, which is a specific formatting language. You may refer to this markdown syntax article to learn how to do so. Write Your Content

  14. Click the Preview tab to view how your blog post will look like! The metadata table will not appear in the blog post once it is merged into the source code, while all content below the metadata table will be content that is rendered in the blog post. Preview Your Content

Commit your Content Changes

Once you are done with the content, or when you want to save your changes to come back later to edit it further, you can commit your changes.

  1. Scroll down to the bottom of the page to see the Commit New File dialogue. Start by providing a concise summary of the commit. Ideally, you want to prefix the commit message with the category, followed by a short summary of the changes you made, much like naming the branch. You can also add more detailed description in the box below. Write Your Commit Message

  2. Click the green Commit new file button once you are done. Commit New File

You can repeat this process as many times as you need as you continue editing the file!

Open a Pull Request

Once you are done will all your changes and commits, it is time to create a pull request to merge it into the parent repository!

  1. After a commit, you should be brought back to the root repository, where you will see a dialogue box in yellow prompting you to create a pull request. Click on the green Compare & pull request button. Create a Pull Request Dialogue

  2. You will be brought to a page to fill in details regarding your pull request, with a template to follow. Pull Request Page

  3. For simple content creation, you may go ahead to delete the unnecessary sections except Description. Here, you can write a description of the content you are adding. Fill in PR Template

  4. Once done, you can click on the green Create pull request button.
    Create Pull Request

Follow Up

Congratulations, you just created your first pull request! Thereafter, the maintainers of the RAiD website will review your pull request and make sure everything is in the right order.

If there are no changes that need to be made, the maintainer will merge your code changes into the main source code, and your post will be live for everyone to see on the site.

If there are changes to be made, the maintainer will leave comments on your pull request for you to make additional edits.

(back to top)

## Contributing As a Developer

This tutorial covers the following additional steps to take for contributors that are looking to make feature changes or bug fixes:

Prerequisite Steps

Ensure you have completed the following steps in the tutorial for Contributing As a Content Editor:

Cloning the Forked Repository

  1. Above the list of files, click Code, then click Open with Github Desktop. Open With Github Desktop

Make Changes to the Code In Your Text Editor

Pending

Commit your Changes

Pending

Push to the Branch (git push origin feature/AmazingFeature)

Pending

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Acknowledgments

Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!

(back to top)

About

Public facing website to promote RAiD's efforts

https://raid.swiftoffice.org/

License:MIT License


Languages

Language:TypeScript 99.1%Language:JavaScript 0.5%Language:CSS 0.3%