Skip to content

Commit 6ca4567

Browse files
authored
Merge support page into help page (testing-library#508)
* Remove support page * Redirect support page to help page * Add "Want to help?" from support page to help page
1 parent 8a71e49 commit 6ca4567

File tree

4 files changed

+33
-101
lines changed

4 files changed

+33
-101
lines changed

netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
status = 301
4949
force = false # do not redirect if route is not 404
5050

51+
# Support page to help page
52+
[[redirects]]
53+
from = "/support"
54+
to = "/help"
55+
status = 301
56+
force = true
57+
5158
# DOM landing page to home page
5259
[[redirects]]
5360
from = "https://testing-library.com/dom/"

website/pages/en/help.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,32 @@ function Help(props) {
8686
</ExternalLink>
8787
</div>
8888
</section>
89+
<header className="postHeader">
90+
<h1>Want to help?</h1>
91+
</header>
92+
<p>
93+
Thanks! The Testing Library maintainers are happy to maintain this
94+
library along with you, the community. We aren't looking for
95+
funding, but we need everyone to pitch in to make this project and
96+
community successful and improve tests for everyone in the long run.
97+
</p>
98+
<p>
99+
Please consider helping us answer community questions and update
100+
documentation content via the help links above. You can also help
101+
support{' '}
102+
<ExternalLink href="https://kentcdodds.com">
103+
Kent C. Dodds
104+
</ExternalLink>{' '}
105+
financially by purchasing his{' '}
106+
<ExternalLink href="https://kentcdodds.com/courses">
107+
courses
108+
</ExternalLink>{' '}
109+
or{' '}
110+
<ExternalLink href="https://kentcdodds.com/workshops/">
111+
remote workshops
112+
</ExternalLink>
113+
.
114+
</p>
89115
</div>
90116
</Container>
91117
</div>

website/pages/en/support.js

Lines changed: 0 additions & 100 deletions
This file was deleted.

website/siteConfig.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ const siteConfig = {
136136
{ doc: 'intro', label: 'Docs' },
137137
{ doc: 'recipes', label: 'Recipes' },
138138
{ page: 'help', label: 'Help' },
139-
{ page: 'support', label: 'Support Us' },
140139
{ blog: true, label: 'Blog' },
141140
],
142141

0 commit comments

Comments
 (0)