Skip to content

Commit

Permalink
examples: remove app-dir in the mdx directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
JamBalaya56562 committed Dec 10, 2024
1 parent b722a0a commit 679be62
Show file tree
Hide file tree
Showing 40 changed files with 25 additions and 20 deletions.
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.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ Since `next-remote-watch` uses undocumented Next.js APIs, it doesn't replace the

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):

[![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/), or [pnpm](https://pnpm.io) 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
```

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)).
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.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions examples/mdx/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
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 @@ -8852,11 +8852,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

0 comments on commit 679be62

Please sign in to comment.