This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch build-community
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git


The following commit(s) were added to refs/heads/build-community by this push:
     new 0cbbe202 docs: add development.md
0cbbe202 is described below

commit 0cbbe202a809c9c258a25051c97f56293e0383b5
Author: shuai <[email protected]>
AuthorDate: Thu Nov 16 15:44:57 2023 +0800

    docs: add development.md
---
 community/contributing/contributing.md | 27 ---------------------------
 community/contributing/development.md  | 26 ++++++++++++++++++++++++++
 sidebarsCommunity.js                   |  1 +
 3 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/community/contributing/contributing.md 
b/community/contributing/contributing.md
index 7acfc315..0066cfd1 100644
--- a/community/contributing/contributing.md
+++ b/community/contributing/contributing.md
@@ -25,30 +25,3 @@ Contributions are very welcome. If you think you need help 
planning your contrib
 ### Creating an Issue
 
 - Feel free to ask your questions if you have any.
-
-## Development
-
-### Backend
-
-#### Installation
-
-#### Code Conventions
-
-### Frontend
-
-#### Installation
-
-1. Ensure you have [node](https://nodejs.org/en) and 
[pnpm](https://pnpm.io/installation) installed.
-2. After cloning the repository, run the following command. This will install 
all dependencies as well as build all local packages.
-```
-cd ./ui
-pnpm install
-```
-3. To start a development server, run `pnpm start`. now, your browser should 
already open automatically, and autoload `http://localhost:3000`. you can also 
manually visit it.
-4. To switch API, you can modify the `ui/.env.development` file and then 
re-run pnpm start. If you're just using it yourself, we recommend creating a 
`.env.development.local` file that defines the address of the api you're going 
to use.
-
-#### Code Conventions
-
-- **Most important: Look around.** Match the style you see used in the rest of 
the project. This includes formatting, naming files, naming things in code, 
naming things in documentation, etc.
-- We do have Prettier (a formatter) and ESLint (a syntax linter) to catch most 
stylistic problems. If you are working locally, you can run  `pnpm lint` and 
`pnpm prettier` to fix most code formatting.
-- **No runtime errors** Before submitting the code, please ensure that there 
will be no errors when running locally. This will greatly reduce the workload 
of review.
diff --git a/community/contributing/development.md 
b/community/contributing/development.md
new file mode 100644
index 00000000..0bf10c58
--- /dev/null
+++ b/community/contributing/development.md
@@ -0,0 +1,26 @@
+## Development
+
+### Backend
+
+#### Installation
+
+#### Code Conventions
+
+### Frontend
+
+#### Installation
+
+1. Ensure you have [node](https://nodejs.org/en) and 
[pnpm](https://pnpm.io/installation) installed.
+2. After cloning the repository, run the following command. This will install 
all dependencies as well as build all local packages.
+```
+cd ./ui
+pnpm install
+```
+3. To start a development server, run `pnpm start`. now, your browser should 
already open automatically, and autoload `http://localhost:3000`. you can also 
manually visit it.
+4. To switch API, you can modify the `ui/.env.development` file and then 
re-run pnpm start. If you're just using it yourself, we recommend creating a 
`.env.development.local` file that defines the address of the api you're going 
to use.
+
+#### Code Conventions
+
+- **Most important: Look around.** Match the style you see used in the rest of 
the project. This includes formatting, naming files, naming things in code, 
naming things in documentation, etc.
+- We do have Prettier (a formatter) and ESLint (a syntax linter) to catch most 
stylistic problems. If you are working locally, you can run  `pnpm lint` and 
`pnpm prettier` to fix most code formatting.
+- **No runtime errors** Before submitting the code, please ensure that there 
will be no errors when running locally. This will greatly reduce the workload 
of review.
diff --git a/sidebarsCommunity.js b/sidebarsCommunity.js
index 8454d9f8..70ff500c 100644
--- a/sidebarsCommunity.js
+++ b/sidebarsCommunity.js
@@ -18,6 +18,7 @@ module.exports = {
           items: [
             'contributing/backend',
             'contributing/frontend',
+            'contributing/development',
           ],
         },
         'contributing/pull-request',

Reply via email to