Skip to content

Commit

Permalink
update docs (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 10, 2021
1 parent e7ca0da commit 7a72861
Show file tree
Hide file tree
Showing 24 changed files with 315 additions and 378 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ If you are interested in contributing to the Persian translation of Nuxtjs.org p

## Development

Start the dev server on [localhost:3000](http://localhost:3000)
Start the dev server on [http://localhost:3000](http://localhost:3000)

```bash
yarn dev
Expand Down
4 changes: 2 additions & 2 deletions content/en/blog/build-dev-to-clone-with-nuxt-new-fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _Let’s build a blazing fast articles and tutorials app using Nuxt and the DEV
<video src="/blog/build-dev-to-clone-with-nuxt-new-fetch/dev-clone-nuxt.mp4" autoplay loop playsinline controls></video>

<p align="center">
<a href="https://dev-clone.nuxtjs.app" target="_blank" rel="noopener nofollow">View demo</a> /
<a href="https://dev-clone.nuxtjs.app" target="_blank" rel="noopener nofollow">View demo</a> /
<a href="https://github.com/bdrtsky/nuxt-dev-to-clone" target="_blank" rel="noopener nofollow">Source</a>
</p>

Expand Down Expand Up @@ -79,7 +79,7 @@ npx create-nuxt-app nuxt-dev-to-clone
# leave the default answers for each question
```

Now `cd nuxt-dev-to-clone/` and run `npm run dev`. Congrats, your Nuxt app is running on [localhost:3000](http://localhost:3000/)!
Now `cd nuxt-dev-to-clone/` and run `npm run dev`. Congrats, your Nuxt app is running on [http://localhost:3000](http://localhost:3000/)!

Let’s install necessary packages and discuss how we will build our app next.

Expand Down
4 changes: 2 additions & 2 deletions content/en/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ npm run dev
</code-block>
</code-group>

The application is now running on [localhost:3000](http://localhost:3000). Well done!
The application is now running on [http://localhost:3000](http://localhost:3000). Well done!

<base-alert type="info">

Expand Down Expand Up @@ -199,7 +199,7 @@ We use the dev command when running our application in development mode.

</base-alert>

The application is now running on **[localhost:3000](http://localhost:3000/)**.
The application is now running on **[http://localhost:3000](http://localhost:3000/)**.

Open it in your browser by clicking the link in your terminal and you should see the text "Hello World" we copied in the previous step.

Expand Down
4 changes: 2 additions & 2 deletions content/es/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Usamos el comando dev cuando ejecutamos nuestra aplicación en modo desarrollo.

</base-alert>

La aplicación se está ejecutando ahora en **[localhost:3000](http://localhost:3000/).**
La aplicación se está ejecutando ahora en **[http://localhost:3000](http://localhost:3000/).**

Ábrela en tu navegador haciendo clic en el enlace de tu terminal y deberías ver el texto "Hello World!" que copiamos en el paso anterior.

Expand Down Expand Up @@ -241,4 +241,4 @@ npm run dev
</code-block>
</code-group>

La aplicación se está ejecutando ahora en [localhost:3000](http://localhost:3000). ¡Bien hecho!
La aplicación se está ejecutando ahora en [http://localhost:3000](http://localhost:3000). ¡Bien hecho!
4 changes: 2 additions & 2 deletions content/fa/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ npm run dev

</base-alert>

برنامه هم اکنون در آدرس **[localhost:3000](http://localhost:3000/)** در حال اجرا است.
برنامه هم اکنون در آدرس **[http://localhost:3000](http://localhost:3000/)** در حال اجرا است.

با کلیک بروی لینک در ترمینال، آدرس را در مرورگر خود باز کنید. خواهید دید که متن "Hello World" که در مراحل قبلی کپی شد. بروی صفحه نمایش داده خواهد شد.

Expand Down Expand Up @@ -241,4 +241,4 @@ npm run dev
</code-block>
</code-group>

نرم افزار شما بروی [localhost:3000](http://localhost:3000) قابل دسترسی است. آفرین
نرم افزار شما بروی [http://localhost:3000](http://localhost:3000) قابل دسترسی است. آفرین
4 changes: 2 additions & 2 deletions content/fr/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ npm run dev
</code-block>
</code-group>

Notre application est maintenant en cours d'exécution sur [localhost:3000](http://localhost:3000).
Notre application est maintenant en cours d'exécution sur [http://localhost:3000](http://localhost:3000).

<base-alert type="info">

Expand Down Expand Up @@ -199,7 +199,7 @@ La commande `dev` est utilisée lorsque l'application est lancée en mode dével

</base-alert>

L'application est maintenant en cours d'exécution sur **[localhost:3000](http://localhost:3000/).**
L'application est maintenant en cours d'exécution sur **[http://localhost:3000](http://localhost:3000/).**

On peut l'ouvrir dans notre navigateur en cliquant sur le lien dans le terminal et nous devrions voir le texte "Hello World" que nous avons ajouté dans l'étape précédente.

Expand Down
4 changes: 2 additions & 2 deletions content/id/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Kita gunakan perintah _dev_ ketika menjalankan aplikasi dalam mode pengembangan.

</base-alert>

Aplikasi sekarang berjalan di **[localhost:3000](http://localhost:3000/).**
Aplikasi sekarang berjalan di **[http://localhost:3000](http://localhost:3000/).**

Buka di _browser_ Anda dengan mengklik link di terminal Anda dan Anda akan melihat teks "Hello World" yang kita salin di langkah sebelumnya.

Expand Down Expand Up @@ -242,4 +242,4 @@ npm run dev
</code-block>
</code-group>

Aplikasi sekarang berjalan di [localhost:3000](http://localhost:3000). Bagus!
Aplikasi sekarang berjalan di [http://localhost:3000](http://localhost:3000). Bagus!
4 changes: 2 additions & 2 deletions content/ja/_archives/guide/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ position: 113

| コマンド | 説明 |
| ---------- | ------------------------------------------------------------------------------------------------------------- |
| nuxt dev | 開発サーバーを [localhost:3000](http://localhost:3000) で起動します。このサーバーはホットリローディングします |
| nuxt dev | 開発サーバーを [http://localhost:3000](http://localhost:3000) で起動します。このサーバーはホットリローディングします |
| nuxt build | アプリケーションを Webpack でビルドし、JS と CSS をプロダクション向けにミニファイします |
| nuxt start | プロダクションモードでサーバーを起動します(`nuxt build` 後に実行してください) |

`static`

| コマンド | 説明 |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| nuxt dev | 開発サーバーを [localhost:3000](http://localhost:3000) で起動します。このサーバーはホットリローディングします。 |
| nuxt dev | 開発サーバーを [http://localhost:3000](http://localhost:3000) で起動します。このサーバーはホットリローディングします。 |
| nuxt start | dist/ directory からプロダクションアプリケーションを提供します(Nuxt v2.13 以上) |
| nuxt generate | アプリケーションをビルドして、ルートごとに HTML ファイルを生成します(Nuxt v2.12 以下で静的ファイルのホスティングに用います) |

Expand Down
4 changes: 2 additions & 2 deletions content/ja/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ npm run dev
</code-block>
</code-group>

アプリケーションは [localhost:3000](http://localhost:3000) で実行されています。おつかれさまでした!
アプリケーションは [http://localhost:3000](http://localhost:3000) で実行されています。おつかれさまでした!

<base-alert type="info">

Expand Down Expand Up @@ -199,7 +199,7 @@ npm run dev

</base-alert>

今、アプリケーションは **[localhost:3000](http://localhost:3000/)** で実行されています。
今、アプリケーションは **[http://localhost:3000](http://localhost:3000/)** で実行されています。

ターミナルのリンクをクリックしてブラウザを開くと、前のステップでコピーした「Hello World」のテキストが表示されます。

Expand Down
2 changes: 1 addition & 1 deletion content/ko/_archives/guide/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ position: 113

| 명령어 | 설명 |
| ------------- | ------------------------------------------------------------------------------------------------- |
| nuxt | 개발서버를 핫 리로딩 상태로 [localhost:3000](http://localhost:3000)에 시작합니다. |
| nuxt | 개발서버를 핫 리로딩 상태로 [http://localhost:3000](http://localhost:3000)에 시작합니다. |
| nuxt build | Webpack을 통해 어플리케이션을 빌드하며, CSS와 JS를 minify하는 작업을 진행합니다.(프로덕션 용으로) |
| nuxt start | 프로덕션 모드로 서버를 시작합니다.(`nuxt build`를 실행한 후에) |
| nuxt generate | 어플리케이션을 빌드하고 모든 라우트를 HTML 파일로 생성합니다. (정적 호스팅에 사용됩니다.) |
Expand Down
4 changes: 2 additions & 2 deletions content/ko/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ npm run dev

</base-alert>

이제 애플리케이션은 **[localhost:3000](http://localhost:3000/).**에서 실행됩니다.
이제 애플리케이션은 **[http://localhost:3000](http://localhost:3000/).**에서 실행됩니다.

터미널에서 링크를 클릭하여 브라우저에서 애플리케이션을 열면 이전 단계에서 복사한 "Hello World" 텍스트가 보입니다.

Expand Down Expand Up @@ -241,4 +241,4 @@ npm run dev
</code-block>
</code-group>

이제 애플리케이션은 [localhost:3000](http://localhost:3000)에서 실행됩니다. 잘하셨습니다!
이제 애플리케이션은 [http://localhost:3000](http://localhost:3000)에서 실행됩니다. 잘하셨습니다!
4 changes: 2 additions & 2 deletions content/pt/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Usamos o comando dev para executar nossa aplicação no modo de desenvolvimento.

</base-alert>

A aplicação agora está sendo executada em **[localhost:3000](http://localhost:3000/).**
A aplicação agora está sendo executada em **[http://localhost:3000](http://localhost:3000/).**

Abra-o em seu navegador clicando no link em seu terminal e você deverá ver o texto "Hello World" que copiamos na etapa anterior.

Expand Down Expand Up @@ -241,4 +241,4 @@ npm run dev
</code-block>
</code-group>

A aplicação está rodando no [localhost:3000](http://localhost:3000) agora. Parabéns!
A aplicação está rodando no [http://localhost:3000](http://localhost:3000) agora. Parabéns!
2 changes: 1 addition & 1 deletion content/ru/_archives/guide/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ position: 113

| Команда | Описание |
| ------------------ | ------------------------------------------------------------------------------------------------------------------ |
| nuxt | Запустить сервер разработки [localhost:3000](http://localhost:3000) с горячей заменой модулей (hot-reloading). |
| nuxt | Запустить сервер разработки [http://localhost:3000](http://localhost:3000) с горячей заменой модулей (hot-reloading). |
| nuxt&nbsp;build | Собрать приложение webpack'ом и минифицировать JS & CSS (для продакшн-версии). |
| nuxt&nbsp;start | Запустить сервер в продакшн-режиме (сперва необходимо запустить `nuxt build`). |
| nuxt&nbsp;generate | Собрать приложение и сгенерировать каждый маршрут в виде HTML файла (используется в случае статического хостинга). |
Expand Down
4 changes: 2 additions & 2 deletions content/ru/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ npm run dev

</base-alert>

Теперь приложение запущено по адресу **[localhost:3000](http://localhost:3000/).**
Теперь приложение запущено по адресу **[http://localhost:3000](http://localhost:3000/).**

Откройте ваше приложение, нажав на ссылку в терминале, и вы увидите текст "Привет мир!", который мы добавили на предыдущем шаге.

Expand Down Expand Up @@ -241,4 +241,4 @@ npm run dev
</code-block>
</code-group>

Теперь приложение запущено по адресу [localhost:3000](http://localhost:3000). Отлично сработано!
Теперь приложение запущено по адресу [http://localhost:3000](http://localhost:3000). Отлично сработано!
2 changes: 1 addition & 1 deletion content/zh/guide/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ position: 113

| 命令 | 描述 |
| ------------- | --------------------------------------------------------------------------------- |
| nuxt | 启动一个热加载的 Web 服务器(开发模式) [localhost:3000](http://localhost:3000)|
| nuxt | 启动一个热加载的 Web 服务器(开发模式) [http://localhost:3000](http://localhost:3000)|
| nuxt build | 利用 webpack 编译应用,压缩 JS 和 CSS 资源(发布用)。 |
| nuxt start | 以生产模式启动一个 Web 服务器 (需要先执行`nuxt build`)。 |
| nuxt generate | 编译应用,并依据路由配置生成对应的 HTML 文件 (用于静态站点的部署)。 |
Expand Down
2 changes: 1 addition & 1 deletion content/zh/guide/development-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ mkdir test
</style>
```

当我们利用 `npm run dev` 启动开发服务器的时候,用浏览器打开 [localhost:3000](http://localhost:3000),我们能看到红色的 `Hello world` 标题。
当我们利用 `npm run dev` 启动开发服务器的时候,用浏览器打开 [http://localhost:3000](http://localhost:3000),我们能看到红色的 `Hello world` 标题。

添加一个单元测试文件 `test/index.test.js`

Expand Down
4 changes: 2 additions & 2 deletions content/zh/guides/get-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ npm run dev
</code-block>
</code-group>

项目现在运行在 [localhost:3000](http://localhost:3000)上,干的漂亮 XD!
项目现在运行在 [http://localhost:3000](http://localhost:3000)上,干的漂亮 XD!

<base-alert type="info">

Expand Down Expand Up @@ -199,7 +199,7 @@ npm run dev

</base-alert>

现在项目运行在 **[localhost:3000](http://localhost:3000/).**
现在项目运行在 **[http://localhost:3000](http://localhost:3000/).**

打开你的浏览器,并在终端中点击链接,你就能看到我们在上一步中复制的文本“Hello World”。

Expand Down
9 changes: 8 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,19 @@ export default {
pwa: {
manifest: {
name: 'NuxtJS',
description: 'Nuxt.js official website',
theme_color: '#00C58E'
}
},

// Auto import components, see https://github.com/nuxt/components
components: true,
components: [
'~/components/templates',
'~/components/global',
'~/components/atoms',
'~/components/molecules',
'~/components/organisms',
],
colorMode: {
preference: 'light' // disable system
},
Expand Down
Loading

0 comments on commit 7a72861

Please sign in to comment.