Skip to content

Commit dfc9b1e

Browse files
authored
Update metadata reference (#201)
2 parents 15ee83c + 6a74981 commit dfc9b1e

File tree

7 files changed

+4108
-5833
lines changed

7 files changed

+4108
-5833
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ To check for broken links, run the following command:
9999
npm run test:links
100100
```
101101

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+
102110
## Deployment
103111

104112
The `main` branch is used on production and automatically deployed through GitHub pages. Refer to the configuration file `.github/workflows/gh-pages.yml`.

content/collections/reference/metadata.md

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ This reference documentation details all available metadata fields that can be s
1010

1111
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.
1212

13-
13+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THE FOLLOWING SECTION MANUALLY -->
1414
## Fields
1515

16+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
1617
{{< refItem
1718
name="id"
1819
type="string"
@@ -21,6 +22,7 @@ The examples given throughout this reference can be seen in context in the [comp
2122
required=true
2223
/>}}
2324

25+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
2426
{{< refItem
2527
name="name"
2628
type="string"
@@ -29,14 +31,16 @@ The examples given throughout this reference can be seen in context in the [comp
2931
required=true
3032
/>}}
3133

34+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
3235
{{< refItem
3336
name="tagline"
3437
type="string"
3538
description="Concise description of collection topic."
36-
example="Services used by Open Terms Archive"
39+
example="Services used by Open Terms Archive"
3740
required=true
3841
/>}}
3942

43+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
4044
{{< refItem
4145
name="languages"
4246
type="array of strings"
@@ -45,6 +49,7 @@ The examples given throughout this reference can be seen in context in the [comp
4549
required=true
4650
/>}}
4751

52+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
4853
{{< refItem
4954
name="jurisdictions"
5055
type="array of strings"
@@ -53,21 +58,22 @@ The examples given throughout this reference can be seen in context in the [comp
5358
required=true
5459
/>}}
5560

61+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
5662
{{< refItem
5763
name="description"
5864
type="string"
5965
description="Detailed description of the collection"
6066
required=false
6167
>}}
62-
6368
```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.
6672

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.
6873
```
6974
{{< /refItem >}}
7075

76+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
7177
{{< refItem
7278
name="dataset"
7379
type="uri"
@@ -76,6 +82,7 @@ description: >
7682
required=false
7783
/>}}
7884

85+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
7986
{{< refItem
8087
name="declarations"
8188
type="uri"
@@ -84,6 +91,7 @@ description: >
8491
required=false
8592
/>}}
8693

94+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
8795
{{< refItem
8896
name="versions"
8997
type="uri"
@@ -92,6 +100,7 @@ description: >
92100
required=false
93101
/>}}
94102

103+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
95104
{{< refItem
96105
name="snapshots"
97106
type="uri"
@@ -100,6 +109,7 @@ description: >
100109
required=false
101110
/>}}
102111

112+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
103113
{{< refItem
104114
name="donations"
105115
type="uri"
@@ -108,6 +118,7 @@ description: >
108118
required=false
109119
/>}}
110120

121+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
111122
{{< refItem
112123
name="logo"
113124
type="uri"
@@ -116,20 +127,23 @@ description: >
116127
required=false
117128
/>}}
118129

130+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
119131
{{< refItem
120132
name="trackingPeriods"
121133
type="array of objects"
122134
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."
123135
required=false
124136
/>}}
125137

138+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
126139
{{< refItem
127140
name="governance"
128141
type="object of objects"
129142
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."
130143
required=false
131144
/>}}
132145

146+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
133147
{{< refItem
134148
name="i18n"
135149
type="object of objects"
@@ -138,19 +152,21 @@ description: >
138152
>}}
139153
```yaml
140154
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:
144158
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+
147162
```
148163
{{< /refItem >}}
149164

150165
---
151166

152167
### TrackingPeriods
153168

169+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
154170
{{< refItem
155171
name="startDate"
156172
type="date"
@@ -159,6 +175,7 @@ fr:
159175
required=true
160176
/>}}
161177

178+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
162179
{{< refItem
163180
name="schedule"
164181
type="cron-expression"
@@ -167,6 +184,7 @@ fr:
167184
required=true
168185
/>}}
169186

187+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
170188
{{< refItem
171189
name="serverLocation"
172190
type="string"
@@ -175,6 +193,7 @@ fr:
175193
required=true
176194
/>}}
177195

196+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
178197
{{< refItem
179198
name="endDate"
180199
type="date"
@@ -188,6 +207,7 @@ fr:
188207

189208
### Governance
190209

210+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
191211
{{< refItem
192212
name="url"
193213
type="uri"
@@ -196,6 +216,7 @@ fr:
196216
required=false
197217
/>}}
198218

219+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
199220
{{< refItem
200221
name="logo"
201222
type="uri"
@@ -204,11 +225,12 @@ fr:
204225
required=false
205226
/>}}
206227

228+
<!-- GENERATED DOCUMENTATION DO NOT EDIT THIS MANUALLY -->
207229
{{< refItem
208230
name="roles"
209231
type="array of strings"
210-
description="Roles of the entity within the governance, see [collection governance](https://docs.opentermsarchive.org/collections/reference/roles/)"
211-
allowedValues="host, administrator, curator, maintainer, sponsor"
212-
example="[host, administrator]"
232+
description="Roles of the entity within the governance, see [collection governance](https://docs.opentermsarchive.org/collections/reference/governance/)"
233+
allowedValues="`host`, `sysadmin`, `curator`, `maintainer`, `contributor`, `analyst`, `diffuser`, `sponsor`"
234+
example="[host, sysadmin]"
213235
required=true
214236
/>}}

0 commit comments

Comments
 (0)