generated from stac-extensions/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
160 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Contributing | ||
|
||
All contributions are subject to the | ||
[STAC Specification Code of Conduct](https://github.com/radiantearth/stac-spec/blob/master/CODE_OF_CONDUCT.md). | ||
For contributions, please follow the | ||
[STAC specification contributing guide](https://github.com/radiantearth/stac-spec/blob/master/CONTRIBUTING.md) Instructions | ||
for running tests are copied here for convenience. | ||
|
||
## Running tests | ||
|
||
The same checks that run as checks on PR's are part of the repository and can be run locally to verify that changes are valid. | ||
To run tests locally, you'll need `npm`, which is a standard part of any [node.js installation](https://nodejs.org/en/download/). | ||
|
||
First you'll need to install everything with npm once. Just navigate to the root of this repository and on | ||
your command line run: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
Then to check markdown formatting and test the examples against the JSON schema, you can run: | ||
|
||
```bash | ||
npm test | ||
``` | ||
|
||
This will spit out the same texts that you see online, and you can then go and fix your markdown or examples. | ||
|
||
If the tests reveal formatting problems with the examples, you can fix them with: | ||
|
||
```bash | ||
npm run format-examples | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.