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 7caef1a2..77633439 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ 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. +So, if you have a long version list, your local environment will be slowed down. ### Build diff --git a/docusaurus.config.js b/docusaurus.config.js index 4005b47c..30c93ca6 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -118,7 +118,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' }, { @@ -205,6 +205,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 a226792b..cb9650db 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', ] @@ -90,7 +90,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 7309870f..2dc54178 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 76% rename from src/components/Organisations/index.jsx rename to src/components/Organizations/index.jsx index 8f3a518c..063d9732 100644 --- a/src/components/Organisations/index.jsx +++ b/src/components/Organizations/index.jsx @@ -1,12 +1,12 @@ import React from 'react' import useBaseUrl from '@docusaurus/useBaseUrl' -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 }) { +export default function Organizations({ maxItems }) { return ( -