Skip to content

Commit b3be850

Browse files
authored
Improve Collections documentation
#111
2 parents 5d28d1f + f6fd988 commit b3be850

File tree

5 files changed

+128
-57
lines changed

5 files changed

+128
-57
lines changed

content/api/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
title: API
3-
weight: 7
3+
weight: 6
44
---

content/collections/create.en.md

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
11
---
22
title: Creating a collection
3+
weight: 3
34
---
45

56
# Creating a collection
67

7-
## Define the necessary metadata
8+
## Define metadata
89

9-
First of all, define the [metadata]({{< relref "collections/metadata" >}}) and [governance]({{< relref "collections/governance" >}}) of the collection.
10+
First of all, define the [metadata]({{< relref "collections/metadata" >}}) of the collection you would like to create.
11+
12+
## Define governance
13+
14+
Setting up and maintaining a collection over time needs fulfilling certain tasks on a regular basis. These tasks are handled through roles. To make sure that all these roles are covered, define the [governance]({{< relref "collections/governance" >}}) of your collection.
15+
16+
At any time, feel free to ask for help or partners in the community.
1017

1118
## Create repositories
1219

20+
Collections rely on three git repositories being set up to hold the data.
21+
22+
The instructions below assume the usage of GitHub to host repositories. If you don't use GitHub, try to set up the equivalent metadata in your git hosting platform. Contributions to the documentation to make it independent from GitHub are very welcome!
23+
1324
### Declarations
1425

15-
Create the collection declarations repository by using the [`demo-declarations`](https://github.com/OpenTermsArchive/demo-declarations) repository as template:
26+
Create the collection declarations repository by using the [`demo-declarations`](https://github.com/OpenTermsArchive/demo-declarations) repository as template.
1627

1728
- Go to the [`demo-declarations` repository](https://github.com/OpenTermsArchive/demo-declarations)
1829
- Click on the “Use this template” dropdown and select “Create a new repository”
@@ -31,26 +42,19 @@ Create the collection declarations repository by using the [`demo-declarations`]
3142

3243
These settings ease the whole contribution process.
3344

34-
In “General → Features”:
35-
36-
- Disable “Wikis”.
37-
- Disable “Projects”.
38-
39-
In “General → Pull Requests”:
40-
41-
- Check only the “Allow squash merging” option, and set it to “Default to pull request title and commit details”.
42-
- Enable “Allow auto-merge”.
43-
- Enable “Automatically delete head branches”.
44-
45-
In “Branches”:
46-
47-
- Add a branch protection rule for `main`.
48-
- Check “Require a pull request before merging”, check "Require approvals" and set “Required number of approvals before merging” to 1.
49-
- Check “Require status checks to pass before merging” and add `validate_modified_declarations` and `validate_schema` as required status checks.
50-
51-
In “Actions → General → Actions permissions”:
52-
53-
- Select “Allow all actions and reusable workflows”.
45+
- In “General → Features”
46+
- Disable “Wikis”.
47+
- Disable “Projects”.
48+
- In “General → Pull Requests”
49+
- Check only the “Allow squash merging” option, and set it to “Default to pull request title and commit details”.
50+
- Enable “Allow auto-merge”.
51+
- Enable “Automatically delete head branches”.
52+
- In “Branches”
53+
- Add a branch protection rule for `main`.
54+
- Check “Require a pull request before merging”, check "Require approvals" and set “Required number of approvals before merging” to 1.
55+
- Check “Require status checks to pass before merging” and add `validate_modified_declarations` and `validate_schema` as required status checks.
56+
- In “Actions → General → Actions permissions”
57+
- Select “Allow all actions and reusable workflows”.
5458

5559
#### Remove default labels
5660

@@ -82,13 +86,13 @@ Create the snapshots repository by using the [`demo-snapshots` repository](https
8286

8387
These settings aim at minimising the otherwise overwhelming amount of information and click targets.
8488

85-
In “General → Features”:
86-
87-
- Uncheck “Wikis”, “Issues”, “Discussions” and “Projects”.
88-
89-
In “Actions → General → Actions permissions”:
90-
91-
- Select “Disable actions”.
89+
- In “General → Features”
90+
- Uncheck “Wikis”.
91+
- Uncheck “Issues”.
92+
- Uncheck “Discussions”.
93+
- Uncheck “Projects”.
94+
- In “Actions → General → Actions permissions”
95+
- Select “Disable actions”.
9296

9397
### Versions
9498

@@ -104,19 +108,20 @@ Create the versions repository by using the [`demo-versions` repository](https:/
104108
- Set the description: “Terms versions for `<collection_name>`. Maintained by `<maintainer>`.”
105109
- Set website to `https://docs.opentermsarchive.org/navigate-history/`
106110
- Add the following tags: `terms-of-service`, `terms-of-service-agreements`, `terms-and-conditions`, `open-terms-archive`.
107-
- Uncheck “Packages” and “Deployments”.
111+
- Uncheck “Packages”.
112+
- Uncheck “Deployments”.
108113

109114
#### Define repository settings
110115

111116
These settings aim at minimising the otherwise overwhelming amount of information and click targets.
112117

113-
In “General → Features”:
114-
115-
- Uncheck “Wikis”, “Issues”, “Discussions” and “Projects”.
116-
117-
In “Actions → General → Actions permissions”:
118-
119-
- Select “Disable actions”.
118+
- In “General → Features”
119+
- Uncheck “Wikis”.
120+
- Uncheck “Issues”.
121+
- Uncheck “Discussions”.
122+
- Uncheck “Projects”.
123+
- In “Actions → General → Actions permissions”
124+
- Select “Disable actions”.
120125

121126
#### Update README
122127

@@ -129,7 +134,7 @@ For collections to be included in the Open Terms Archive organisation only. For
129134
- [Create a new collection team](https://github.com/orgs/OpenTermsArchive/new-team)
130135
- Give it the name of the collection
131136
- Set as avatar the collection icon from the website
132-
- Set as description: “Maintainers of the <collection_name> collection”
137+
- Set as description: “Maintainers of the `<collection_name>` collection”
133138
- Add selected members to the team
134139
- Add the declarations repository to the collection team, with “Maintain” access rights
135140
- Add the snapshots repository to the collection team, with “Triage” access rights (giving them more would enable them to corrupt data)

content/federation.en.md renamed to content/collections/federation.en.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Federation
3-
weight: 6
3+
weight: 4
44
---
55

66
# Federation
@@ -34,4 +34,6 @@ A **collection** can **join** the Open Terms Archive **federation** if it abides
3434
9. Publicly accessible API with median response time under 20ms.
3535
10. Abide by all software and data licenses.
3636

37-
_Please note that the federation is an ongoing effort. While criteria are assessed and refined to strike the right balance between accessibility and quality, the Open Terms Archive core team is responsible for assessing which collections may join the federation, and has the right to update the criteria as requests for joining are made._
37+
## Disclaimer
38+
39+
Please note that establishing the federation is an ongoing effort. While criteria are assessed and refined to strike the right balance between accessibility and quality, the Open Terms Archive core team is responsible for assessing which collections may join the federation, and has the right to update the criteria as requests for joining are made.
Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
---
22
title: Governance
3+
weight: 2
34
---
45

56
# Collection governance
67

7-
Setting up and maintaining a collection is done by fulfilling certain tasks. These tasks are handled through roles.
8+
Setting up and maintaining a collection needs fulfilling certain tasks. These tasks are handled through roles. Each of these roles can be volunteer or paid, and can be handled by one single or several different entities. The Open Terms Archive core team provides processes and tools to support all of these roles.
89

9-
1. A **curator**, who decides what services and terms are welcome in the collection.
10-
2. A **host**, who ensures that a server is available.
11-
3. An **administrator**, who takes responsibility for ensuring that the engine and associated software tools are functional and up to date.
12-
4. **Maintainers**, who guarantee the quality of the tracked versions by reviewing contributions.
13-
5. **Contributors**, who add declarations and keep them up to date.
10+
## Host
1411

15-
Each of these roles can be volunteer or paid, and all can be handled by one single or many different entities.
12+
This role ensures that a server and internet access is available to run the engine on and fetch the terms, either by using its own infrastructure or renting a server on a hosting provider.
1613

17-
The Open Terms Archive core team provides processes and tools to support all of these roles.
14+
## Administrator
15+
16+
This role takes responsibility for ensuring that the engine and associated software tools are functional and up to date.
17+
18+
## Curator
19+
20+
This role decides which services and terms are welcome in the collection.
21+
22+
## Maintainer
23+
24+
This role guarantees the quality of the tracked versions by reviewing contributions.
25+
26+
## Contributor
27+
28+
This role adds declarations and keeps them up to date.

content/collections/metadata.en.md

Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,67 @@
11
---
22
title: Metadata
3+
weight: 1
34
---
45

56
# Collection metadata
67

7-
A collection is defined by the following metadata:
8+
A collection is defined by the following metadata.
89

9-
- Concise description of the collection topic (examples: `Largest global social media`, `Most used social media in France`, `Dating apps`, `Platforms providing services to businesses`…).
10-
- Collection name (3 words maximum, examples: `Platform Governance Archive`, `France Élections`, `Dating`, `P2B Compliance Assessment`…).
11-
- Collection ID (examples: `pga`, `France-elections`, `dating`, `p2b-compliance`…).
12-
- Terms language (examples: `English`, `French`, `All EU languages`…).
13-
- Terms jurisdiction (examples: `EU`, `France`, `EEA`, `USA`, `global`…).
14-
- Entities (name, logo, url) for each of the [roles]({{< relref "collections/governance" >}}).
10+
## Description
11+
12+
A concise description of the collection topic.
13+
14+
### Examples
15+
16+
- Largest global social media
17+
- Most used social media in France
18+
- Dating apps
19+
- Platforms providing services to businesses
20+
21+
## Name
22+
23+
Three words maximum.
24+
25+
### Examples
26+
27+
- Platform Governance Archive
28+
- France Élections
29+
- Dating
30+
- P2B Compliance Assessment
31+
32+
## ID
33+
34+
An identifier derived from the collection name that can more easily be referenced in code. Use acronyms and replace spaces with dashes.
35+
36+
### Examples
37+
38+
- `pga`
39+
- `France-elections`
40+
- `dating`
41+
- `p2b-compliance`
42+
43+
## Language
44+
45+
The expected language of the terms in the collection.
46+
47+
### Examples
48+
49+
- `English`
50+
- `French`
51+
- `All EU languages`
52+
53+
## Jurisdiction
54+
55+
The expected jurisdiction in which the terms in the collection apply.
56+
57+
### Examples
58+
59+
- `EU`
60+
- `France`
61+
- `EEA`
62+
- `USA`
63+
- `global`
64+
65+
## Roles
66+
67+
The name, URL and logo of the entities that will take responsibility for each of the necessary governance [roles]({{< relref "collections/governance" >}}).

0 commit comments

Comments
 (0)