对 Docusaurus 有贡献
Docusaurus是我们希望帮助开源文档变得更容易的方式。我们目前有多个使用它的开源项目,还有更多的计划。如果你有兴趣为 Docusaurus 做贡献,希望这份文档能让贡献的过程变得 清晰。
开源指南网站为想要学习如何运行和贡献开源项目的个人、社区和公司提供了一系列资源。贡献者和刚接触开源的人都会发现以下指南特别有用:
行为准则
Facebook 采用了一套行为准则,我们希望项目参与者能够遵守。请阅读全文,以便您了解哪些行为会被容忍,哪些行为不会被容忍。
参与
有很多方法可以为 Docusaurus 做出贡献,其中很多都不需要编写任何代码。这里有一些开始的想法:
- Simply start using Docusaurus. Go through the Getting Started guide. Does everything work as expected? If not, we're always looking for improvements. Let us know by opening an issue.
- Look through the open issues. Provide workarounds, ask for clarification, or suggest labels. Help triage issues.
- If you find an issue you would like to fix, open a pull request. Issues tagged as Good first issue are a good place to get started.
- Read through the Docusaurus docs. If you find anything that is confusing or can be improved, you can click "Edit this page" at the bottom of most docs, which takes you to the GitHub interface to make and propose changes.
- Take a look at the features requested by others in the community and consider opening a pull request if you see something you want to work on.
Contributions are very welcome. If you think you need help planning your contribution, please ping us on Twitter at @docusaurus and let us know you are looking for a bit of help.
加入我们的 Discord 通道
We have the #contributors
channel on Discord to discuss all things about Docusaurus development. You can also be of great help by helping other users in the #help-and-questions
channel.
分类问题和拉取请求
One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.
- Ask for more information if you believe the issue does not provide all the details required to solve it.
- Suggest labels that can help categorize issues.
- Flag issues that are stale or that should be closed.
- Ask for test plans and review code.
我们的发展过程
Docusaurus uses GitHub as its source of truth. The core team will be working directly there. All changes will be public from the beginning.
All pull requests will be checked by the continuous integration system, GitHub actions. There are unit tests, end-to-end tests, performance tests, style tests, and much more.
分支机构
Docusaurus has one primary branch main
and we use feature branches with deploy previews to deliver new features with pull requests.
问题
When opening a new issue, always make sure to fill out the issue template. This step is very important! Not doing so may result in your issue not being managed in a timely fashion. Don't take this personally if this happens, and feel free to open a new issue once you've gathered all the information required by the template.
Please don't use the GitHub issue tracker for questions. If you have questions about using Docusaurus, use any of our support channels, and we will do our best to answer your questions.
错误
We use GitHub Issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.
- One issue, one bug: Please report a single bug per issue.
- Provide reproduction steps: List all the steps necessary to reproduce the issue. The person reading your bug report should be able to follow these steps to reproduce your issue with minimal effort.
If you're only fixing a bug, it's fine to submit a pull request right away but we still recommend filing an issue detailing what you're fixing. This is helpful in case we don't accept that specific fix but want to keep track of the issue.