Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: remove app-dir and with prefix in the mdx directory name #73458

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
10 changes: 5 additions & 5 deletions examples/with-mdx/README.md → examples/mdx-pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ This example shows using [MDX](https://github.com/mdx-js/mdx) as top level pages

## Deploy your own

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) or preview live with [StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-mdx)
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) or preview live with [StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/mdx-pages)

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-mdx&project-name=with-mdx&repository-name=with-mdx)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/mdx-pages&project-name=mdx-pages&repository-name=mdx-pages)

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:

```bash
npx create-next-app --example with-mdx with-mdx-app
npx create-next-app --example mdx-pages mdx-pages-app
```

```bash
yarn create next-app --example with-mdx with-mdx-app
yarn create next-app --example mdx-pages mdx-pages-app
```

```bash
pnpm create next-app --example with-mdx with-mdx-app
pnpm create next-app --example mdx-pages mdx-pages-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ This example shows how a simple blog might be built using the [next-mdx-remote](

## Deploy your own

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) or preview live with [StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-mdx-remote)
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) or preview live with [StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/mdx-remote)

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-mdx-remote&project-name=with-mdx-remote&repository-name=with-mdx-remote)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/mdx-remote&project-name=mdx-remote&repository-name=mdx-remote)

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [Bun](https://bun.sh/docs/cli/bunx) to bootstrap the example:

```bash
npx create-next-app --example with-mdx-remote with-mdx-remote-app
npx create-next-app --example mdx-remote mdx-remote-app
```

```bash
yarn create next-app --example with-mdx-remote with-mdx-remote-app
yarn create next-app --example mdx-remote mdx-remote-app
```

```bash
pnpm create next-app --example with-mdx-remote with-mdx-remote-app
pnpm create next-app --example mdx-remote mdx-remote-app
```

```bash
bunx create-next-app --example with-mdx-remote with-mdx-remote-app
bunx create-next-app --example mdx-remote mdx-remote-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/app/building-your-application/deploying)).
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/run-for-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const CHANGE_ITEM_GROUPS = {
'packages/create-next-app',
'test/integration/create-next-app',
'examples/basic-css',
'examples/with-mdx',
'examples/mdx-pages',
'examples/with-sass',
'examples/with-eslint',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { runTests } from './utils'

// Skip in Turbopack as Yarn PnP is not supported.
;(process.env.TURBOPACK ? describe.skip : describe)('yarn PnP', () => {
runTests('with-mdx', '/', ['Look, a button', 'Hello'])
runTests('mdx-pages', '/', ['Look, a button', 'Hello'])
})
6 changes: 3 additions & 3 deletions test/examples/examples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const testedExamples = [
'api-routes-middleware',
'api-routes-rate-limit',
'api-routes-rest',
'app-dir-mdx',
'basic-css',
'basic-export',
'blog',
Expand All @@ -28,6 +27,7 @@ const testedExamples = [
'image-component',
'image-legacy-component',
'layout-component',
'mdx',
'middleware',
'middleware-matcher',
'nested-components',
Expand All @@ -51,10 +51,10 @@ const testedExamples = [
'with-webassembly',

// Library integrations that we can't break
'mdx-pages',
'mdx-remote',
'with-jest',
'with-jest-babel',
'with-mdx',
'with-mdx-remote',
'with-turbopack',
]

Expand Down
4 changes: 2 additions & 2 deletions test/turbopack-build-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6510,11 +6510,11 @@
"flakey": [],
"runtimeError": false
},
"test/e2e/yarn-pnp/test/with-mdx.test.ts": {
"test/e2e/yarn-pnp/test/mdx-pages.test.ts": {
"passed": [],
"failed": [],
"pending": [
"yarn PnP should compile and serve the index page correctly with-mdx"
"yarn PnP should compile and serve the index page correctly mdx-pages"
],
"flakey": [],
"runtimeError": false
Expand Down
4 changes: 2 additions & 2 deletions test/turbopack-dev-examples-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"api-routes-middleware": true,
"api-routes-rate-limit": true,
"api-routes-rest": true,
"app-dir-mdx": true,
"auth": true,
"auth-with-stytch": true,
"auth0": true,
Expand Down Expand Up @@ -58,6 +57,8 @@
"image-legacy-component": true,
"inngest": true,
"layout-component": true,
"mdx": true,
"mdx-remote": true,
"middleware": true,
"middleware-matcher": true,
"nested-components": true,
Expand Down Expand Up @@ -130,7 +131,6 @@
"with-magic": true,
"with-mantine": true,
"with-mdbreact": true,
"with-mdx-remote": true,
"with-mobx": true,
"with-mobx-state-tree": true,
"with-mongodb": true,
Expand Down
4 changes: 2 additions & 2 deletions test/turbopack-dev-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10504,11 +10504,11 @@
"flakey": [],
"runtimeError": false
},
"test/e2e/yarn-pnp/test/with-mdx.test.ts": {
"test/e2e/yarn-pnp/test/mdx-pages.test.ts": {
"passed": [],
"failed": [],
"pending": [
"yarn PnP should compile and serve the index page correctly with-mdx"
"yarn PnP should compile and serve the index page correctly mdx-pages"
],
"flakey": [],
"runtimeError": false
Expand Down
Loading