-
Notifications
You must be signed in to change notification settings - Fork 90
Contributing Project Data
The process to contribute new data or update existing data to opensource.newrelic.com
is the same.
-
Fork
this repository. - Add/update the two project metadata files (described below) to your forked
opensource-website
repository. - Submit a
Pull Request
back to this project containing your new or updated files. - If/when your
PR
is accepted, the automation in this project will populate a related file in thesrc/data/project-stats
directory, build the site, and deploy a new version of the code (including your project's new data) toopensource.newrelic.com
.
To add your project to opensource.newrelic.com
, you must include the following two metadata files. To accept and merge a PR, we check that these files are present, and if you're submitting an update, that at least one of these files has been changed.
The JSON file contains the base information about the project detail pages, as well as the project search/exploration page.
File format: src/data/projects/[GITHUB_ORG_NAME]-[GITHUB_REPO_NAME].json
Example: src/data/projects/newrelic-nr1-github.json
Template: examples/projects.json
The Project metadata file contains a projectTags
field that must match the available Project Tags located in src/data/project-tags/project-tags.json. Also, don't include your project language
as a tag; filtering on languages isn't meant to be facilitated by the projectTags
field. If your project should warrant a new tag
, please include an update to src/data/project-tags/project-tags.json in your Pull Request.
This MDX file contains the markdown and optional React components that populate the left-hand column of a project detail page.
File format: src/data/project-main-content/[GITHUB_ORG_NAME]-[GITHUB_REPO_NAME].mdx
Example: src/data/project-main-content/newrelic-nr1-github.mdx
Template: examples/project-main-content.mdx