Skip to content

Commit fa810e4

Browse files
feat: move /organisations to /organizations
1 parent c3767ce commit fa810e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+71
-66
lines changed

CONTRIBUTING.MD

Lines changed: 1 addition & 1 deletion

README.md

Lines changed: 1 addition & 1 deletion

docusaurus.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const config = {
118118
},
119119
{ to: '/ecosystem', label: 'Ecosystem', position: 'left' },
120120
{ to: '/benchmarks', label: 'Benchmarks', position: 'left' },
121-
{ to: '/organisations', label: 'Adopters', position: 'left' },
121+
{ to: '/organizations', label: 'Adopters', position: 'left' },
122122
{ to: '/contribute', label: 'Contribute', position: 'left' },
123123
{ to: '/resources', label: 'Resources', position: 'left' },
124124
{
@@ -205,6 +205,12 @@ const config = {
205205
// This plugin does not work in dev mode
206206
'@docusaurus/plugin-client-redirects',
207207
{
208+
redirects: [
209+
{
210+
from: '/organisations',
211+
to: '/organizations',
212+
},
213+
],
208214
createRedirects(existingPath) {
209215
// Legacy/Retro compatibility:
210216

docusaurus.config.utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function checkGeneratedData() {
1717
const generatedFiles = [
1818
'static/generated/acknowledgements.json',
1919
'static/generated/benchmarks.json',
20-
'static/generated/organisations.json',
20+
'static/generated/organizations.json',
2121
'static/generated/plugins.json',
2222
'static/generated/team.json',
2323
]
@@ -90,7 +90,7 @@ function manageRedirects({ existingPath, major, versions, versionsShipped, ignor
9090
return existingPath
9191
.replace(`/docs/${versionName}`, oldPath) // Replace the version with the old path
9292
.replace(/Guides\/(?!Contributing)/g, '') // Remove Guides/ from the path (it has been added in v4)
93-
.replace(/Reference\//g, '') // Remove Refecerence/ from the path (it has been added in v4)
93+
.replace(/Reference\//g, '') // Remove Reference/ from the path (it has been added in v4)
9494
})
9595

9696
// Remove duplicates

scripts/build-static-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ execute([
3131

3232
// ##### Organizations
3333
{
34-
staticDataFile: path.join(__dirname, '../static/data/organisations.yml'),
35-
outputFile: path.join(__dirname, '../static/generated/organisations.json'),
34+
staticDataFile: path.join(__dirname, '../static/data/organizations.yml'),
35+
outputFile: path.join(__dirname, '../static/generated/organizations.json'),
3636
sideEffect: (data) => {
3737
// Sort alphabetically by `name` lowercase
3838
data.sort((a, b) => {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react'
22
import useBaseUrl from '@docusaurus/useBaseUrl'
33

4-
import organizationsData from '@site/static/generated/organisations.json'
4+
import organizationsData from '@site/static/generated/organizations.json'
55
import styles from './styles.module.css'
66

7-
export default function Organisations({ maxItems }) {
7+
export default function Organizations({ maxItems }) {
88
return (
9-
<ul className={styles.organisationsList}>
9+
<ul className={styles.organizationsList}>
1010
{shuffle(organizationsData, { maxItems: maxItems }).map((organization, index) => (
1111
<li key={index}>
1212
<OrganizationItem organization={organization} />
@@ -19,7 +19,7 @@ export default function Organisations({ maxItems }) {
1919
function OrganizationItem({ organization }) {
2020
return (
2121
<a href={organization.link} target="_blank" rel="noreferrer">
22-
<img src={useBaseUrl(`/img/organisations/${organization.image}`)} alt={`${organization.name} is using Fastify`} />
22+
<img src={useBaseUrl(`/img/organizations/${organization.image}`)} alt={`${organization.name} is using Fastify`} />
2323
</a>
2424
)
2525
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.organisationsList {
1+
.organizationsList {
22
margin: 0;
33
padding: 0;
44
display: flex;
@@ -9,29 +9,29 @@
99
justify-items: center;
1010
}
1111

12-
[data-theme='dark'] .organisationsList {
12+
[data-theme='dark'] .organizationsList {
1313
background-color: var(--ifm-color-secondary-dark);
1414
border-radius: var(--ifm-code-border-radius);
1515
}
1616

17-
.organisationsList li {
17+
.organizationsList li {
1818
align-items: center;
1919
display: flex;
2020
justify-content: center;
2121
margin: 0.6rem;
2222
}
2323

24-
.organisationsList li a {
24+
.organizationsList li a {
2525
text-decoration: none;
2626
}
2727

28-
.organisationsList li a img {
28+
.organizationsList li a img {
2929
max-height: 60px;
3030
max-width: 160px;
3131
filter: grayscale(100%);
3232
transition: all 0.5s;
3333
}
3434

35-
.organisationsList li a:hover img {
35+
.organizationsList li a:hover img {
3636
filter: none;
3737
}

src/pages/index.jsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Layout from '@theme/Layout'
55
import Link from '@docusaurus/Link'
66

77
import HomepageHeader from '@site/src/components/HomePageHeader/index.jsx'
8-
import Organisations from '@site/src/components/Organisations'
8+
import Organizations from '@site/src/components/Organizations'
99
import Team from '@site/src/components/Team'
1010
import QuickStart from '@site/src/components/QuickStart'
1111

@@ -39,12 +39,12 @@ export default function Home() {
3939
<section className="section">
4040
<div className="container">
4141
<h1>Who is using Fastify?</h1>
42-
<p>Fastify is proudly powering a large ecosystem of organisations and products out there.</p>
42+
<p>Fastify is proudly powering a large ecosystem of organizations and products out there.</p>
4343
<p>
44-
Discover <Link to="/organisations">more organisations using Fastify</Link>. Do you want your organisation
45-
to <Link to="/organisations#how-to-be-featured-here">be featured here</Link>?
44+
Discover <Link to="/organizations">more organizations using Fastify</Link>. Do you want your organization
45+
to <Link to="/organizations#how-to-be-featured-here">be featured here</Link>?
4646
</p>
47-
<Organisations maxItems={12} />
47+
<Organizations maxItems={12} />
4848
</div>
4949
</section>
5050

@@ -108,11 +108,10 @@ export default function Home() {
108108
<div className="col col--6">
109109
<h1>Ecosystem</h1>
110110
<p>
111-
Fastify has an ever-growing ecosystem of plugins. Probably there is already a plugin for your
112-
favourite database or template language. Have a look at the{' '}
113-
<Link to="/ecosystem">Ecosystem page</Link> to navigate through the currently available plugins.
114-
Can&#39;t you find the plugin you are looking for? No problem,{' '}
115-
<Link to="/docs/latest/Reference/Plugins">it&#39;s very easy to write one</Link>!
111+
Fastify has an ever-growing ecosystem of plugins. Probably there is already a plugin for your favorite
112+
database or template language. Have a look at the <Link to="/ecosystem">Ecosystem page</Link> to
113+
navigate through the currently available plugins. Can&#39;t you find the plugin you are looking for?
114+
No problem, <Link to="/docs/latest/Reference/Plugins">it&#39;s very easy to write one</Link>!
116115
</p>
117116
<p>
118117
<Link to="/ecosystem" className="button button--lg button--primary">

src/pages/organisations.mdx

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

src/pages/organizations.mdx

Lines changed: 39 additions & 0 deletions

0 commit comments

Comments
 (0)