Skip to content

Contributing

508364 edited this page Jun 7, 2026 · 3 revisions

贡献指南 | Contributing

欢迎贡献 NetLeaf!


目录 | Table of Contents


代码规范 | Coding Standards

C 语言风格

  • 使用 4 空格缩进
  • 大括号不换行
  • 函数名使用小写加下划线
  • 宏定义使用全大写加下划线
  • 私有函数前缀 nl_
void nl_some_function(void) {
    if (condition) {
        do_something();
    }
}

提交规范 | Commit Guidelines

使用 Conventional Commits 格式:

<type>(<scope>): <subject>

<description>

**Type:

  • feat: 新功能
  • fix: 修复
  • docs: 文档
  • style: 格式
  • refactor: 重构
  • test: 测试
  • chore: 构建/工具

开发流程 | Development Workflow

  1. Fork 项目
  2. 创建特性分支 (git checkout -b feature/amazing-feature)
  3. 提交更改 (git commit -m 'feat: add some amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 开启 Pull Request

返回主页

导航 | Navigation

快速链接 | Quick Links

开发参考 | Development

附加模块 | Modules

  • Auto-complete - 自动补全charset和Vue引入
  • Auto-route - 自动路由建议
  • ErrorPage - 自定义错误页面模板
  • IPC - 进程间通讯服务
  • LinkAgg - 同端口链路聚合
  • Lang - 多语言错误消息
  • Vue - Vue.js后端支持
  • Extension - 扩展库开发指南
  • TLS - TLS/SSL 加密扩展
  • MQTT - MQTT v5.0 协议客户端
  • MQTT-Server - MQTT v5.0 协议服务端(Broker)

关于 | About

作者: 508364

版本: 2.4.2

许可: MIT License


外部链接 | External Links

Clone this wiki locally