Skip to content

Commit 9418bc9

Browse files
authored
Add contribution guidelines (nrfconnect#10)
1 parent 1f94152 commit 9418bc9

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

.github/CONTRIBUTING

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Contribution Guidelines
2+
3+
If you or your organization has a project that you'd like to include in the nRF Connect SDK App Index, you can do so by opening a pull request against this repository.
4+
5+
Inside your pull request, create a JSON file named after your GitHub account in the `index` directory (e.g. `index/nrfconnect.json`). Include information about your account or organization, then add an entry for each app you want to be shown in the index to the `apps` array. The `name` field of each app must match a GitHub repository in your account.
6+
7+
If you use Visual Studio Code, the editor will automatically provide validation and autocompletion for the index file. If you are using another editor, you can use the JSON schema located at `resources/schema.json` to validate your file. Make sure that your file correctly follows the schema before creating your pull request, otherwise the CI pipeline will fail.
8+
9+
Make sure that your pull request only adds a new JSON file to the `index` directory, or amends your existing file. Pull requests that make other changes to the repository will be rejected.
10+
11+
Once your pull request is approved and merged, the app index will be rebuilt and republished automatically.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
An index of applications built for the nRF Connect SDK.
44

5-
## App Index
5+
## Contributing
66

7-
The app index is a JSON file containing organizations and their applications, generated from the contents of the `index` folder. Each JSON file in the folder should be named after the organization's GitHub username (e.g. `nrfconnect.json`), and contain metadata about the organization and its applications according to the schema in `resources/schema.json`.
7+
If you or your organization has a project that you'd like to include in the nRF Connect SDK App Index, you can open a pull request against this repository. See the details shown in the [`CONTRIBUTING`](.github/CONTRIBUTING) file for more information.
8+
9+
## Development
810

911
To build the index file, run `npm run generate-index-json` from the root directory.
1012

11-
## Website
13+
### Website
1214

1315
This repository includes a static website that displays the contributed applications in a searchable frontend. It's developed using the [Next.js](https://nextjs.org/) React framework, and uses [Tailwind](https://tailwindcss.com/) for styling.
1416

15-
### Development
16-
1717
To launch a live server development server, run `npm run dev` inside the `site` directory. By default, the site runs on port 4000, but this can be overridden by setting the `PORT` environment variable.
1818

1919
Application data is read at build time. For development purposes, sample data can be imported from `sampleData.ts`.
2020

21-
### Building
21+
#### Building
2222

2323
To build the website, run the following commands:
2424

@@ -27,6 +27,6 @@ To build the website, run the following commands:
2727

2828
This will create an optimised static build in the `/site/out` directory.
2929

30-
## Schemas
30+
### Schemas
3131

3232
JSON schemas are provided to enforce the shape of the data in the index. They are located in the `resources` directory. To edit the schemas, make any changes in `site/src/schema.ts` and run `npm run generate-schemas` from the root directory.

0 commit comments

Comments
 (0)