Skip to content

Commit 591600f

Browse files
docs(other-api): fix grammar + typos (#10654)
1 parent 4bf011a commit 591600f

File tree

6 files changed

+34
-34
lines changed

6 files changed

+34
-34
lines changed

docs/other-api/adapter.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ Each adapter has the same API. In the future we may have helpers specific to the
2424

2525
## Community Adapters
2626

27-
- [`@fastly/remix-server-adapter`][fastly-remix-server-adapter] - For [Fastly Compute][fastly-compute].
28-
- [`@mcansh/remix-fastify`][remix-fastify] - For [Fastify][fastify].
29-
- [`@mcansh/remix-raw-http`][remix-raw-http] - For a good old bare bones Node server.
30-
- [`@netlify/remix-adapter`][netlify-remix-adapter] - For [Netlify][netlify].
31-
- [`@netlify/remix-edge-adapter`][netlify-remix-edge-adapter] - For [Netlify][netlify] Edge.
32-
- [`@vercel/remix`][vercel-remix] - For [Vercel][vercel].
33-
- [`remix-google-cloud-functions`][remix-google-cloud-functions] - For [Google Cloud][google-cloud-functions] and [Firebase][firebase-functions] functions.
34-
- [`partymix`][partymix] - For [PartyKit][partykit].
35-
- [`@scandinavianairlines/remix-azure-functions`][remix-azure-functions]: For [Azure Functions][azure-functions] and [Azure Static Web Apps][azure-static-web-apps].
27+
- [`@fastly/remix-server-adapter`][fastly-remix-server-adapter] For [Fastly Compute][fastly-compute].
28+
- [`@mcansh/remix-fastify`][remix-fastify] For [Fastify][fastify].
29+
- [`@mcansh/remix-raw-http`][remix-raw-http] For a good old bare-bones Node.js server.
30+
- [`@netlify/remix-adapter`][netlify-remix-adapter] For [Netlify][netlify].
31+
- [`@netlify/remix-edge-adapter`][netlify-remix-edge-adapter] For [Netlify][netlify] Edge.
32+
- [`@vercel/remix`][vercel-remix] For [Vercel][vercel].
33+
- [`remix-google-cloud-functions`][remix-google-cloud-functions] For [Google Cloud][google-cloud-functions] and [Firebase][firebase-functions] functions.
34+
- [`partymix`][partymix] For [PartyKit][partykit].
35+
- [`@scandinavianairlines/remix-azure-functions`][remix-azure-functions] For [Azure Functions][azure-functions] and [Azure Static Web Apps][azure-static-web-apps].
3636

3737
## Creating an Adapter
3838

@@ -65,7 +65,7 @@ app.all(
6565
// to pass that build to the request handler
6666
build: require("./build"),
6767

68-
// return anything you want here to be available as `context` in your
68+
// Return anything you want here to be available as `context` in your
6969
// loaders and actions. This is where you can bridge the gap between Remix
7070
// and your server
7171
getLoadContext(req, res) {

docs/other-api/create-remix.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ title: "create-remix (CLI)"
88

99
The `create-remix` CLI will create a new Remix project. Without passing arguments, this command will launch an interactive CLI to configure the new project and set it up in a given directory.
1010

11-
```sh
11+
```shellscript nonumber
1212
npx create-remix@latest
1313
```
1414

15-
Optionally you can pass the desired directory path as an argument:
15+
Optionally, you can pass the desired directory path as an argument:
1616

17-
```sh
17+
```shellscript nonumber
1818
npx create-remix@latest <projectDir>
1919
```
2020

21-
The default application is a TypeScript app using the built in [Remix App Server][remix-app-server]. If you wish to create your application based on a different setup, you can use the [`--template`][template-flag-hash-link] flag:
21+
The default application is a TypeScript app using the built-in [Remix App Server][remix-app-server]. If you wish to create your application based on a different setup, you can use the [`--template`][template-flag-hash-link] flag:
2222

23-
```sh
23+
```shellscript nonumber
2424
npx create-remix@latest --template <templateUrl>
2525
```
2626

2727
To get a full list of available commands and flags, run:
2828

29-
```sh
29+
```shellscript nonumber
3030
npx create-remix@latest --help
3131
```
3232

3333
### Package managers
3434

35-
`create-remix` can also be invoked using various package managers, allowing you to choose between npm, Yarn, pnpm, and Bun for managing the install process.
35+
`create-remix` can also be invoked using various package managers, allowing you to choose between npm, Yarn, pnpm, and Bun for managing the installation process.
3636

37-
```sh
37+
```shellscript nonumber
3838
npm create remix@latest <projectDir>
3939
# or
4040
yarn create remix@latest <projectDir>
@@ -57,7 +57,7 @@ A valid template can be:
5757
- a local file path to a directory of files — `./path/to/remix-template`
5858
- a local file path to a tarball — `./path/to/remix-template.tar.gz`
5959

60-
```sh
60+
```shellscript nonumber
6161
npx create-remix@latest ./my-app --template remix-run/grunge-stack
6262
npx create-remix@latest ./my-app --template remix-run/remix/templates/remix
6363
npx create-remix@latest ./my-app --template remix-run/examples/basic

docs/other-api/dev.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ HMR handles client-side code updates like when you change the components, markup
102102
Likewise, HDR handles server-side code updates.
103103

104104
That means any time your change a [`loader`][loader] on your current page (or any code that your `loader` depends on), Remix will re-fetch data from your changed loader.
105-
That way your app is _always_ up-to-date with the latest code changes, client-side or server-side.
105+
That way your app is _always_ up to date with the latest code changes, client-side or server-side.
106106

107107
To learn more about how HMR and HDR work together, check out [Pedro's talk at Remix Conf 2023][legendary_dx].
108108

109109
</docs-info>
110110

111-
#### With custom app server
111+
#### With a custom app server
112112

113113
If you used a template to get started, hopefully it's already integrated with `remix dev` out-of-the-box.
114114
If not, you can follow these steps to integrate your project with `remix dev`:
@@ -200,7 +200,7 @@ remix dev -c "remix-serve --port 8000 ./build/index.js"
200200
```
201201

202202
In contrast, the `remix dev --port` option is an escape-hatch for users who need fine-grain control of network ports.
203-
Most users, should not need to use `remix dev --port`.
203+
Most users should not need to use `remix dev --port`.
204204

205205
#### Manual mode
206206

@@ -214,7 +214,7 @@ You can see if app server restarts are a bottleneck for your project by comparin
214214

215215
#### Pick up changes from other packages
216216

217-
If you are using a monorepo, you might want Remix to perform hot updates not only when your app code changes, but whenever you change code in any of your apps dependencies.
217+
If you are using a monorepo, you might want Remix to perform hot updates not only when your app code changes, but whenever you change code in any of your app's dependencies.
218218

219219
For example, you could have a UI library package (`packages/ui`) that is used within your Remix app (`packages/app`).
220220
To pick up changes in `packages/ui`, you can configure [watchPaths][watch_paths] to include your packages.
@@ -238,7 +238,7 @@ For example, you can use `NODE_OPTIONS` to set Node's `--require` flag when runn
238238
}
239239
```
240240

241-
If you're using ESM as the default module system you will need to set the `--import` flag instead of `--require`:
241+
If you're using ESM as the default module system, you will need to set the `--import` flag instead of `--require`:
242242

243243
```json filename=package.json
244244
{
@@ -295,11 +295,11 @@ Now, hot updates will be sent correctly to the proxy:
295295
##### Path imports
296296

297297
Currently, when Remix rebuilds your app, the compiler has to process your app code along with any of its dependencies.
298-
The compiler tree-shakes unused code from app so that you don't ship any unused code to browser and so that you keep your server as slim as possible.
298+
The compiler tree-shakes unused code from the app so that you don't ship any unused code to the browser and so that you keep your server as slim as possible.
299299
But the compiler still needs to _crawl_ all the code to know what to keep and what to tree shake away.
300300

301301
In short, this means that the way you do imports and exports can have a big impact on how long it takes to rebuild your app.
302-
For example, if you are using a library like Material UI or AntD you can likely speed up your builds by using [path imports][path_imports]:
302+
For example, if you are using a library like Material UI or AntD, you can likely speed up your builds by using [path imports][path_imports]:
303303

304304
```diff
305305
- import { Button, TextField } from '@mui/material';
@@ -327,7 +327,7 @@ check out our [discussion on Hot Module Replacement][hmr] to learn more about th
327327
Hot Data Revalidation detects loader changes by trying to bundle each loader and then fingerprinting the content for each.
328328
It relies on tree shaking to determine whether your changes affect each loader or not.
329329

330-
To ensure that tree shaking can reliably detect changes to loaders, make sure you declare that your app's package is side effect free:
330+
To ensure that tree shaking can reliably detect changes to loaders, make sure you declare that your app's package is side-effect-free:
331331

332332
```json filename=package.json
333333
{

docs/other-api/node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This package contains utilities and polyfills for Node.js.
88

99
## Polyfills
1010

11-
Since Remix relies on browser APIs such as `fetch` that aren't natively & stably available yet in Node.js you may find that your unit tests fail without these globals when running with tools such as Jest.
11+
Since Remix relies on browser APIs such as `fetch` that aren't natively and stably available yet in Node.js you may find that your unit tests fail without these globals when running with tools such as Jest.
1212

1313
Your testing framework should provide you with a hook or location to polyfill globals / mock out APIs; here you can add the following lines to install the globals that Remix relies on:
1414

docs/other-api/serve.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ order: 3
55

66
# Remix App Server
77

8-
Remix is designed for you to own your server, but if you don't want to set one up you can use the Remix App Server instead. It's a production-ready, but basic Node.js server built with Express.
8+
Remix is designed for you to own your server, but if you don't want to set one up, you can use the Remix App Server instead. It's a production-ready but basic Node.js server built with Express.
99

10-
By design, we do not provide options to customize the Remix App Server because if you need to customize the underlying `express` server, we'd rather you manage the server completely instead of creating an abstraction to handle all of the possible customizations you may require. If you find you want to customize it, you should use the `@remix-run/express` adapter instead.
10+
By design, we do not provide options to customize the Remix App Server because if you need to customize the underlying `express` server, we'd rather you manage the server completely instead of creating an abstraction to handle all the possible customizations you may require. If you find you want to customize it, you should use the `@remix-run/express` adapter instead.
1111

12-
You can see the underlying `express` server configuration in [packages/remix-serve/cli.ts][remix-serve-code]. By default it uses the following Express middlewares (please refer to their documentation for default behaviors):
12+
You can see the underlying `express` server configuration in [packages/remix-serve/cli.ts][remix-serve-code]. By default, it uses the following Express middlewares (please refer to their documentation for default behaviors):
1313

1414
- [`compression`][compression]
1515
- [`express.static`][express-static] (and thus [`serve-static`][serve-static])
@@ -69,7 +69,7 @@ In development, `remix-serve` will ensure the latest code is run by purging the
6969

7070
If you need a workaround for preserving cache in development, you can set up a [singleton][singleton] in your server.
7171

72-
- Any **module side effects** will remain in place! This may cause problems, but should probably be avoided anyway.
72+
- Any **module side effects** will remain in place! This may cause problems but should probably be avoided anyway.
7373

7474
```tsx lines=[3-6]
7575
import { json } from "@remix-run/node"; // or cloudflare/deno
@@ -86,7 +86,7 @@ In development, `remix-serve` will ensure the latest code is run by purging the
8686

8787
If you need to write your code in a way that has these types of module side effects, you should set up your own [@remix-run/express][remix-run-express] server and a tool in development like pm2-dev or nodemon to restart the server on file changes instead.
8888

89-
In production this doesn't happen. The server boots up and that's the end of it.
89+
In production this doesn't happen. The server boots up, and that's the end of it.
9090

9191
[remix-run-express]: ./adapter#createrequesthandler
9292
[singleton]: ../guides/manual-mode#keeping-in-memory-server-state-across-rebuilds

docs/other-api/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: "@remix-run/testing"
66

77
This package contains utilities to assist in unit testing portions of your Remix application. This is accomplished by mocking the Remix route modules/assets manifest output by the compiler and generating an in-memory React Router app via [createMemoryRouter][create-memory-router].
88

9-
The general usage of this is to test components/hooks that rely on Remix hooks/components which you do not have the ability to cleanly mock ([`useLoaderData`][use-loader-data], [`useFetcher`][use-fetcher], etc.). While it can also be used for more advanced testing such as clicking links and navigating to pages, those are better suited for End-to-End tests via something like [Cypress][cypress] or [Playwright][playwright].
9+
The general usage of this is to test components/hooks that rely on Remix hooks/components which you aren't able to cleanly mock ([`useLoaderData`][use-loader-data], [`useFetcher`][use-fetcher], etc.). While it can also be used for more advanced testing such as clicking links and navigating to pages, those are better suited for End-to-End tests via something like [Cypress][cypress] or [Playwright][playwright].
1010

1111
## Usage
1212

0 commit comments

Comments
 (0)