Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 5c64b8a

Browse files
authored
Merge pull request #1054 from linwumingshi/feature/Contributing
docs: 📝 add contributing guidelines in English and Chinese
2 parents 1d8370a + ca943fd commit 5c64b8a

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

CONTRIBUTING.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Contributing
2+
3+
Thank you for your interest in contributing to `smart-doc`! For detailed guidelines on how to contribute, please review our official [**Contribution Guide**](https://smart-doc-group.github.io/guide/community/contributing).
4+
5+
## Key Highlights
6+
Before submitting a Pull Request (PR), please ensure:
7+
- 📌 **Discuss new features**: Start with an [Issue](https://github.com/smart-doc-group/smart-doc/issues) to align on proposed changes.
8+
- 🧩 **Single-focused PRs**: Submit one fix or feature per PR to simplify reviews.
9+
- 🌍 **English comments**: Use English for code comments to support international collaboration.
10+
-**Code quality**: Follow the [Spring Java Format](https://github.com/spring-io/java-format) style and add unit tests.
11+
- 📄 **Update documentation**: Reflect your changes in relevant documentation [`smart-doc-group.github.io`](https://github.com/smart-doc-group/smart-doc-group.github.io/tree/master/docs). if needed.
12+
13+
## Documentation and Examples
14+
If your contribution involves:
15+
- 🛠️ **Configuration changes**:
16+
- Check if your PR adds or modifies configurations (e.g., new parameters, default value updates).
17+
- Update or add corresponding documentation in the [`smart-doc-group.github.io`](https://github.com/smart-doc-group/smart-doc-group.github.io/tree/master/docs).
18+
- 📚 **New features**:
19+
- Provide usage examples in the [`smart-doc-example-cn`](https://github.com/smart-doc-group/smart-doc-example-cn) repository to demonstrate implementation.
20+
21+
22+
## How to Contribute
23+
1. Fork the repository and clone it locally.
24+
2. Create a new branch for your changes.
25+
3. Test your modifications using `smart-doc` (see [Quick Start](https://smart-doc-group.github.io/guide/getting-started)).
26+
4. Format code with `mvn spring-javaformat:apply`.
27+
5. Submit a PR to the main repository.
28+
29+
## Community Engagement
30+
- 📰 Share your use cases or articles in the [Discussions](https://github.com/smart-doc-group/smart-doc/discussions) section.
31+
- ❓ Help answer questions in the `Help` category.
32+
- 💡 Propose ideas or showcase tools in `Ideas` or `Show and tell`.
33+
34+
Your contributions are vital to making `smart-doc` better for everyone. Thank you!

CONTRIBUTING_CN.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# 贡献指南
2+
3+
感谢您对参与 `smart-doc` 贡献的兴趣!详细的贡献指引请参考我们的官方 [**贡献指南文档**](https://smart-doc-group.github.io/zh/guide/community/contributing)
4+
5+
## 核心要求
6+
提交 Pull Request (PR) 前请确保:
7+
- 📌 **新功能需先讨论**:通过 [Issue](https://github.com/smart-doc-group/smart-doc/issues) 与社区对齐需求,避免重复劳动。
8+
- 🧩 **单焦点 PR**:每次提交仅包含一个修复或功能,简化代码审查。
9+
- 🌍 **英文注释**:代码注释使用英文,支持国际化协作。
10+
-**代码质量**:遵循 [Spring Java Format](https://github.com/spring-io/java-format) 风格,添加单元测试。
11+
- 📄 **文档同步更新**:若涉及功能变更,请同步更新 [`smart-doc-group.github.io`](https://github.com/smart-doc-group/smart-doc-group.github.io/tree/master/docs) 文档。
12+
13+
## 文档与示例要求
14+
若贡献包含以下内容:
15+
- 🛠️ **配置项变更**
16+
- 检查 PR 是否新增/修改配置(如新增参数、修改默认值)。
17+
- 在 [`smart-doc-group.github.io`](https://github.com/smart-doc-group/smart-doc-group.github.io/tree/master/docs) 中补充或更新对应文档。
18+
- 📚 **新功能实现**
19+
- 在 [`smart-doc-example-cn`](https://github.com/smart-doc-group/smart-doc-example-cn) 仓库提供使用示例,便于其他用户快速理解。
20+
21+
## 贡献步骤
22+
1. Fork 仓库并本地克隆。
23+
2. 创建新分支进行修改。
24+
3. 使用 `smart-doc` 测试改动(参考 [快速入门](https://smart-doc-group.github.io/zh/guide/getting-started))。
25+
4. 执行 `mvn spring-javaformat:apply` 格式化代码。
26+
5. 向主仓库提交 PR。
27+
28+
## 社区互动
29+
- 📰 在 [Discussions](https://github.com/smart-doc-group/smart-doc/discussions) 分享使用案例或技术文章。
30+
- ❓ 在 `Help` 分类帮助解答用户疑问。
31+
- 💡 在 `Ideas``Show and tell` 提出建议或展示相关工具。
32+
33+
您的贡献将帮助 `smart-doc` 更好地服务全球开发者!感谢支持!

0 commit comments

Comments
 (0)