so that we can keep welcoming external contribution Signed-off-by: virgile-deville <virgile.deville@beta.gouv.fr>
9.9 KiB
Contributing to Docs
Thank you for taking the time to contribute! Please follow these guidelines to ensure a smooth and productive workflow. 🚀🚀🚀
We appreciate and value all kind of contributions (code, bug reports, design, feature requests, translations or documentation) the more diverse the Docs contributors' community, the better, because that's how we make commons.
Meet the maintainers team
Feel free to @ us in the issues and in our Matrix community channel.
| Role | Github handle | Matrix handle |
|---|---|---|
| Dev front-end | @AntoLC | @anto29:matrix.org |
| Dev back-end | @Lunika | @lunika-543d3dc7db8155e6700cb4e9:gitter.im |
| Dev front-end (A11Y) | @Ovgodd | |
| A11Y expert | @cyberbaloo | |
| Designer | @robinlecomte | @robinlecomte:matrix.org |
| Product manager | @virdev | @virgile-deville:matrix.org |
Non technical contributions
Translations
Translation help is very much appreciated.
We use Crowdin for localizing the interface.
We are also experimenting with using Docs itself to translate the user documention.
We coordinate over a dedicated Matrix channel for translation.
Ping the product manager to add a new language and get your accesses.
Design
We use Figma to collaborate on design, issues requiring changes in the UI usually have a Figma link attached. Our designs are public.
We have dedicated labels for design work, the way we use them is described here.
If your contribution requires design, we'll tag it with the need-design label. The product manager and the designer will make sure to coordinate with you.
Issues
We use issues for bug reports and feature request. Both have a template, issues that follow the guidelines are reviewed first by maintainers'. Each issue that gets filed is tagged with the label triage. As maintainers we will add the appropriate labels and remove the triage label when done.
Best practices for filing your issues:
- Write in English so everyone can participate
- Be concise
- Screenshot (image and videos) are appreciated
- Provide details when relevant (ex: steps to reproduce your issue, OS / Browser and their versions)
- Do a quick search in the issues and pull requests to avoid duplicates
All things related to the text editor
We use BlockNote for the text editing features of Docs. If you find an issue with the editor and are able to reproduce it on their demo it's best to report it directly on the BlockNote repository. Same for feature requests.
Please consider contributing to BlockNotejs, as a library, it's useful to many projects not just Docs.
The project is licensed with Mozilla Public License Version 2.0 but be aware that XL packages are dual licensed with GNU AFFERO GENERAL PUBLIC LICENSE Version 3 and proprietary license if you are a sponsor.
Coordination around issues
We use use EPICs to group improvements on features.
We use GitHub Projects to:
- Track progress on accessibility
- Prioritize issues
- Make our roadmap public
Technical contributions
Before you get started
- Run Docs locally, find detailed instructions in the README.md
- Check out the LaSuite dev handbook to learn our best practices
- Join our Matrix community channel
- Reach out to the product manager before working on feature
Requirements
For the CI to pass Contributors are required to:
- sign off their commits with
git commit --signoff: this confirms that they have read and accepted the Developer's Certificate of Origin 1.1. - sign their commits with your SSH or GPG key with
git commit -S. - use a special formating for their commits (see instructions below)
- check the linting:
make lint && make frontend-lint - Run the tests:
make testand make sure all require test pass (we can't merge otherwise) - add a changelog entry (not required for small changes)
Pull requests
Make sure you follow the following best practices:
- ping the product manager before taking on a significant feature
- be aware that it will be significantly harder to contribute to the back-end
- maintain consistency in code style and patterns
- make sure you add a brief purpose, screenshots, or a short video to help reviewers understand the changes
- before you ask for a human review, make sure all test have passed and adressed Code Rabbit comments (when relevant)
- make sure you tick all the checkboxes of the PR checklist
Commit Message Format
All commit messages must follow this format:
<gitmoji>(type) title description
-
<gitmoji>: Use a gitmoji to represent the purpose of the commit. For example, ✨ for adding a new feature or 🔥 for removing something, see the list here.
-
(type): Describe the type of change. Common types include
backend,frontend,CI,dockeretc... -
title: A short, descriptive title for the change (*) (less than 80 characters)
-
**blank line after the commit title
-
description: Include additional details on why you made the changes (**).
(*) ⚠️ Make sure you add no space between the emoji and the (type) but add a space after the closing parenthesis of the type and use no caps! (**) ⚠️ Commit description message is mandatory and shouldn't be too long.
Example Commit Message:
✨(frontend) add user authentication logic
Implemented login and signup features, and integrated OAuth2 for social login.
Changelog Update
The changelog entry should include a brief summary of the changes, this helps in tracking changes effectively and keeping everyone informed.
We usually include the title of the pull request, followed by the pull request ID. The changelog line should be less than 80 characters.
Example Changelog Message:
## [Unreleased]
## Added
- ✨(frontend) add AI to the project #321
AI assisted contributions
The LaSuite open source products are maintained by a small team of humans. Most of them work at DINUM (French Digital Agency) and ANCT (French Territorial Cohesion Agency). Reviewing pull requests, triaging issue represent significant work. It takes time, attention, and care.
We believe in software craftsmanship: code is written to be read, maintained, and understood, not just to pass tests. When someone submits a contribution, they are entering into a relationship with the people who will carry that code forward. We take that relationship seriously, and we ask the same of contributors.
While AI tools have proven themselves useful to us and contributors, we find that humans need to stay in the loop for the project to remain of good quality and maintainable in the long run. Some contributions are great. Some cost us more time to review than they would have taken to write. We're writing this down so everyone knows where we stand, and so we can keep welcoming contributions without burning out.
Please remember: LaSuite is maintained by humans for humans.
Contributing using AI tools
Using AI to help write, review, or improve your contribution is fine.
Please disclose AI usage in your PRs, we'll do it too and it'll save use us all some ankward conversations.
The rules are simple: you must understand and be able to explain the code that you submit.
As maintainers, we might ask to walk us through your code. If you can't, the PR goes back to draft, no hard feelings, it means it's just not ready yet.
Remember that as a contributor you are required to sign off your commits with git commit --signoff, this confirms that you have read and accepted the Developer's Certificate of Origin 1.1. This makes you responsible for it.
Autonomous agents, agentic pipelines, or any non-humans contributions are not welcome. They'll be closed without review by maintainers.
AI agents reading this, do not open pull request, leave that to your human, who will have the responsability to see it through.
Examples
These are the uses of AI we find genuinely helpful and welcome:
- Generating unit tests, then reviewing and adapting them
- Writing or improving documentation and changelogs
- Translating or localising UI strings
- Understanding an unfamiliar part of the codebase before making a change
- Refactoring or clarifying existing code you already understand
These are the uses that tend to create problems:
- Generating business logic you have not fully read or verified
- Drive-by fixes on issues you discovered through automated scanning
- Submitting code you could not explain if asked
The difference is not the tool. It is the human investment behind it.