Skip to content

Commit 8bb2e5f

Browse files
committed
doc: reorganize whole contribution section in a clearier way
1 parent c7a9658 commit 8bb2e5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+783
-541
lines changed

content/docs/guides/contribute/_index.en.md

-23
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,3 @@ linkTitle: "Contribute to OSRD"
44
weight: 10
55
description: Learn about the how we work, and how you can work with us
66
---
7-
8-
First off, thanks for taking the time to contribute!
9-
10-
The following chapters are a set of guidelines for contributing to OSRD[^guidelines-not-rules]. If you have already contributed to open source projects before, you probably won't be surprised.
11-
If you have not, it will probably help a lot!
12-
13-
### Communicate
14-
15-
Chatting with other contributors is a great way to speed things up:
16-
17-
- Join our instant messaging room on IRC at [libera.chat#osrd](https://web.libera.chat/#osrd)
18-
- [**Create an issue**](https://github.com/osrd-project/osrd/issues/new/choose) to discuss your contribution project
19-
20-
### Inquire
21-
22-
Just like with any project, changes rely on past work.
23-
Before making changes, it is best to learn about what's already there:
24-
25-
- [read technical documentation]({{< ref "/docs" >}})
26-
- read the existing source code related to your project
27-
- chat with developers who last worked on areas you are interested in
28-
29-
[^guidelines-not-rules]: These guidelines are mostly not strict rules, it's probably fine to do things slightly differently.

content/docs/guides/contribute/_index.fr.md

-20
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,3 @@ linkTitle: "Contribuer à OSRD"
44
weight: 10
55
description: Comment apporter sa pierre à l'édifice
66
---
7-
8-
Déjà, merci d'avoir pris le temps de contribuer !
9-
10-
Si les sections suivantes forment un guide du contributeur, ce n'est pas pour autant un ensemble de règles strictes. En fait, si vous avez déjà contribué à des gros projets opensource, la suite ne sera pas surprenante. Dans le cas contraire, elle vous sera probablement très utile !
11-
12-
### Communiquer
13-
14-
Vous pouvez gagner du temps en discutant de votre projet de contribution avec les autres contributeurs :
15-
16-
- Rejoignez le salon de messagerie instantanée sur IRC à [libera.chat#osrd](https://web.libera.chat/#osrd)
17-
- [**Créez une issue**](https://github.com/osrd-project/osrd/issues/new/choose) pour avoir un endroit un discuter de votre contribution
18-
19-
### Se renseigner
20-
21-
Comme dans tout projet, chaque changement se repose sur ce qui a été fait par le passé.
22-
Avant d'apporter un changement, renseignez-vous sur l'existant :
23-
24-
- Vous pouvez [lire la documentation technique]({{< ref "/docs" >}})
25-
- Il est préférable de lire le code source de l'application en rapport avec votre projet
26-
- Vous pouvez contacter les derniers développeurs à avoir travaillé sur les zones du code en rapport avec votre projet

content/docs/guides/contribute/batch-updating-dependencies.en.md

-21
This file was deleted.

content/docs/guides/contribute/batch-updating-dependencies.fr.md

-22
This file was deleted.

content/docs/guides/contribute/bug-reports.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Report issues"
33
linkTitle: "Report issues"
4-
weight: 20
4+
weight: 5
55
description: "Report a bug or suggest an enhancement"
66
---
77

content/docs/guides/contribute/bug-reports.fr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Signaler des problèmes"
33
linkTitle: "Signaler des problèmes"
4-
weight: 20
4+
weight: 5
55
description: "Comment signaler un bug ou suggérer une amélioration"
66
---
77

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Review process"
3+
linkTitle: "Review process"
4+
description: "How to give useful feedback"
5+
weight: 4
6+
---
7+
8+
The reviewer/maintener undertakes to carry out the review quickly, and is also responsible for closing _request changes_, check commit history and quickly merge the _pull request_ if allowed.
9+
10+
We propose you a few tips and recommendations that we think are relevant to a humane, relevant and rewarding code review for all contributors:
11+
- [How to Make Your Code Reviewer Fall in Love with You?](https://mtlynch.io/code-review-love/) by Michael Lynch.
12+
- [How to Do Code Reviews Like a Human? ](https://mtlynch.io/human-code-reviews-1/) by Michael Lynch.
13+
14+
{{% include "./review-process.en.md" %}}
15+
16+
> If the reviewer is not maintainer, the PR's author has the responsability to contact a maintainer to merge the PR. In special cases (especially near feature freeze), maintainer should be found early.
17+
18+
## The code review pyramid
19+
20+
{{< figure src="/images/docs/contribute/code_review_pyramid.svg" link="https://www.morling.dev/blog/the-code-review-pyramid/">}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Revue de code"
3+
linkTitle: "Revue de code"
4+
description: "Comment faire des retours constructifs"
5+
weight: 4
6+
---
7+
8+
Le reviewer/mainteneur s'engage à effectuer la revue de code rapidement, c'est aussi à lui qu'appartient de fermer les « _request changes_ », de bien vérifier l'historique des commits, et de fusionner la « _pull request_ » s'il en a les droits.
9+
10+
Nous vous soumettons quelques conseils et recommandations qui nous semblent pertinentes pour une revue de code humaine, pertinente et enrichissante pour tous ses contributeurs :
11+
- [How to Make Your Code Reviewer Fall in Love with You?](https://mtlynch.io/code-review-love/) par Michael Lynch.
12+
- [How to Do Code Reviews Like a Human? ](https://mtlynch.io/human-code-reviews-1/) par Michael Lynch.
13+
14+
{{% include "./review-process.fr.md" %}}
15+
16+
> Si la personne qui fait la revue de code n'est pas mainteneur, c'est à l'auteur de PR de trouver un mainteneur pour pouvoir fusionner sa PR avec le code. Dans certains cas particuliers (notamment juste avant le gel des fusions en fin d'itération), le mainteneur doit être averti plus tôt.
17+
18+
## La pyramide de la revue de code
19+
20+
{{< figure src="/images/docs/contribute/code_review_pyramid.svg" link="https://www.morling.dev/blog/the-code-review-pyramid/">}}

content/docs/guides/contribute/code-reviews/index.en.md

-13
This file was deleted.

content/docs/guides/contribute/code-reviews/index.fr.md

-13
This file was deleted.

content/docs/guides/contribute/code.en.md

-99
This file was deleted.

content/docs/guides/contribute/code.fr.md

-95
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Contribute code"
3+
linkTitle: "Contribute code"
4+
weight: 3
5+
description: "Integrate changes into OSRD"
6+
---
7+
8+
This chapter is about the process of integrating changes into the common code base. **If you need help at any stage, open an issue or message us.**
9+
10+
OSRD application is split in multiple services written in several languages. We try to follow general code best practices and follow specificity for each languages when required.

0 commit comments

Comments
 (0)