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: README.md
+25-11Lines changed: 25 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ pip install uv
64
64
65
65
### Getting Started
66
66
67
-
Note that the following commands assume you are in the project root directory, and the equivalent **`just`** commands may be substituted for **`make`** (namely `just test` instead of `make test`)
67
+
Note that the following commands assume you are in the project root directory, and the equivalent **`just`** commands may be substituted for several**`make`** targets (namely `just test` instead of `make test`)
68
68
69
69
1.**Install dependencies:**
70
70
```bash
@@ -73,38 +73,49 @@ Note that the following commands assume you are in the project root directory, a
73
73
74
74
2.**Run tests:**
75
75
```bash
76
-
make test
76
+
make test# or just test
77
77
```
78
78
79
79
3.**Generate documentation:**
80
80
```bash
81
81
make gendoc
82
82
```
83
83
84
-
4.**Create a new RIG:**
85
-
```bash
86
-
make new-rig INFORES=infores:example NAME="Example Data Source"
87
-
```
88
-
89
84
### Working with RIGs
90
85
91
86
#### Creating a New RIG
92
87
93
88
```bash
94
89
# Create a new RIG from the template
95
-
make new-rig INFORES=infores:mydatasource NAME="My Data Source RIG"
90
+
make new-rig INFORES=infores:example NAME="Example Data Source"
96
91
97
92
# This creates src/docs/rigs/mydatasource_rig.yaml
98
93
# Edit the file to fill in your specific information
99
94
```
100
95
96
+
or using the equivalent **`just`** command:
97
+
98
+
```bash
99
+
just INFORES=infores:example NAME="Example Data Source" new-rig
100
+
```
101
+
102
+
Note that for the **`just`** command, the script variables must precede the just recipe ("target") name on the command line (reverse of the make command).
103
+
101
104
#### Validating RIGs
102
105
103
106
```bash
104
107
# Validate all RIG files against the schema
105
-
make validate-rigs
108
+
make validate-rigs
109
+
```
110
+
111
+
or
112
+
113
+
```bash
114
+
just validate-rigs
115
+
```
116
+
To validate a specific RIG:
106
117
107
-
# Validate a specific RIG
118
+
```bash
108
119
uv run linkml-validate --schema src/resource_ingest_guide_schema/schema/resource_ingest_guide_schema.yaml src/docs/rigs/my_rig.yaml
109
120
```
110
121
@@ -139,10 +150,11 @@ make lint
139
150
140
151
Python utilities are in `src/scripts/`:
141
152
-`create_rig.py`: Generate new RIG from template
142
-
-`rig_to_markdown.py`: Convert RIG YAML to markdown
153
+
-`rig_to_markdown.py`: Convert RIG YAML to Markdown
143
154
-`generate_rig_index.py`: Create RIG index table
144
155
145
156
To test script changes:
157
+
146
158
```bash
147
159
# Run scripts directly
148
160
uv run python src/scripts/create_rig.py --help
@@ -163,6 +175,8 @@ make serve # or make testdoc
163
175
164
176
### Available Commands
165
177
178
+
Note: some **`make`** targets (like **`new-rig`** and **`validate-rigs`**) have **`just`** command equivalents (remember instead to put the just recipe target name _after_ any command line arguments)
0 commit comments