hanabi / hanabi.github.io

A list of Hanabi strategies
https://hanabi.github.io/
Creative Commons Attribution Share Alike 4.0 International
162 stars 158 forks source link

H-Group Conventions for Hanabi

Please visit the conventions website.

This is the GitHub repository for the website. It is built with Docusaurus, a modern static website generator.

What is a Pull Request?

If you're in the H-Group, then you might want to help edit the website. Maybe you want to fix some typos. Or maybe you want to add a new example. Or maybe you proposed a new convention, and it got voted in, and now you need to add a new section. Regardless of what you are doing, you will need to a submit a pull request.

In plain English, a pull request (or a PR for short) is simply a request to merge the changes that you want into the main copy of the website. Essentially, you need to make a copy of the website (called a fork), make some changes (called a commit), and then click a button on the website to create a new PR. At that point, I'll be notified that there is a new PR and I can look over the specific changes. Then, I can click "Approve" or "Deny" accordingly. If I click "Approve", then the changes are integrated and the website is automatically updated!

Pull requests are how people collaborate together to work on code (and documents) on GitHub.

How to Submit a Pull Request (Simple)

If all you are doing is making some small changes, like fixing typos, then you can use the GitHub website itself to live-edit the files. (Using the website is not recommended for bigger changes, as you won't be able to see where the errors are, if any.)

The steps to create a new pull request are as follows:

  1. Create an account on GitHub and login to that account, if you already haven't. (GitHub accounts are free.)
  2. On the main website, navigate to the page that you want to change.
  3. On the bottom of the page, you should see a link called "Edit this page". Click on that.
  4. Click the green button that says "Fork this repository". (That will create your own copy of the website that will live under your GitHub user account.)
  5. Edit the file using the website editor.
  6. When you are done, click the "Commit" button at the bottom. (This will save your change into your forked copy.)
  7. Click the green button that says "Create pull request".
  8. Type a description to explain what you changed and why.
  9. Click the green button that says "Create pull request".
  10. All done!

How to Submit a Pull Request (Complicated)

Editing files on the GitHub website is a pain. If you are adding a significant amount of changes, we recommend that you set up a local development environment to work on the website. That way, you can use a browser to see how your edits look in a local copy of the website that runs on your own computer.

Part 1 - Initial Preparation

Part 2 - Fork and Clone the Repository

Part 3 - Run It, Make Changes, and Observe Changes

Part 4 - Make Sure There Are No Errors

Part 5 - Commit Changes and Submit a PR