Skip to content

Commit aa63027

Browse files
committed
examples: simplify download instruction
1 parent 6b18e34 commit aa63027

File tree

12 files changed

+24
-24
lines changed

12 files changed

+24
-24
lines changed

examples/basic-css/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Download the example:
77

88
```bash
9-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/basic-css
10-
cd next.js-master/examples/basic-css
9+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/basic-css
10+
cd basic-css
1111
```
1212

1313
or clone the repo:

examples/custom-server-express/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Download the example:
77

88
```bash
9-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/custom-server-express
10-
cd next.js-master/examples/custom-server-express
9+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/custom-server-express
10+
cd custom-server-express
1111
```
1212

1313
or clone the repo:

examples/custom-server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Download the example:
77

88
```bash
9-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/custom-server
10-
cd next.js-master/examples/custom-server
9+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/custom-server
10+
cd custom-server
1111
```
1212

1313
or clone the repo:

examples/head-elements/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Download the example:
77

88
```bash
9-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/head-elements
10-
cd next.js-master/examples/head-elements
9+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/head-elements
10+
cd head-elements
1111
```
1212

1313
or clone the repo:

examples/hello-world/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Download the example:
77

88
```bash
9-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/hello-world
10-
cd next.js-master/examples/hello-world
9+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/hello-world
10+
cd hello-world
1111
```
1212

1313
or clone the repo:

examples/nested-components/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Download the example:
77

88
```bash
9-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/nested-components
10-
cd next.js-master/examples/nested-components
9+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/nested-components
10+
cd nested-components
1111
```
1212

1313
or clone the repo:

examples/parameterized-routing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Download the example:
77

88
```bash
9-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/parametrized-routing
10-
cd next.js-master/examples/parametrized-routing
9+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/parametrized-routing
10+
cd parametrized-routing
1111
```
1212

1313
or clone the repo:

examples/shared-modules/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Download the example:
66

77
```bash
8-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/shared-modules
9-
cd next.js-master/examples/shared-modules
8+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/shared-modules
9+
cd shared-modules
1010
```
1111

1212
or clone the repo:

examples/using-router/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Download the example:
66

77
```bash
8-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/using-router
9-
cd next.js-master/examples/using-router
8+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/using-router
9+
cd using-router
1010
```
1111

1212
or clone the repo:

examples/with-prefetching/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Download the example:
66

77
```bash
8-
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz next.js-master/examples/with-prefetching
9-
cd next.js-master/examples/with-prefetching
8+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/with-prefetching
9+
cd with-prefetching
1010
```
1111

1212
or clone the repo:

0 commit comments

Comments
 (0)