monkeytype/docs/QUOTES.md
2024-07-25 18:21:20 +02:00

2 KiB

Table of Contents

Forking Monkeytype

First you will have to copy the Monkeytype repository also known as forking. Go to the Monkeytype Repo and then click the "fork" button.

Screen Shot 2022-01-12 at 11 51 49 AM

Creating Quotes

After you forked the Monkeytype repository you can now add your quotes. (If you haven't already forked the repository, refer to this section.) (Before continuing to the next step make sure the quote's language exists in Monkeytype) Add this code in at the end of the quotes ./frontend/static/quotes/[language].json:

{
    "text": "[quote]",
    "source": "[source]",
    "id": [number of the quote],
    "length": [number of characters in quote]
}

(If the language does exist in Monkeytype, but there are no quotes for it create a new file for the language)

Committing Quotes

Once you have added your quotes(s), you now need to create a pull request to the main Monkeytype repository. Go to the branch where you added your quotes on GitHub. Then make sure your branch is up to date. Once it is up to date, click "contribute".

Update branch: Screenshot showing how to update the fork to match the main Monkeytype repository

Create a pull request: Screenshot showing how to create a pull request to the main Monkeytype repository

Quote Guidelines

Make sure your quote(s) follows the quote guidelines. Quote guidelines