> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Contribution Guide

> Learn how to contribute to the YiDA Developer Center documentation by submitting issues for feedback or editing documents through Pull Requests.

This guide walks you through how to contribute to the **YiDA Developer Center**. There are two ways to contribute: Issues and Pull Requests.

## Issues

We use [GitHub Issues](https://github.com/dingtalk-yida/developer-site/issues) to track documentation problems in the Developer Center. If you find any issue in the documentation, submit an issue using the template below. We review submissions regularly and update the documentation accordingly:

```
- Document link: https://yida-developer.gitee.io/docs/api/yidaAPI
- Description: The description of this.setState() is incorrect—setState does not support a callback function.
- Suggested fix: Remove the callback usage from the setState API.
```

Before reporting an issue, search existing issues first to avoid duplicates.

## Pull Request

We recommend contributing through Pull Requests to help improve the YiDA Developer Center. Click the **Edit this page** button at the bottom of any document to get started. The steps are as follows:

* Click **Edit this page** to open the GitHub page (sign up for a GitHub account if you do not have one).

* Fork the Developer Center repository into your personal GitHub space (this is a one-time action; subsequent edits skip this step):

* Go to the document editing page, make your changes, and commit them:

* Confirm the changes and submit the Pull Request:

That completes a simple Pull Request submission. The YiDA team monitors all Pull Requests. We review and merge your changes, or we may ask you to revise them or explain why a change cannot be accepted. We release a patch version from the master branch every week.

<Tip>
  You can also fork the Developer Center repository to your local environment, edit the documents locally, and submit a Pull Request. If you are new to submitting Pull Requests on GitHub, refer to the following article:

  [How to Contribute Code on GitHub Elegantly](https://segmentfault.com/a/1190000000736629)

  Our main branch is master, so submit Pull Requests to master.
</Tip>

<Tip>
  When submitting new documentation content, briefly describe the background and use case in your Pull Request so that we can review and add it efficiently.
</Tip>

## Local Development Workflow

The YiDA Developer Center is built with [Docusaurus 2](https://docusaurus.io/). After you clone the Developer Center repository and install the dependencies with npm install, you can run the following common commands:

### Start Locally

```
$ npm start
```

Once started, access the site locally at `http://localhost:3000/`.

> P.S.: Global search is not available in local development mode.

### Build

```
$ npm run build
```

The build output is written to the build directory.

### Preview the Production Build Locally

```
$ npm run serve
```

Run this command only after `npm run build` completes. It starts a local static server based on the build directory, accessible at `http://localhost:3000/`. The behavior is identical to Production and supports global search.
