0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/COMMUNITY_GUIDE.md

45 lines
4.7 KiB
Markdown
Raw Normal View History

### Guide to Contributing to the Astro Community
2022-07-05 15:13:38 -05:00
When interacting, strive to maintain a friendly, empathetic tone. This includes, but is not limited to, interactions on Discord, GitHub, and Twitter.
2022-07-05 15:13:38 -05:00
"Tone" refers to word, punctuation, and conversational choices that determine how your message _feels_ to others. This includes nonverbal cues, like emojis and gifs.
2022-07-05 15:13:38 -05:00
Compare these two responses:
2022-07-05 15:13:38 -05:00
_Question:_ Hey, I'm beginning with Astro. I tried to use `document` in my Astro page, but it says that the object doesn't exist. How can I manipulate the DOM?
2022-07-05 15:13:38 -05:00
| Answer 1 | Answer 2 |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| You can't manipulate the DOM from an Astro file 😂 Astro is a static site builder. | Hey, welcome to the community! <br/> Astro pages and components run on the server. Because of that, you won't have access to everything you're used to when writing JavaScript for the web. You're on the right track, though - you can access `document` from a `<script>` tag in your Astro file. <br/> Check out the docs here, and let me know if you need any more help! https://docs.astro.build/en/core-concepts/astro-components/#client-side-scripts |
2022-07-05 15:13:38 -05:00
Answer 2 centered the user's feelings and as such, took more effort. However, it made a significant difference. This response:
2022-07-05 15:13:38 -05:00
- welcomed the new member into the community
- made them feel validated for asking the question ("You're on the right track")
- provided an explanation that fit the person who asked the question: _Answer 2_ sought to explain things to a self-described beginner, who might not understand the implications of "static site builder"
- made it clear that the community is willing to help and that asking is not a burden ("let me know if you need any more help!")
- equipped them with a next step ("Check out the docs here"), while at the same time familiarized them onto our docs page
2022-07-05 15:13:38 -05:00
Our community prides itself on being _positive_, _helpful_, and _inclusive_. If you have these goals in mind when interacting in the community, you're on the right track!
2022-07-05 15:13:38 -05:00
- To stay positive:
2022-07-05 15:13:38 -05:00
- Make it clear that you appreciate the other person's contributions.
- Aim to learn: even complaints can be valuable feedback.
- Look for alternate interpretations of your message before sending, and consider clarifying your intent if you're unsure how your words might come across (using exclamation points and emojis to convey friendliness is generally 👍 !)
- During conflict: maintain respect, avoid aggression, and avoid making it personal ("you").
- Set boundaries. Feel free to step away from a conversation when you feel frustrated. Reach out to community leaders who can step in and de-escalate the situation. We are in this together!
2022-07-05 15:13:38 -05:00
- To stay helpful:
2022-07-05 15:13:38 -05:00
- Seek to understand the the other person's desired outcomes. Are they looking for assistance? Just wanting to vent?
- When explaining something, first establish the knowledge level of the person you're responding to. Match your explanation to that level. A good rule of thumb is to assume that everyone is a beginner. Your response will most likely be read by others as well!
- Ask clarifying questions. If you're not sure what the person meant, ask them if your understanding is correct. If you're not sure what they already know, ask them if they're familiar with a concept.
2022-07-05 15:13:38 -05:00
- To stay inclusive:
2022-07-05 15:13:38 -05:00
- Refer to someone by their expressed name. Don't use your own nicknames for someone (unless you're friends with established trust).
- Refer to someone by their expressed pronouns. If this wasn't expressed, use [`they/them`](http://pronoun.is/they/them), which in English can be used to refer to individuals of any gender.
- If you sense hesitancy in someone's participation, make it clear that you're happy they're participating.
- Advocate for someone if you see that they're being dismissed.