How to Contribute to EmulatorEggs
How to Contribute to EmulatorEggs
GitHub Repository: https://github.com/BlueInterlude/emulatoreggs
Option 1: Opening an Issue or Discussion
You will need to create a GitHub account to open an issue. To sign up for GitHub, see https://github.com/signup.
Once you have created an account, open the following page, https://github.com/BlueInterlude/emulatoreggs/issues, and submit an issue.
Alternatively open a discussion post, https://github.com/BlueInterlude/emulatoreggs/discussions
Option 2: Editing the Markdown files
How to Contribute Using GitHub's Web Editor
Select a page to edit and follow one of the below options:
- Method 1
- On the respective wiki page, click the pencil icon in the top right and make your changes.
- Once you are finished making your changes, click the
Commit changes...button in the bottom left. - You will be prompted to create a Pull Request.
- Add a little bit of detail about what you added and why.
- Submit your Pull Request.
- Once your Pull Request is reviewed, it will be merged and any of your changes will automatically be deployed to the website.
- Method 2
- Select a document to edit in the
docsfolder: https://github.com/BlueInterlude/emulatoreggs/tree/main/docs. - On the page you would like to edit, click the
Editbutton in the top right - Click
Edit single fileand make your changes. - Once you are finished making your changes, click the
Commit changes...button in the bottom left. - You will be prompted to create a Pull Request.
6 Add a little bit of detail about what you added and why. - Submit your Pull Request.
- Once your Pull Request is reviewed, it will be merged and any of your changes will automatically be deployed to the website.
- Select a document to edit in the
How to Contribute Using a Cloned Repository
Recommended Software
This is not a definitive list of software, but instead a tailored list for those new to contributing to GitHub repositories.
Cloning
Clone the EmulatorEggs repository, using one of the below methods:
- Command line
git clone https://github.com/BlueInterlude/emulatoreggs.git
- GitHub Desktop
- Clone and use a GitHub repository in Visual Studio Code
- Through your preferred software not listed above
Python
The EmulatorEggs wiki uses python for MkDocs, MkDocs-Material (the theme), and many of its extensions.
If you are on Windows, you can download Python from the website at https://www.python.org/. If you are on Linux, you can install Python from the various package managers.
Virtual Environments and Pull Requests
In your newly cloned repo, set up a virtual environment to localize your Python install to the work you do on the EmulatorEggs wiki.
Follow the instructions on Python's documentation, https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/ to learn how to create a virtual environment. The .venv folder is ignored when you commit to the GitHub repository.
After you have set up your virtual environment, install the various software with the following line:
python3 -m pip install -r requirements.txt
Generally, when you are starting work on the EmulatorEggs wiki, the flow will look like the following:
- (If first time or if EmulatorEggs folder is deleted):
- Clone the EmulatorEggs repository to a folder of your choice:
* git clone https://github.com/BlueInterlude/emulatoreggs.git
- Clone the EmulatorEggs repository to a folder of your choice:
- Open a terminal and
cdto the EmulatorEggs cloned repository.cd /PATH/TO/EMULATOREGGS
- (If first time or if .venv folder is deleted)
- Linux:
python3 -m venv .venv - Windows:
py -m venv .venv
- Linux:
- In the same folder as the cloned repository and the
.venvfolder:- Linux:
source .venv/bin/activate - Windows:
.venv\Scripts\activate
- Linux:
mkdocs serve- This line will provide you with a URL in which you can see your edits in real time.
- Make your changes to the documents while testing the changes in a web browser of your choice.
- When you are finished, save your changes and create a
Pull Request- Creating an issue or pull request from GitHub Desktop
- Use the
GitHub Pull Requests and Issuesin Visual Studio Code, hhttps://code.visualstudio.com/docs/sourcecontrol/github
Thank you for contributing!