Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
3f4c34e
Add draft of local contribution guide
Cli4d Aug 10, 2023
d95cc12
Replace 'repository' with 'collection'
Cli4d Sep 1, 2023
d82d01e
Edit local contrib guide for readability
Cli4d Sep 1, 2023
6a50e95
Improve readability of the local contrib guide
Cli4d Sep 1, 2023
0975c6f
Update contributing-terms.en.md
Cli4d Sep 1, 2023
80c5a55
Update local contrib guide
Cli4d Sep 1, 2023
fffad68
Update content/contributing-terms.en.md
Cli4d Sep 1, 2023
2e67db2
Update content/contributing-terms.en.md
Cli4d Sep 1, 2023
90abc64
Create contributing declarations guide
Cli4d Sep 6, 2023
7a4477e
Create declarations reference page
Cli4d Sep 6, 2023
7834a54
Merge branch 'main' into add-local-contrib-guide
Cli4d Sep 6, 2023
ef117a4
Add draft of local contribution guide
Cli4d Aug 10, 2023
04ef692
Replace 'repository' with 'collection'
Cli4d Sep 1, 2023
5f43358
Edit local contrib guide for readability
Cli4d Sep 1, 2023
d3c2d08
Improve readability of the local contrib guide
Cli4d Sep 1, 2023
2d7b697
Update contributing-terms.en.md
Cli4d Sep 1, 2023
c91b537
Update local contrib guide
Cli4d Sep 1, 2023
9dc38da
Update content/contributing-terms.en.md
Cli4d Sep 1, 2023
6cbf6ae
Update content/contributing-terms.en.md
Cli4d Sep 1, 2023
ede2924
Create contributing declarations guide
Cli4d Sep 6, 2023
4dc051f
Create declarations reference page
Cli4d Sep 6, 2023
0fa611c
Merge branch 'add-local-contrib-guide' of https://github.com/OpenTerm…
Cli4d Sep 6, 2023
96b382b
Fix md linting issues
Cli4d Sep 6, 2023
56de0d7
Fix declarations link
Cli4d Sep 6, 2023
17a2f2c
Merge upstream
MattiSG Oct 3, 2023
eb66ab9
Adds the language to the file name
clementbiron Oct 11, 2023
0fd7310
Fix links
clementbiron Oct 11, 2023
e44267d
Improve code readibility
clementbiron Oct 11, 2023
ea1539a
Merge branch 'main' into add-local-contrib-guide
Cli4d Jan 2, 2024
450dc94
Use inline linking
Cli4d Jan 2, 2024
8dae0fe
Fix typo on repository name
Cli4d Jan 2, 2024
f938ccb
Use contrib tool branch naming
Cli4d Jan 2, 2024
82dae69
Remove Contrib references
Cli4d Jan 2, 2024
6f2dd91
Add service ID link and new terms sect
Cli4d Jan 3, 2024
884ef61
Remove tracking new terms section
Cli4d Jan 3, 2024
b4a900f
Fix md header lint problem
Cli4d Jan 3, 2024
1556b1c
Fix x overflow
clementbiron Jan 10, 2024
86e6a54
Split metadata and governance instructions
MattiSG Dec 19, 2023
eec6d51
Suggest checking known collections when creating
MattiSG Dec 19, 2023
d9dc85b
Suggest to inform the community when creating
MattiSG Dec 19, 2023
008ae78
Add cheesy encouragement to create a collection
MattiSG Dec 19, 2023
60229b7
Add Sponsor role to collection governance
MattiSG Dec 19, 2023
945462c
Define federation assessment criteria means
MattiSG Dec 19, 2023
eba48b4
Define how to join the federation
MattiSG Dec 19, 2023
cfce452
Document supplementary benefits to federation
MattiSG Dec 19, 2023
211c54d
Add draft of local contribution guide
Cli4d Aug 10, 2023
71e8dea
Create contributing declarations guide
Cli4d Sep 6, 2023
3ae5c07
Add draft of local contribution guide
Cli4d Aug 10, 2023
320f18a
Merge branch 'main' of https://github.com/OpenTermsArchive/docs into …
Cli4d Dec 14, 2024
a713092
Merge branch 'main' into add-local-contrib-guide
Ndpnt Jan 21, 2025
4bb0f3e
Reintegrate content
Ndpnt Jan 21, 2025
79a4c7b
Improve aside
Ndpnt Jan 21, 2025
b7d2876
Improve css
Ndpnt Jan 21, 2025
0017785
Lint
Ndpnt Jan 21, 2025
875fae9
Reduce complexity
Ndpnt Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions content/terms/how-to/track-new-terms.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,30 @@ aliases: /contributing-terms/

# How to track new terms

Tracking terms is done by _declaring_ them and the service they are associated with. Such a declaration is achieved by editing JSON files in the [`declarations`](https://github.com/OpenTermsArchive/contrib-declarations/tree/main/declarations) folder.
This is a step by step guide to help you add declarations to the [contrib-declaration](https://github.com/OpenTermsArchive/contrib-declarations) repository. This repository is dedicated for volunteer contribution of declarations to Open Terms Archive.

Before adding new terms, open the [`declarations`](https://github.com/OpenTermsArchive/contrib-declarations/tree/main/declarations) folder and check if the service you want to track terms for is already declared. If a JSON file with the name of the service is already present, you can jump straight to the [Terms reference]({{< relref "terms/reference" >}}). Otherwise, keep reading!
Having understood briefly how a declaration is structured in JSON format, we need to look at concrete steps on how you can add these JSON files to the repository.

## Declaring a new service
## Prerequisites

Before declaring a service, you will need to choose the service name and service ID. The service ID will be the name of the JSON file in which the service will be declared. It is a normalised version of the service name.
In order to add declarations:

1. You need to have [Node.js](https://nodejs.org/en/) installed on your machine. If you don't have it, you can download it from the official website [here](https://nodejs.org/en/download/).
2. You need to have git installed on your machine. If you don't have it, you can download it from the official website [here](https://git-scm.com/downloads).

## Adding a declaration

To add a declaration, you need to follow these steps:

1. Clone the [contrib-declaration](https://github.com/OpenTermsArchive/contrib-declarations) repository to your local machine.
2. Create a branch that describes your contribution e.g. `add-Open-Terms-Archive-ToS` or `add-firefox-privacy-policy`
3. Run `npm install`. This is to install all the dependencies including the Open Terms Archive engine which will allow you to test and validate your declaration to make sure it is ok.
4. Create a JSON file with the name of the service you are adding the declaration for. This JSON file should be in the `declarations` folder of the repository. To learn more about selecting the right service name, please read the [Service name](#service-name) section below.
5. Visit the declaration URL and use [browser developer tools](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Tools_and_setup/What_are_browser_developer_tools) to inspect the page and find the right selectors for the significant section containing the terms you want to declare.
6. After you've properly added your selectors and structured your JSON file, you need to test and validate your JSON file to make sure it is ok. To do this, you need to run `npx ota validate --services [service name]` from the root of the repository. This will run a validation on the declaration, highlighting any changes required.
7. If all tests are good, make a pull request to the main repository.

> If you have a hard time finding the service name, check out the [practical guidelines to find the service name]({{< relref "/terms/guidelines/declaring" >}}), and feel free to mention your uncertainties in the pull request! We will help you improve the service name if necessary 🙂

## Service name

Expand Down
176 changes: 117 additions & 59 deletions themes/opentermsarchive/assets/css/components/aside.css
Original file line number Diff line number Diff line change
@@ -1,112 +1,170 @@
.aside {
flex-shrink: 0;
margin-right:var(--mXL);
margin-right: var(--mXL);
@mixin grid 3, 2;
border:1px solid var(--colorBlack200);
border-radius:4px;
border: 1px solid var(--colorBlack200);
border-radius: 4px;
}

@media (--tabletSmall) {
.aside {
max-width: 100%;
margin-bottom:var(--m2XL);
margin-bottom: var(--m2XL);
}
}

.aside_nav{
ul{
color:var(--colorBlack600);
display:flex;
flex-direction:column;
.aside_nav {
> ul > li > details > ul > li:last-child,
> ul > li > details > ul > li:not(:last-child) > ul {
margin-bottom: var(--mS);
}

ul {
color: var(--colorBlack600);
display: flex;
flex-direction: column;

li{
border-bottom:1px solid var(--colorBlack200);
li {
position: relative;
border-bottom: 1px solid var(--colorBlack200);

&:last-child {
border: none;
}

a{
a {
padding: var(--mXS) var(--mS);
display:inline-block;
width:100%;
display: inline-block;
width: 100%;
}

.aside_item-current {
color: var(--colorBlack800);

&::before {
content: '';
position: absolute;
left: 0;
width: 4px;
background-color: var(--colorPrimary);
border-radius: 0 10px 10px 0;
z-index: 1;
top: var(--m2XS);
bottom: var(--m2XS);
}

&:hover{
background-color:var(--colorBlack200);
&::after {
content: '';
position: absolute;
background-color: var(--colorBlack200);
border-radius: 4px;
z-index: -1;
left: var(--mXS);
right: var(--m2XS);
top: var(--m2XS);
bottom: var(--m2XS);
}
}

&:last-child{
border:none;
&.aside_item-current-section {
&::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 1px;
background-color: var(--colorPrimary);
border-radius: 0;
}

& .aside_item-current {
&::before {
top: 2px;
bottom: 2px;
}

&::after {
top: 0;
bottom: 0;
right: var(--mXS);
}
}
}

details{
details {
position: relative;

summary{
summary {
padding: var(--mXS) var(--mS);
list-style: none;
cursor: pointer;

&:hover{
background-color:var(--colorBlack200);
}

&::marker,
&::-webkit-details-marker{
&::-webkit-details-marker {
display: none;
}
& svg{

& svg {
position: absolute;
right: 10px;
top:14px;
font-size:0.8em;
color:var(--colorBlack400);
top: 14px;
font-size: 0.8em;
color: var(--colorBlack400);
transition: transform 0.2s ease;
}
}

&[open]{
summary > svg{
transform: rotate(180deg);
&:hover::after {
content: '';
position: absolute;
inset: 0;
background-color: var(--colorBlack100);
z-index: -1;
}
}

&[open] summary > svg {
transform: rotate(180deg);
}
}

span{
display:inline-block;
span {
display: inline-block;
}
}

ul{
padding-left:var(--mS);
padding-top:var(--m2XS);
padding-bottom:var(--m2XS);
ul {
li {
border: none;

li{
border:none;
padding-top:var(--m3XS);
padding-bottom:var(--m3XS);
a {
padding: var(--p3XS) var(--mL);
border-radius: 4px;
}

a{
padding: 0;
> span,
a {
padding-left: var(--mS);
}

&:hover{
background-color: transparent;
}
> a {
padding-top: var(--p3XS);
padding-bottom: var(--p3XS);
}

ul{
padding-top:0;
padding-bottom:0;
ul {
padding-top: 0;

li {
padding: 0;

li{
padding:0;
a {
padding: var(--p3XS) var(--mL);
border-radius: 4px;
}
}
}
}
}
}
}

.aside_item-current{
border-left:2px solid var(--colorPrimary);
}

1 change: 1 addition & 0 deletions themes/opentermsarchive/assets/css/custom-properties.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
--colorBlack400: #999;
--colorBlack300: #d6d6d6;
--colorBlack200: #f5f5f5;
--colorBlack100: #fafafa;
--colorWhite: #fefffd;

/* Padding & margin */
Expand Down
10 changes: 5 additions & 5 deletions themes/opentermsarchive/layouts/partials/aside.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

<nav class="aside_nav">
<ul>
<li class="{{ if eq $currentPageRelPermalink .Site.Home.RelPermalink }}aside_item-current{{ end }}"><a href="{{ .Site.Home.RelPermalink }}">{{ .Site.Home.LinkTitle }}</a></li>
<li ><b><a class="{{ if eq $currentPageRelPermalink .Site.Home.RelPermalink }}aside_item-current{{ end }}" href="{{ .Site.Home.RelPermalink }}">{{ .Site.Home.LinkTitle }}</a></b></li>
{{ range .Site.Sections.ByWeight }}
<li class="{{ if eq $currentPageSection .Section }}aside_item-current{{ end }}">
<li class="{{ if eq $currentPageSection .Section }}aside_item-current-section{{ end }}">
<details {{ if eq $currentPageSection .Section }}open{{ end }}>
<summary><b>{{ .LinkTitle | markdownify }}</b> <i class="icon" data-lucide="chevron-down"></i></summary>
<ul>
Expand All @@ -15,14 +15,14 @@
{{ range $allPages }}
<li>
{{ if .Content }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle | markdownify }}</a>
<a class="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }}" href="{{ .RelPermalink }}">{{ .LinkTitle | markdownify }}</a>
{{ else }}
<span>{{ .LinkTitle | markdownify }}</span>
<span class="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }}">{{ .LinkTitle | markdownify }}</span>
{{ end }}
{{ if .IsSection }}
<ul>
{{ range .RegularPages.ByWeight }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle | markdownify }}</a></li>
<li><a class="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }}" href="{{ .RelPermalink }}">{{ .LinkTitle | markdownify }}</a></li>
{{ end }}
</ul>
{{ end }}
Expand Down
Loading