Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit a2e91f9

Browse files
author
BSKY
authored
Merge pull request #172 from gatsbyjs/conflicts-79b09bc
(sync) Resolve conflicts with gatsby-i18n-source @ 79b09bc
2 parents d85b697 + c6be0a6 commit a2e91f9

25 files changed

+47
-45
lines changed

docs/contributing/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ disableTableOfContents: true
66

77
Thanks for being interested in contributing! We're so glad you want to help!
88

9-
Below you'll find guides on the Gatsby.js community, code of conduct, and how to get started contributing:
9+
Below you'll find guides on the Gatsby community, code of conduct, and how to get started contributing:
1010

11-
- [Community](/contributing/community/): Learn why you should contribute to Gatsby.js, the most effective ways to do so, and all about the benefits (did we mention the free swag?)
12-
- [Code of Conduct](/contributing/code-of-conduct/): Read about what we expect from everyone participating in Gatsby.js to make it the most friendly and welcoming community
11+
- [Community](/contributing/community/): Learn why you should contribute to Gatsby, the most effective ways to do so, and all about the benefits (did we mention the free swag?)
12+
- [Code of Conduct](/contributing/code-of-conduct/): Read about what we expect from everyone participating in Gatsby to make it the most friendly and welcoming community
1313
- [Gatsby Style Guide](/contributing/gatsby-style-guide/): The art of contributing to Gatsby, a.k.a. the detailed requirements that will make it more likely your contribution is accepted with minimal changes
14-
- [How to Contribute](/contributing/how-to-contribute/): How to get the most out of your Gatsby.js contributing experience, including GitHub management tips, setup instructions for docs and code contributions, and more
15-
- [RFC process](/contributing/rfc-process): Learn how the Gatsby.js team manages bigger changes, by way of a “Request-for-comment” process on GitHub
14+
- [How to Contribute](/contributing/how-to-contribute/): How to get the most out of your Gatsby contributing experience, including GitHub management tips, setup instructions for docs and code contributions, and more
15+
- [RFC process](/contributing/rfc-process): Learn how the Gatsby team manages bigger changes, by way of a “Request-for-comment” process on GitHub
1616

1717
<EmailCaptureForm signupMessage="Want to keep up with the latest tips &amp; tricks? Subscribe to our newsletter!" />

docs/docs/add-offline-support-with-a-service-worker.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ Service Worker が更新を見つけたときに、カスタムメッセージ
5050
```javascript:title=gatsby-browser.js
5151
export const onServiceWorkerUpdateReady = () => {
5252
const answer = window.confirm(
53-
`アプリケーションが更新されました。 ` +
54-
`最新版を表示しますか?`
53+
`アプリケーションが更新されました。 ` + `最新版を表示しますか?`
5554
)
5655

5756
if (answer === true) {

docs/docs/babel.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@ Gatsby は [Babel](https://babeljs.io/) という素晴らしいプロジェク
88

99
Gatsby はデフォルトでメジャーなブラウザーの最新の 2 つのバージョンと IE9 以上 、そして 1% 以上のシェアがあるブラウザーをサポートしています。
1010

11-
つまり JavaScript は自動的にコンパイルされ、古いブラウザー上でも動作が保証されているということです。
12-
ポリフィルも自動的に追加されるため、コードが古いブラウザー上で不可解に壊れることはもうありません!
11+
つまり JavaScript は自動的にコンパイルされ、古いブラウザー上でも動作が保証されているということです。ポリフィルも自動的に追加されるため、コードが古いブラウザー上で不可解に壊れることはもうありません!
1312

14-
もし、新しいブラウザーのみの対応で良いなら、[サポートするブラウザー](/docs/browser-support/)のページをご覧ください。
15-
どのように Gatsby を設定すれば 、あなたがサポートしたいブラウザーのみを Babel がコンパイルしてくれるのか記載しています。
13+
もし、新しいブラウザーのみの対応で良いなら、[サポートするブラウザー](/docs/browser-support/)のページをご覧ください。どのように Gatsby を設定すれば、あなたがサポートしたいブラウザーのみを Babel がコンパイルしてくれるのか記載しています。
1614

1715
## どのようにカスタム .babelrc ファイルを使うか
1816

19-
Gatsby には、ほとんどのサイトで動くようなデフォルトの .babelrc ファイルがセットアップされています。
20-
もしあなたが Babel のプリセットやプラグインをカスタムしたい場合、ご自身専用の `.babelrc` をサイトのルートに作成してください。
21-
そして [`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby) をインポートし、
22-
プラグインやプリセットを追加後、例えば `babel-preset-gatsby``targets` のように値を設定してください。
17+
Gatsby には、ほとんどのサイトで動くようなデフォルトの .babelrc ファイルがセットアップされています。もしあなたが Babel のプリセットやプラグインをカスタムしたい場合、ご自身専用の `.babelrc` をサイトのルートに作成してください。そして [`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby) をインポートし、プラグインやプリセットを追加後、例えば `babel-preset-gatsby``targets` のように値を設定してください。
2318

2419
```shell
2520
npm install --save-dev babel-preset-gatsby

docs/docs/gatsby-cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ You can now view gatsbyjs.org in the browser.
102102
On Your Network: http://192.168.0.212:8000/ // highlight-line
103103
```
104104
105-
**ヒント**: ローカルにてビルドされた Gatsby サイトには、 `localhost:8000` または `On Your Network` に表示された URL からアクセスできます。
105+
**ヒント**: ローカルにてビルドされた Gatsby サイトには、`localhost:8000` または `On Your Network` に表示された URL からアクセスできます。
106106
107107
### `build`
108108

docs/docs/gatsby-image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ file(relativePath: { eq: "images/default.jpg" }) {
347347

348348
クエリーを作成した後、追加オプションを gatsby-image コンポーネントに渡すことができます。
349349

350-
| 名前 | タイプ | 説明 |
350+
| 名前 | タイプ | 説明 |
351351
| ---------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
352352
| `fixed` | `object` | `fixed` クエリーで返されるデータです。 |
353353
| `fluid` | `object` | `fluid` クエリーで返されるデータです。 |

docs/docs/how-shadowing-works.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export default props => (
283283
284284
This is the first case we'll handle when attempting to resolve the file.
285285
286-
In order to do this we need to leverage the **issuer** of the request. This points to the file that the request came from. This means it refers to _where_ the `import` occurs.
286+
In order to do this we need to leverage the **Issuer** of the request. This points to the file that the request came from. This means it refers to _where_ the `import` occurs.
287287
The **request** refers to what the import points to.
288288
289289
This is implemented by another method on the plugin's class which we call `requestPathIsIssuerShadowPath` which has the following method signature:
@@ -297,7 +297,7 @@ requestPathIsIssuerShadowPath({
297297
})
298298
```
299299
300-
`requestPathIsIssuerShadowPath` checks all possible directories for shadowing and then returns whether the issuer's path is found. Let's first take a look at the code and then unpack what's happening here.
300+
`requestPathIsIssuerShadowPath` checks all possible directories for shadowing and then returns whether the Issuer's path is found. Let's first take a look at the code and then unpack what's happening here.
301301
302302
```js
303303
requestPathIsIssuerShadowPath({ requestPath, issuerPath, theme }) {
@@ -328,7 +328,7 @@ const fullPaths = [
328328
]
329329
```
330330
331-
We then know that if the issuer _matches_ one of these components that it's being extended. This means that a shadowed component is extending the same component from its parent.
331+
We then know that if the Issuer _matches_ one of these components that it's being extended. This means that a shadowed component is extending the same component from its parent.
332332
333333
When this happens, we return the next path, so here the original location of the theme: `/Users/johno/c/gatsby-theme-example-component-extending/gatsby-theme-tomato/src/box`.
334334
@@ -352,7 +352,7 @@ Now, all usages of the Box in `gatsby-theme-tomato` will be also wrapped in a pu
352352
353353
#### An edge case
354354
355-
If a theme sets [`module` config](https://webpack.js.org/configuration/resolve/#resolvemodules) the issuer will be null. As such we need to first check that the `request.context.issuer` is present before we attempt to resolve the shadowed component.
355+
If a theme sets [`module` config](https://webpack.js.org/configuration/resolve/#resolvemodules) the Issuer will be null. As such we need to first check that the `request.context.issuer` is present before we attempt to resolve the shadowed component.
356356
357357
It's important to note that we don't recommend appending to the modules list in themes.
358358
Though, if you do, we will make sure we don't arbitrarily error.

docs/docs/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Gatsby.js ドキュメント
3+
description: Gatsby のチュートリアル、ガイド、ビルド方法などのまとめ。
34
disableTableOfContents: true
45
---
56

docs/docs/path-prefix.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ export default function Index() {
6767
<Layout>
6868
{/* 注意: 以下のコードは現実的な例ではありませんが、考え方としてはわかるはずです。 */}
6969
{/* highlight-next-line */}
70-
<button onClick={() => navigate("/page-2")}>
71-
Page 2 へ動的に移動
72-
</button>
70+
<button onClick={() => navigate("/page-2")}>Page 2 へ動的に移動</button>
7371
</Layout>
7472
)
7573
}

docs/docs/performance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ overview: true
77

88
このセクションではキャッシュを最適化するいくつかの方法、パフォーマンス特性を簡単にテストするための `localhost` での `https` のセットアップ、さらにウェブサイトのパフォーマンスの計測方法をカバーしており、ウェブサイトのパフォーマンスを最大化するのに必要なツールがすべて手に入るでしょう。なぜパフォーマンスがそんなに重要なのかについてのより掘り下げた説明をお望みであれば、Addy Osmani による JavaScript のコストについての[こちらの記事](https://v8.dev/blog/cost-of-javascript-2019)をチェックしてみてください。
99

10-
Lighthouse のスコアがすべてグリーンとなりますように😀。
10+
Lighthouse のスコアがすべてグリーンとなりますように 😀。
1111

1212
<GuideList slug={props.slug} />

docs/docs/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ cd gatsby-site
3737
gatsby develop
3838
```
3939

40-
Gatsby はホットリロード対応の開発環境を `localhost:8000` に立ち上げます。
40+
Gatsby はホットリロード対応の開発環境を `http://localhost:8000` に立ち上げます。
4141

4242
`src/pages`の中にある JavaScript で書かれたページを編集してみてください。保存された変更はブラウザー上でリアルタイムに反映されます。
4343

docs/docs/recipes/deploying-your-site.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "レシピ: サイトをデプロイする"
3+
tableOfContentsDepth: 1
34
---
45

56
ショータイム。満足ゆくサイトができたら、あとはそれをデプロイするだけです。
@@ -75,7 +76,7 @@ gatsby build && gatsby serve
7576

7677
6. デプロイパスを `public/` に変更します。
7778

78-
7. 正常に動作していることを確認できたら `netlify deploy --prod` で本番環境にデプロイします。
79+
7. 正常に動作していることを確認できたら `netlify deploy -d . --prod` で本番環境にデプロイします。
7980

8081
### 追加資料
8182

docs/docs/recipes/styling-css.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "レシピ: CSSによるスタイリング"
3+
tableOfContentsDepth: 1
34
---
45

56
ウェブサイトにスタイルを適用する方法はとてもたくさんありますが、 Gatsby では公式や非公式のプラグインによってほぼ全ての方法がサポートされています。

docs/docs/recipes/transforming-data.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "レシピ集: データの変換"
3+
tableOfContentsDepth: 1
34
---
45

56
Gatsby でのデータ変換はプラグインによって実現されています。トランスフォーマープラグインは source プラグインを通じてデータを取得し、実際に使う形式へ変換します(例:JSON を JavaScript オブジェクトにする等)。

docs/docs/recipes/working-with-starters.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "レシピ: スターターを使用する"
3+
tableOfContentsDepth: 1
34
---
45

56
[スターター](/docs/starters/) は、公式もしくはコミュニティーによって整備された Gatsby サイトの雛形です。

docs/docs/recipes/working-with-themes.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
title: "レシピ集: テーマを使用する"
3+
tableOfContentsDepth: 1
34
---
45

56
[Gatsby テーマ](/docs/themes/what-are-gatsby-themes)は Gatsby を構成するもの(共有の機能、データの取得、デザイン)をインストール可能なパッケージとして抽象化したものです。つまり、テーマの設定や機能は直接あなたのプロジェクト内に書かれるのではなく、一元的にバージョン管理された依存パッケージという形でインストールされるということです。テーマをシームレスに更新したり、まとめて作成したり、あるいは互換性のあるテーマを別のものに交換したりすることもできます。
67

7-
## テーマを使用して新しくサイトを作成する
8+
## テーマを使用して新しくサイトを作成する
89

9-
あなたのプロジェクトで使いたいテーマが見つかりましたか?すばらしい!以下の手順に沿ってテーマを適用することができます
10+
あなたのプロジェクトで使いたいテーマが見つかりましたか?すばらしい!以下の手順に沿ってテーマを適用できます
1011

1112
> もっと他のテーマを探したい場合は、[テーマ一覧](https://www.npmjs.com/search?q=gatsby-theme)を参照。
1213

docs/docs/running-queries-with-graphiql.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ Gatsby サイトを構築する際に、頻繁に使用することになるで
1111

1212
開発環境のサーバーを実行中に、GraphiQL へアクセスできます。
1313
通常、以下の URL になります。
14-
`http://localhost:8000/___graphql`.
14+
`http://localhost:8000/___graphql`
15+
16+
## GraphiQL の使用例
17+
18+
`http://localhost:8000/___graphql` を開くと、以下の動画のように表示されます。ビルドインの `Site` "type" を突っつくと、`siteMetadata`オブジェクトを含んだ、どのフィールドを利用できるかを確認できます。
1519

1620
## GraphiQL の使用例
1721

docs/docs/setting-up-gatsby-without-gatsby-new.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ cd ../../
6565
gatsby develop
6666
```
6767

68-
それだけです!初期ページが `localhost:8000` で、GraphiQL IDE が `localhost:8000/___graphql` で起動しているはずです。ここからは[チュートリアル](/tutorial/part-zero/#set-up-a-code-editor)に戻って、Gatsby が提供する機能をフルに体験するためコードエディターを設定する箇所からチュートリアルを再開してください。
68+
それだけです!初期ページが `http://localhost:8000` で、GraphiQL IDE が `http://localhost:8000/___graphql` で起動しているはずです。ここからは[チュートリアル](/tutorial/part-zero/#set-up-a-code-editor)に戻って、Gatsby が提供する機能をフルに体験するためコードエディターを設定する箇所からチュートリアルを再開してください。

docs/docs/using-graphql-playground.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gatsby で GraphQL Playground にアクセスするためには、以下のよ
1818
"develop": "GATSBY_GRAPHQL_IDE=playground gatsby develop",
1919
```
2020

21-
`gatsby develop` の代わりに `npm run develop` を使用し、立ち上がったサーバー <https://localhost:8000/___graphql> へアクセスすることで利用できます。
21+
`gatsby develop` の代わりに `npm run develop` を使用し、立ち上がったサーバー `http://localhost:8000/___graphql` へアクセスすることで利用できます。
2222

2323
`gatsby develop` を引き続き使用するためには、gatsby-config.js で dotenv パッケージを使用する必要があります。`.env.development` といった名前で[environment variable](/docs/environment-variables/)ファイルを作成し、`.env.development``GATSBY_GRAPHQL_IDE=playground` と記入します。
2424

docs/tutorial/blog-netlify-cms-tutorial/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cd [your-project-name]
3030
gatsby develop
3131
```
3232

33-
これであなたは [`localhost:8000`](http://localhost:8000) から作成されたサイトを見ることができるようになるだけでなく、Netlify CMS がプリインストールされ、[`localhost:8000/admin`](http://localhost:8000/admin) からアクセスできるようになりました。
33+
これであなたは `http://localhost:8000` から作成されたサイトを見ることができるようになるだけでなく、Netlify CMS がプリインストールされ、`http://localhost:8000/admin` からアクセスできるようになりました。
3434

3535
コンテンツマネジメントシステム(CMS)は便利です。あなたは Markdown を使い手動でブログ記事などのコンテンツを追加する代わりに、それらをサイト上のダッシュボードから追加できます。もしかすると、あなたは CMS をローカルだけでなく開発したウェブサイト上からも使いたくなるかもしれません。それを実現するためには、GitHub を通して Netlify にデプロイし、継続的デプロイを設定し、いくつかの設定を変更する必要があります。こちらについては [ステップ 5](#ステップ-5) をご覧ください。
3636

0 commit comments

Comments
 (0)