Commit f0ce781f4c

f0ce781f4c8e8a0228ea2138cc58d811b09f7c87

parent: 013bfa75bb

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-03-01 18:46 UTC

Adds YAML examples in contributing guide

Layout: unified · split

.github/CONTRIBUTING.md +87
@@ -52,6 +52,93 @@ Usually these entries go within the "Notable Mentions" section instead._
5252
5353---
5454
55### Editing the YAML
56
57All content in both the README and website is generated using the data in [`awesome-privacy.yml`](https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml).
58This file may look a bit daunting to start with, but don't worry - it's pretty simple.
59
60#### Top-Level Structure
61
62At a high-level, the file exports an array of categories, each containing a `name` and array of `sections`.
63
64```yaml
65categories:
66 - name: Essentials
67 sections: []
68- name: Communication
69 sections: []
70 - name: Security Tools
71 sections: []
72```
73
74Each category contains a `name` an array of `sections` (like sub-categories)
75
76```yaml
77 - name: Communication
78 sections:
79 - name: Encrypted Messaging
80 services: []
81 - name: P2P Messaging
82 intro: ...
83 services: []
84 - name: Encrypted Email
85 services: []
86 - name: Email Clients
87 services: []
88```
89
90And within each section, we find a list of `services`, each containing a listing. For example:
91
92```yaml
93services:
94- name: Addy
95 url: https://addy.io
96 icon: https://addy.io/apple-touch-icon.png
97 github: anonaddy/anonaddy
98 tosdrId: 2220
99 description: |
100 An open source anonymous email forwarding service, allowing you to create unlimited
101 email aliases which forward to one or more of your private email addresses.
102
103- name: Firefox Private Relay
104 url: https://relay.firefox.com
105 icon: https://relay.firefox.com/favicon.svg
106 openSource: true
107 github: mozilla/fx-private-relay
108 tosdrId: 4158
109 description: |
110 Developed and managed by Mozilla, Relay is a Firefox addon, that lets you make an
111 email alias with 1 click, and have all messages forwarded onto your personal email.
112```
113
114#### Service Fields
115
116Each service (aka an app/website/software) has the following fields:
117
118| Attribute | Description | Type | Required |
119|-------------------|--------------------------------------------------------------------------------------------------------------|---------|----------|
120| `name` | The name of the listing | `string`| Required |
121| `description` | A short and subjective description of the listing. Markdown is supported. Split longer descriptions onto multiple lines | `string`| Required |
122| `url` | The fully qualified domain name of the listing's homepage | `string`| Required |
123| `icon` | A path to an icon file for the listing's logo. Must be square, no less than 64x64 and no larger than 512x512 pixels | `string`| Required |
124| `github` | The GitHub repository hosting the listing's source code. In the format of `[owner]/[repo]` | `string`| Optional |
125| `securityAudited` | Has the listing been audited by an accredited security researcher, with the report publicly published? | `bool` | Optional |
126| `acceptsCrypto` | If payment is required/accepted, do they accept anonymous payments using cryptocurrency, such as Monero? | `bool` | Optional |
127| `openSource` | Is the source code in its entirety published somewhere accessible so it can be built-from-source or self-hosted? | `bool` | Optional |
128| `tosdrId` | If the privacy policy has been analysed by ToS;DR, include the ID to their report | `number`| Optional |
129
130Anything which is marked as `optional`, and which doesn't apply to your service can just be left out.
131
132Keep max line length around 80-100 chars. If the description is long, split it onto multiple lines, using YAML multi-line string (like `: |`).
133
134#### Validating your Entry
135Once you've finished editing the YAML file, you may run `make validate` to run [`validate-awesome-privacy.py`](https://github.com/Lissy93/awesome-privacy/blob/main/lib/validate-awesome-privacy.py), which will ensure your [`awesome-privacy.yml`](https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml) is both valid and fits within our defined schema (in [`lib/schema.json`](https://github.com/Lissy93/awesome-privacy/blob/main/lib/schema.json))
136
137#### Need Help?
138Just look at some of the existing entries in the file for inspiration, and if you're still stuck, feel free to reach out for help. We're here to help you get your contribution merged!
139
140---
141
55142### Guidelines
56143
57144Your pull request must follow these requirements. Failure to do so, might result in it being closed.