You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,10 @@ By making any contribution to the projects, contributors self-certify to the [Co
34
34
35
35
1.[Create a branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository) to work on a new issue (or checkout an existing one where the issue is being worked on).
36
36
2. Make your changes.
37
-
3. Run `/tests/test_all` script to check and fix formatting, validate schemas, and build documentation locally to preview
38
-
4.[Commit](#commits) your work in `git`
39
-
5.`push` your changes to Github and submit a [`pull request`](#pull-requests)
37
+
3. Run `tests/test_local_spec` script to check and fix formatting, validate profile and schemas with frictionless and with each other, and confirm that documentation can be built locally.
38
+
4. Run `tests/test_samples_to_local` script to check if samples conform to any changes to the spec.
39
+
5.[Commit](#commits) your work in `git`
40
+
6.`push` your changes to Github and submit a [`pull request`](#pull-requests)
40
41
41
42
### Issues
42
43
@@ -106,7 +107,7 @@ When a change is pushed to the TIDES specification repository, Github Actions de
106
107
| **Name** | **What it does** |
107
108
| -------- | ----------------- |
108
109
| GitHub Actions | Runs following workflow on each push to the TIDES github repository: /.github/workflows/docs.yml |
109
-
| mike | runs mkdocs and puts output in a folder in gh_pages branch which corresponds to the name of the branch (i.e. main, develop, pr-163, etc) <br> For new branches with documentation, adds an entry in `versions.json` |
110
+
| mike | runs mkdocs and puts output in a folder in gh_pages branch which corresponds to the name of the branch (i.e. main, develop, pr-163, etc) <br> For new branches with documentation, adds an entry in `versions.json` |
110
111
| `mkdocs` | Package which generates documentation from markdown and code |
111
112
112
113
??? info "Overview of Documentation Building Process"
@@ -117,7 +118,7 @@ When a change is pushed to the TIDES specification repository, Github Actions de
117
118
subgraph mkdocs["<b>mkdocs:</b> run on execution of mike"]
118
119
md_mike["mike"] -->|runs for current branch| md_mkdocs["mkdocs"]
Directories with TIDES data must contain metadata in a [`datapackage.json`](https://tides-transit.github.io/TIDES/main/datapackage) file in a format compliant with the [`tides-datapackage-profile`](https://tides-transit.github.io/TIDES/main/datapackage) of a [`frictionless data package`](https://specs.frictionlessdata.io/data-package/).
18
+
19
+
[`/samples/template/datapackage.json`](https://raw.githubusercontent.com/TIDES-transit/TIDES/main/samples/template/datapackage.json) has a template datapackage which can be used.
20
+
21
+
## Sample Data
22
+
23
+
[Sample data](https://tides-transit.github.io/TIDES/main/samples) can be found in the `/samples` directory, with one directory for each sample.
24
+
25
+
### Template
26
+
27
+
Templates of `datapackage.json` and each TIDES file type are located in the `/samples/template` directory.
28
+
29
+
## Validating TIDES data
30
+
31
+
TIDES data with a valid [`datapackage.json`](#data-package) can be easily validated using the [frictionless framework](https://framework.frictionlessdata.io/), which can be installed and invoked as follows:
Several other validation scripts and tools with more flexibility such as validating to the canonical, named version or a local spec can be found in the `/bin` directory, with usage available with the `--help` flag.
<dataset_path> The path to the dataset directory containing the 'datapackage.json' file.
10
+
<spec_path_prefix> The path or URL to the spec to be referenced in the updated data package.
11
+
[output_file] (Optional) The path to save the temporary data package. If not provided, the temporary data package will be saved as 'datapackage.tmp.json' in the dataset directory.
0 commit comments