Skip to content

Commit 8cf2945

Browse files
authored
Add "updating the directory" guide (#727)
1 parent 3f92385 commit 8cf2945

2 files changed

Lines changed: 101 additions & 0 deletions

File tree

docs/astro.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default defineConfig({
4848
"guides/setup",
4949
"guides/research",
5050
"guides/writing",
51+
"guides/directory-updates",
5152
"guides/new-pdfs",
5253
"guides/pdf-monitoring",
5354
"guides/building-forms",
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
title: Updating the Directory
3+
description: How to add a new organization or contact to Namesake's directory.
4+
---
5+
6+
import { Steps } from '@astrojs/starlight/components';
7+
8+
This guide shows you how to update the [Namesake directory](https://namesake.fyi/directory).
9+
10+
## Organization requirements
11+
12+
All organizations added to the directory should meet the following requirements:
13+
14+
1. **The organization must be active.** Information on any website should be up-to-date. If an organization has run events like name change clinics in the past, confirm that future events are scheduled.
15+
2. **The organization must demonstrate vocal support for trans people.** An organization which offers general legal support _without_ referencing trans people will not be accepted.
16+
3. **The services offered must be free or low-cost.**
17+
4. **Organizations must be based in (or primarily serve) people in the U.S.** Unfortunately, Namesake does not currently have the capacity to document or support name changes in other countries.
18+
19+
## Collect organization info
20+
21+
Each entry in the directory needs the following info:
22+
23+
| Field | Description |
24+
| ----- | ------------ |
25+
| Name | The name of the organization. |
26+
| Description | A sentence describing the organization's mission. This is often found on the organization's homepage or about page. |
27+
| Jurisdictions | The U.S. state (or states) which this organization serves. |
28+
| URL | A link to the organization's website. If the organization/website is large, link directly to the most relevant page for name change information. |
29+
| Services | One or more of the following tags: `financial aid`, `form filling help`, `legal support`, `name change clinics`, and `notary` |
30+
| Email | A contact email address. _Optional._ |
31+
| Phone | A contact phone number. Format should match `000-000-0000`. _Optional._ |
32+
| Logo | The organization's logo. _Optional._ |
33+
34+
Usually, this information is available directly through an organization's website. If any details are uncertain, such as the services offered, email or call the organization to confirm.
35+
36+
## Add data
37+
38+
To update the directory, you will need to edit the Namesake codebase. If you haven't already, [set up your dev environment](/guides/setup) to get Namesake running on your computer.
39+
40+
<Steps>
41+
42+
1. Create a new git branch, then switch to that branch:
43+
44+
```sh
45+
git branch directory-updates
46+
git checkout directory-updates
47+
48+
# or to create and checkout a branch all in one go:
49+
# git checkout -b directory-updates
50+
```
51+
52+
2. Navigate to `web/src/content/directory`. You will see a list of folders, one for each entry in the directory.
53+
54+
3. For each new contact, add a folder using the organization's name in `kebab-case`. For example, the folder for "Youth Pride RI" is `youth-pride-ri`.
55+
56+
4. Add an `index.yml` file inside the new folder with the following structure:
57+
58+
```yml
59+
name: Organization Name
60+
description: The mission statement or organization description.
61+
jurisdictions:
62+
- ma
63+
url: https://example.com
64+
services:
65+
- financialAid
66+
- formFilling
67+
- nameChangeClinic
68+
- legalSupport
69+
- notary
70+
email: contact@example.com
71+
phone: 555-555-5555
72+
logo: ./logo.webp
73+
```
74+
75+
5. Replace the example info.
76+
77+
6. Repeat for any other new entries.
78+
79+
</Steps>
80+
81+
## Add the logo
82+
83+
Find a high-quality version of the logo. Sometimes this is possible by right-clicking the logo on their website and downloading. Other times you may need to do additional searching and find a "brand" or "press" page, or search Google images.
84+
85+
When selecting a logo:
86+
87+
- `.svg` files are preferred. `.webp` and `.png` are also okay.
88+
- File should have a transparent or plain white background.
89+
- Crop away any margins. The logo boundaries should span edge-to-edge.
90+
91+
Once you have a suitable logo, upload it to the same folder as your `index.yml` file. Change the filename to `logo`, and update `index.yml` to make sure the `logo:` line points to the correct filename and extension, starting with `./`:
92+
93+
```yml
94+
logo: ./logo.svg
95+
# or .webp, or .png, etc.
96+
```
97+
98+
## Submit a pull request
99+
100+
Commit and push your changes to the directory, then open a new pull request in GitHub. We'll review your additions, and if everything looks good, we'll merge them in!

0 commit comments

Comments
 (0)