Skip to content

Commit cd2efe7

Browse files
Add redirects to Code of Conduct and Discord Guidelines docs (#383)
* Add redirects to Code of Conduct and Discord Guidelines docs Then link to those redirects so we only ever have to change the routes file if we want to link to new docs. * fix rubocop offense * Correct text mispelling --------- Co-authored-by: fatmahussein <fartunhussein346@gmail.com>
1 parent 467f8cb commit cd2efe7

File tree

7 files changed

+18
-10
lines changed

7 files changed

+18
-10
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WNB.rb is a virtual community for women and non-binary Rubyists. This is the rep
1212

1313
## Code of Conduct ❤️
1414

15-
All contributors to this repository must follow the [WNB.rb code of conduct](https://tinyurl.com/wnb-rb-coc). Those who violate the code of conduct will be reported to GitHub support and banned from all WNB.rb platforms, including GitHub and Discord.
15+
All contributors to this repository must follow the [WNB.rb code of conduct](https://wnb-rb.dev/code-of-conduct). Those who violate the code of conduct will be reported to GitHub support and banned from all WNB.rb platforms, including GitHub and Discord.
1616

1717
## 1. Getting Started 🏁
1818

@@ -54,6 +54,7 @@ Then, edit `.env` and set the following environment variables:
5454
The `/join-us` page allows users to request an invitation to the WNB.rb Discord server. When users submit the form, they receive an email with a Discord invite link.
5555

5656
**Required Environment Variables:**
57+
5758
- `DISCORD_INVITE_URL`: The Discord server invite link to send to new users
5859

5960
**Email Configuration:**
@@ -95,6 +96,7 @@ foreman run rake [NAMESPACE]:[TASK_NAME]
9596
```
9697

9798
To add an admin to the database (with default password set), run:
99+
98100
```
99101
rake 'user:add_user[Name, email@example.com]'
100102
```

app/javascript/react/components/community/CodeofConductSection.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import React from 'react';
33
const AdviceSection = () => {
44
return (
55
<p>
6-
We faciliate a warm, welcoming community, and we take member concerns seriously. Swift
6+
We facilitate a warm, welcoming community and we take member concerns seriously. Swift
77
action will be taken to enforce the{' '}
88
<a
9-
href="https://docs.google.com/document/d/1e_AuYVtvHi_Mvijga6T0YxrnpDSoJtuz0R20IMliG_I/edit?usp=sharing"
9+
href="/code-of-conduct"
1010
className="whitespace-nowrap font-medium hover:text-wnbrb-blue-navy"
1111
target="_blank"
1212
rel="noopener noreferrer"

app/javascript/react/components/layout/Footer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ const Footer = () => (
4949
</p>
5050
<a
5151
className="footer-col-item"
52-
href="https://tinyurl.com/wnb-rb-coc"
52+
href="/code-of-conduct"
5353
target="_blank"
5454
rel="noopener noreferrer"
5555
>
5656
Code of Conduct
5757
</a>
5858
<a
5959
className="footer-col-item"
60-
href="https://tinyurl.com/wnb-rb-slack-guidelines"
60+
href="/discord-guidelines"
6161
target="_blank"
6262
rel="noopener noreferrer"
6363
>

app/javascript/react/components/pages/JoinUs.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const JoinUs = () => {
137137
link; your information will never be shared without your consent. For
138138
more information see our{' '}
139139
<a
140-
href="https://tinyurl.com/wnb-rb-coc"
140+
href="/code-of-conduct"
141141
className="whitespace-nowrap font-medium hover:text-wnbrb-blue-navy"
142142
rel="noopener noreferrer"
143143
target="_blank"
@@ -198,7 +198,7 @@ const JoinUs = () => {
198198
their name, appearance, or gender presentation, is
199199
welcome. For more information, see our{' '}
200200
<a
201-
href="https://tinyurl.com/wnb-rb-coc"
201+
href="/code-of-conduct"
202202
className="whitespace-nowrap font-medium hover:text-[#2e0880]"
203203
rel="noopener noreferrer"
204204
target="_blank"

app/views/discord_invitation_mailer/invite.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
</div>
159159

160160
<div class="code-of-conduct">
161-
<p>📋 Before participating, please read our <a href="https://tinyurl.com/wnb-rb-coc" target="_blank">Code of Conduct</a> to ensure our community remains welcoming and safe for everyone.</p>
161+
<p>📋 Before participating, please read our <a href="<%= code_of_conduct_url %>" target="_blank">Code of Conduct</a> to ensure our community remains welcoming and safe for everyone.</p>
162162
</div>
163163

164164
<p>If you have any questions or need help getting started, simply reply to this email and we'll be happy to assist you!</p>

app/views/discord_invitation_mailer/invite.text.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Pro tip: You can use Discord in your browser,
1717
or download the desktop and mobile apps: https://discord.com/download
1818

1919
📋 Before participating, please read our Code of Conduct
20-
to ensure our community remains welcoming and safe for everyone.
21-
https://tinyurl.com/wnb-rb-coc
20+
to ensure our community remains welcoming and safe for everyone:
21+
<%= code_of_conduct_url %>
2222

2323
If you have any questions or need help getting started,
2424
simply reply to this email and we'll be happy to assist you!

config/routes.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
get '/sponsor-us', to: 'site#sponsor_us'
2727
get '/meetups/:year/:month/:day', to: 'site#past_meetup'
2828

29+
get '/code-of-conduct',
30+
to: redirect('https://docs.google.com/document/d/1tlwM2qPIWy8cilmySQZcEz7hw46Y0iuJPU7Y_nUrjs0/'), as: :code_of_conduct
31+
get '/discord-guidelines',
32+
to: redirect('https://docs.google.com/document/d/1S7hTGsqjisoAIWEUYM7fc9vyINWy1C7iwwjzRHu_qxM/'),
33+
as: :discord_guidelines
34+
2935
root 'site#home'
3036
namespace :api, constraints: { format: 'json' } do
3137
resources :events, only: [:none] do

0 commit comments

Comments
 (0)