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
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,14 @@ To check for broken links, run the following command:
99
99
npm run test:links
100
100
```
101
101
102
+
### Generate collection metadata reference
103
+
104
+
To generate collection metadata reference, run the following command:
105
+
106
+
```sh
107
+
npm run generate-metadata-reference
108
+
```
109
+
102
110
## Deployment
103
111
104
112
The `main` branch is used on production and automatically deployed through GitHub pages. Refer to the configuration file `.github/workflows/gh-pages.yml`.
Copy file name to clipboardExpand all lines: content/collections/reference/metadata.md
+36-14Lines changed: 36 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,10 @@ This reference documentation details all available metadata fields that can be s
10
10
11
11
The examples given throughout this reference can be seen in context in the [complete metadata file](https://github.com/OpenTermsArchive/demo-declarations/blob/main/metadata.yml) and rendered in the [collection page](https://opentermsarchive.org/en/collections/demo/) of the Demo collection.
12
12
13
-
13
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THE FOLLOWING SECTION MANUALLY -->
14
14
## Fields
15
15
16
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
16
17
{{< refItem
17
18
name="id"
18
19
type="string"
@@ -21,6 +22,7 @@ The examples given throughout this reference can be seen in context in the [comp
21
22
required=true
22
23
/>}}
23
24
25
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
24
26
{{< refItem
25
27
name="name"
26
28
type="string"
@@ -29,14 +31,16 @@ The examples given throughout this reference can be seen in context in the [comp
29
31
required=true
30
32
/>}}
31
33
34
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
32
35
{{< refItem
33
36
name="tagline"
34
37
type="string"
35
38
description="Concise description of collection topic."
36
-
example="Services used by OpenTermsArchive"
39
+
example="Services used by OpenTermsArchive"
37
40
required=true
38
41
/>}}
39
42
43
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
40
44
{{< refItem
41
45
name="languages"
42
46
type="array of strings"
@@ -45,6 +49,7 @@ The examples given throughout this reference can be seen in context in the [comp
45
49
required=true
46
50
/>}}
47
51
52
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
48
53
{{< refItem
49
54
name="jurisdictions"
50
55
type="array of strings"
@@ -53,21 +58,22 @@ The examples given throughout this reference can be seen in context in the [comp
53
58
required=true
54
59
/>}}
55
60
61
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
56
62
{{< refItem
57
63
name="description"
58
64
type="string"
59
65
description="Detailed description of the collection"
60
66
required=false
61
67
>}}
62
-
63
68
```yaml
64
-
description: >
65
-
The **Demo** collection tracks changes to the terms of use of services used by Open Terms Archive.
69
+
The **Demo** collection tracks changes to the terms of use of services used by Open Terms Archive.
70
+
71
+
This provides a reference collection for best practices and enables the Open Terms Archive Core Team to be a user of the software it produces.
66
72
67
-
This provides a reference collection for best practices and enables the Open Terms Archive Core Team to be a user of the software it produces.
68
73
```
69
74
{{< /refItem >}}
70
75
76
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
71
77
{{< refItem
72
78
name="dataset"
73
79
type="uri"
@@ -76,6 +82,7 @@ description: >
76
82
required=false
77
83
/>}}
78
84
85
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
79
86
{{< refItem
80
87
name="declarations"
81
88
type="uri"
@@ -84,6 +91,7 @@ description: >
84
91
required=false
85
92
/>}}
86
93
94
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
87
95
{{< refItem
88
96
name="versions"
89
97
type="uri"
@@ -92,6 +100,7 @@ description: >
92
100
required=false
93
101
/>}}
94
102
103
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
95
104
{{< refItem
96
105
name="snapshots"
97
106
type="uri"
@@ -100,6 +109,7 @@ description: >
100
109
required=false
101
110
/>}}
102
111
112
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
103
113
{{< refItem
104
114
name="donations"
105
115
type="uri"
@@ -108,6 +118,7 @@ description: >
108
118
required=false
109
119
/>}}
110
120
121
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
111
122
{{< refItem
112
123
name="logo"
113
124
type="uri"
@@ -116,20 +127,23 @@ description: >
116
127
required=false
117
128
/>}}
118
129
130
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
119
131
{{< refItem
120
132
name="trackingPeriods"
121
133
type="array of objects"
122
134
description="List of time periods during which terms were tracked, with their tracking configuration. Gaps between periods indicate times when tracking was interrupted. See [TrackingPeriods]({{< relref \"#trackingperiods\" >}}) section."
123
135
required=false
124
136
/>}}
125
137
138
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
126
139
{{< refItem
127
140
name="governance"
128
141
type="object of objects"
129
142
description="Map of organizations involved in the collection's governance, with organization names as keys and governance objects as values. See [Governance]({{< relref \"#governance\" >}}) section."
130
143
required=false
131
144
/>}}
132
145
146
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
133
147
{{< refItem
134
148
name="i18n"
135
149
type="object of objects"
@@ -138,19 +152,21 @@ description: >
138
152
>}}
139
153
```yaml
140
154
fr:
141
-
name: Démo
142
-
tagline: Services utilisés par Open Terms Archive
143
-
governance:
155
+
name: Démo
156
+
tagline: Services utilisés par Open Terms Archive
157
+
governance:
144
158
Ministry for Europe and Foreign Affairs:
145
-
name: Ministère de l'Europe et des Affaires étrangères
146
-
url: https://www.diplomatie.gouv.fr
159
+
name: Ministère de l'Europe et des Affaires étrangères
160
+
url: https://www.diplomatie.gouv.fr
161
+
147
162
```
148
163
{{< /refItem >}}
149
164
150
165
---
151
166
152
167
### TrackingPeriods
153
168
169
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
154
170
{{< refItem
155
171
name="startDate"
156
172
type="date"
@@ -159,6 +175,7 @@ fr:
159
175
required=true
160
176
/>}}
161
177
178
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
162
179
{{< refItem
163
180
name="schedule"
164
181
type="cron-expression"
@@ -167,6 +184,7 @@ fr:
167
184
required=true
168
185
/>}}
169
186
187
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
170
188
{{< refItem
171
189
name="serverLocation"
172
190
type="string"
@@ -175,6 +193,7 @@ fr:
175
193
required=true
176
194
/>}}
177
195
196
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
178
197
{{< refItem
179
198
name="endDate"
180
199
type="date"
@@ -188,6 +207,7 @@ fr:
188
207
189
208
### Governance
190
209
210
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
191
211
{{< refItem
192
212
name="url"
193
213
type="uri"
@@ -196,6 +216,7 @@ fr:
196
216
required=false
197
217
/>}}
198
218
219
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
199
220
{{< refItem
200
221
name="logo"
201
222
type="uri"
@@ -204,11 +225,12 @@ fr:
204
225
required=false
205
226
/>}}
206
227
228
+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
207
229
{{< refItem
208
230
name="roles"
209
231
type="array of strings"
210
-
description="Roles of the entity within the governance, see [collection governance](https://docs.opentermsarchive.org/collections/reference/roles/)"
description="Roles of the entity within the governance, see [collection governance](https://docs.opentermsarchive.org/collections/reference/governance/)"
0 commit comments