diff --git a/CONTRIBUTING.MD b/CONTRIBUTING.MD index b93b2d00..c04df190 100644 --- a/CONTRIBUTING.MD +++ b/CONTRIBUTING.MD @@ -1,6 +1,6 @@ # Contributing guide -Thanks for your contribution 🥳 to the Fastily website redesign project! +Thanks for your contribution 🥳 to the Fastify website redesign project! [Code of Conduct](https://github.com/fastify/.github/blob/main/CODE_OF_CONDUCT.md) diff --git a/README.md b/README.md index aa707352..b83f3f6e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Before we start the development server we will need to fetch some of the docs fr After installing [GitHub CLI](https://cli.github.com/) ensure you are logged in by running; -``` +```bash gh auth login ``` @@ -46,7 +46,7 @@ $ npm start This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. -Note that only the documentations listed in the `versions.json` file will be available. So, if you have a long version list, your local enviroment will be slowed down. +Note that only the documentations listed in the `versions.json` file will be available. So, if you have a long version list, your local environment will be slowed down. ### Deployment diff --git a/docusaurus.config.js b/docusaurus.config.js index b6ca6feb..52c73782 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -121,7 +121,7 @@ const config = { }, { to: '/ecosystem', label: 'Ecosystem', position: 'left' }, { to: '/benchmarks', label: 'Benchmarks', position: 'left' }, - { to: '/organisations', label: 'Adopters', position: 'left' }, + { to: '/organizations', label: 'Adopters', position: 'left' }, { to: '/contribute', label: 'Contribute', position: 'left' }, { to: '/resources', label: 'Resources', position: 'left' }, { @@ -208,6 +208,12 @@ const config = { // This plugin does not work in dev mode '@docusaurus/plugin-client-redirects', { + redirects: [ + { + from: '/organisations', + to: '/organizations', + }, + ], createRedirects(existingPath) { // Legacy/Retro compatibility: diff --git a/docusaurus.config.utils.js b/docusaurus.config.utils.js index 9cc32bb8..5b2bc57a 100644 --- a/docusaurus.config.utils.js +++ b/docusaurus.config.utils.js @@ -17,7 +17,7 @@ function checkGeneratedData() { const generatedFiles = [ 'static/generated/acknowledgements.json', 'static/generated/benchmarks.json', - 'static/generated/organisations.json', + 'static/generated/organizations.json', 'static/generated/plugins.json', 'static/generated/team.json', ] @@ -98,7 +98,7 @@ function manageRedirects({ existingPath, major, versions, versionsShipped, ignor return existingPath .replace(`/docs/${versionName}`, oldPath) // Replace the version with the old path .replace(/Guides\/(?!Contributing)/g, '') // Remove Guides/ from the path (it has been added in v4) - .replace(/Reference\//g, '') // Remove Refecerence/ from the path (it has been added in v4) + .replace(/Reference\//g, '') // Remove Reference/ from the path (it has been added in v4) }) // Remove duplicates diff --git a/scripts/build-static-data.js b/scripts/build-static-data.js index ac64f198..c7df6e5f 100644 --- a/scripts/build-static-data.js +++ b/scripts/build-static-data.js @@ -31,8 +31,8 @@ execute([ // ##### Organizations { - staticDataFile: path.join(__dirname, '../static/data/organisations.yml'), - outputFile: path.join(__dirname, '../static/generated/organisations.json'), + staticDataFile: path.join(__dirname, '../static/data/organizations.yml'), + outputFile: path.join(__dirname, '../static/generated/organizations.json'), sideEffect: (data) => { // Sort alphabetically by `name` lowercase data.sort((a, b) => { diff --git a/src/components/Organisations/index.jsx b/src/components/Organizations/index.jsx similarity index 84% rename from src/components/Organisations/index.jsx rename to src/components/Organizations/index.jsx index df893ba8..88def72d 100644 --- a/src/components/Organisations/index.jsx +++ b/src/components/Organizations/index.jsx @@ -2,14 +2,14 @@ import React from 'react' import useBaseUrl from '@docusaurus/useBaseUrl' import Link from '@docusaurus/Link' -import organizationsData from '@site/static/generated/organisations.json' +import organizationsData from '@site/static/generated/organizations.json' import styles from './styles.module.css' -export default function Organisations({ maxItems, displayType }) { +export default function Organizations({ maxItems, displayType }) { const orgs = filterOrganizationsByType(displayType) return ( -
Fastify is proudly powering a large ecosystem of organizations and products out there with almost{' '} 10 million downloads per month.{' '} - Checkout our affiliate companies. + Checkout our affiliate companies.
@@ -55,7 +55,7 @@ export default function Home() { GitHub or{' '} Open Collective. -- Fastify has an ever-growing ecosystem of plugins. There is probably already a plugin for your - favourite database or template language. Have a look at the{' '} - Ecosystem page to navigate through the currently available plugins. - Can't you find the plugin you are looking for? No problem,{' '} - it's very easy to write one! + Fastify has an ever-growing ecosystem of plugins. There is probably already a plugin for your favorite + database or template language. Have a look at the Ecosystem page to + navigate through the currently available plugins. Can't you find the plugin you are looking for? + No problem, it's very easy to write one!
diff --git a/src/pages/organisations.mdx b/src/pages/organizations.mdx
similarity index 62%
rename from src/pages/organisations.mdx
rename to src/pages/organizations.mdx
index 15578a01..a3124932 100644
--- a/src/pages/organisations.mdx
+++ b/src/pages/organizations.mdx
@@ -1,27 +1,27 @@
import HeroBanner from '@site/src/components/HeroBanner'
-import Organisations from '@site/src/components/Organisations'
+import Organizations from '@site/src/components/Organizations'
-