Skip to content

Commit 1fd916a

Browse files
Merge branch 'feat/fix-blur-image-position' of github.com:schoenwaldnils/next.js into feat/fix-blur-image-position
* 'feat/fix-blur-image-position' of github.com:schoenwaldnils/next.js: Update next/image docs for relative parent with layout=fill. (#26615) Add link to live demo already hosted (#25718) Enable Alex documentation linting for docs (#26598) Add check for ObjectExpression when iterating on <link> tags for font optimization (#26608) v11.0.2-canary.2 Add trace url on bootup (#26594) v11.0.2-canary.1
2 parents 06d2621 + f45c785 commit 1fd916a

File tree

40 files changed

+127
-67
lines changed

40 files changed

+127
-67
lines changed

.alexignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
CODE_OF_CONDUCT.md
2-
docs/
32
examples/

.alexrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
{
22
"allow": [
3+
"attacks",
4+
"color",
35
"dead",
6+
"execute",
47
"executed",
58
"executes",
9+
"execution",
10+
"executions",
611
"failed",
712
"failure",
13+
"failures",
14+
"fire",
15+
"fires",
816
"hook",
17+
"hooks",
918
"host-hostess",
1019
"invalid"
1120
]
12-
}
21+
}

docs/advanced-features/codemods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default withRouter(
169169
)
170170
```
171171

172-
This is just one case. All the cases that are transformed (and tested) can be found in the [`__testfixtures__` directory](https://github.com/vercel/next.js/tree/canary/packages/next-codemod/transforms/__testfixtures__/url-to-withrouter).
172+
This is one case. All the cases that are transformed (and tested) can be found in the [`__testfixtures__` directory](https://github.com/vercel/next.js/tree/canary/packages/next-codemod/transforms/__testfixtures__/url-to-withrouter).
173173

174174
#### Usage
175175

docs/advanced-features/custom-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The `Component` prop is the active `page`, so whenever you navigate between rout
4242

4343
### Caveats
4444

45-
- If your app is running and you just added a custom `App`, you'll need to restart the development server. Only required if `pages/_app.js` didn't exist before.
45+
- If your app is running and you added a custom `App`, you'll need to restart the development server. Only required if `pages/_app.js` didn't exist before.
4646
- Adding a custom `getInitialProps` in your `App` will disable [Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md) in pages without [Static Generation](/docs/basic-features/data-fetching.md#getstaticprops-static-generation).
4747
- When you add `getInitialProps` in your custom app, you must `import App from "next/app"`, call `App.getInitialProps(appContext)` inside `getInitialProps` and merge the returned object into the return value.
4848
- `App` currently does not support Next.js [Data Fetching methods](/docs/basic-features/data-fetching.md) like [`getStaticProps`](/docs/basic-features/data-fetching.md#getstaticprops-static-generation) or [`getServerSideProps`](/docs/basic-features/data-fetching.md#getserversideprops-server-side-rendering).

docs/advanced-features/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Now hit <kdb>F5</kbd> or select **Debug: Start Debugging** from the Command Pale
6969

7070
Now you can use the [`debugger`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger) statement to pause your backend or frontend code anytime you want to observe and debug your code more precisely.
7171

72-
If you trigger the underlying code by refreshing the current page, clicking on a page link or fetching an API route, your code will be paused and the debugger window will pop up.
72+
If you trigger the underlying code by refreshing the current page, clicking on a page link or fetching an API route, your code will be paused and the debugger window will appear.
7373

7474
To learn more on how to use a JavaScript debugger, take a look at the following documentation:
7575

docs/advanced-features/dynamic-import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function Page() {
4545

4646
You can think of dynamic imports as another way to split your code into manageable chunks.
4747

48-
React components can also be imported using dynamic imports, but in this case we use it in conjunction with `next/dynamic` to make sure it works just like any other React Component. Check out the sections below for more details on how it works.
48+
React components can also be imported using dynamic imports, but in this case we use it in conjunction with `next/dynamic` to make sure it works like any other React Component. Check out the sections below for more details on how it works.
4949

5050
## Basic usage
5151

docs/advanced-features/multi-zones.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ With multi zones support, you can merge both these apps into a single one allowi
1818

1919
## How to define a zone
2020

21-
There are no special zones related APIs. You only need to do following:
21+
There are no zone related APIs. You only need to do following:
2222

2323
- Make sure to keep only the pages you need in your app, meaning that an app can't have pages from another app, if app `A` has `/blog` then app `B` shouldn't have it too.
2424
- Make sure to configure a [basePath](/docs/api-reference/next.config.js/basepath.md) to avoid conflicts with pages and static files.

docs/advanced-features/static-html-export.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The exported app supports almost every feature of Next.js, including dynamic rou
1717

1818
`next export` works by prerendering all pages to HTML. For [dynamic routes](/docs/routing/dynamic-routes.md), your page can export a [`getStaticPaths`](/docs/basic-features/data-fetching.md#getstaticpaths-static-generation) function to let the exporter know which HTML pages to generate for that route.
1919

20-
> `next export` is intended for scenarios where **none** of your pages have server-side or incremental data requirements (though statically-rendered pages can still [fetch data on the client side](/docs/basic-features/data-fetching.md#fetching-data-on-the-client-side) just fine).
20+
> `next export` is intended for scenarios where **none** of your pages have server-side or incremental data requirements (though statically-rendered pages can still [fetch data on the client side](/docs/basic-features/data-fetching.md#fetching-data-on-the-client-side)).
2121
>
2222
> If you're looking to make a hybrid site where only _some_ pages are prerendered to static HTML, Next.js already does that automatically for you! Read up on [Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md) for details.
2323
>

docs/api-reference/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ NODE_OPTIONS='--inspect' next
4646
- **Size** – The number of assets downloaded when navigating to the page client-side. The size for each route only includes its dependencies.
4747
- **First Load JS** – The number of assets downloaded when visiting the page from the server. The amount of JS shared by all is shown as a separate metric.
4848

49-
The first load is colored green, yellow, or red. Aim for green for performant applications.
49+
The first load is indicated by green, yellow, or red. Aim for green for performant applications.
5050

5151
You can enable production profiling for React with the `--profile` flag in `next build`. This requires [Next.js 9.5](https://nextjs.org/blog/next-9-5):
5252

docs/api-reference/create-next-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Create Next.js apps in one command with create-next-app.
44

55
# Create Next App
66

7-
The easiest way to get started with Next.js is by using `create-next-app`. This simple CLI tool enables you to quickly start building a new Next.js application, with everything set up for you. You can create a new app using the default Next.js template, or by using one of the [official Next.js examples](https://github.com/vercel/next.js/tree/canary/examples). To get started, use the following command:
7+
The easiest way to get started with Next.js is by using `create-next-app`. This CLI tool enables you to quickly start building a new Next.js application, with everything set up for you. You can create a new app using the default Next.js template, or by using one of the [official Next.js examples](https://github.com/vercel/next.js/tree/canary/examples). To get started, use the following command:
88

99
```bash
1010
npx create-next-app

0 commit comments

Comments
 (0)