Skip to content

Commit

Permalink
Explain how to contribute to Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rootzoll committed May 25, 2024
1 parent e56c49c commit e91838d
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions docs/faq/contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
## FAQ Contribute to RaspiBlitz

### How to Edit RaspiBlitz Documentation and Create a PR?

You dont need to install anything for simple text coreections or changes ... just follow the following steps in the browser:

#### 1. Sign Up for a GitHub Account

GitHub is just another social media platform, just for code - so you need an account:

- Go to [GitHub](https://github.com).
- Click on "Sign up" in the upper-right corner
- Follow the instructions to create a new account.

#### 2. Fork RaspiBlitz Docs Repository

One time you need to fork the RaspiBlitz Docs into your account. That basically just means you create a workcopy.

- Go to the RaspiBlitz Docs repository: [https://github.com/raspiblitz/raspiblitz-docs](https://github.com/raspiblitz/raspiblitz-docs).
- On the repository page, click on the "Fork" button in the upper-right corner.

![fork repo](/static/img/contribute_docs/forkrepo.png)

- On the next screen you can just click "Create Fork".

![create fork](/static/img/contribute_docs/forkrepo2.png)

#### 3. Find the Documentation File to Edit

Now you go back into the original RaspiBlitz Documentation GitHub project into the `docs` sub folder where the single pages are stored and make your change.

- Go to [https://github.com/raspiblitz/raspiblitz-docs/tree/master/docs](https://github.com/raspiblitz/raspiblitz-docs/tree/master/docs)
- Find the file where you want to make the correction or change.
- Click on the pencil icon (✏️) in the upper-right corner to edit the file.
- Make your changes in the online editor.

![edit page](/static/img/contribute_docs/editpage.png)

#### 4. Commit Your Changes & Create a Pull Request

When ready you need to save/commit the changes and create a request to add the changes to the main project - thats calls a "Pull Request" or short "PR".


- Click in top right corner on "Commit Changes" button.

![commit changes](/static/img/contribute_docs/commitchange.png)

- Give it a title .. a description is optional.
- Click on "Propose changes"

![commit changes](/static/img/contribute_docs/proposechange.png)

- You see then a screen that shows a comparison of what changed.
- You can ignore that and just click "Create Pull Request"

![create pull request](/static/img/contribute_docs/createpr.png)

- Done
- You now the the number of your Pull Request that got submitted to the maintainers of the RaspiBlitz Documentation for review.

![your PR](/static/img/contribute_docs/yourpr.png)

- You can bookmark the URL to add comments later.
- You should get an email once your changes got accpeted.

Check warning on line 64 in docs/faq/contribute.md

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"accpeted" should be "accepted".
- Thx
Binary file added static/img/contribute_docs/commitchange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/contribute_docs/createpr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/contribute_docs/editpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/contribute_docs/forkrepo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/contribute_docs/forkrepo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/contribute_docs/proposechange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/contribute_docs/yourpr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/createpr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e91838d

Please sign in to comment.