From 3e408f81d7a3a8f8507a5882e73aabee7e680a2f Mon Sep 17 00:00:00 2001 From: gensobunya Date: Thu, 27 Feb 2020 16:40:21 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/creating-a-sitemap.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/docs/creating-a-sitemap.md b/docs/docs/creating-a-sitemap.md index 87607b452..76b52c326 100644 --- a/docs/docs/creating-a-sitemap.md +++ b/docs/docs/creating-a-sitemap.md @@ -1,23 +1,23 @@ --- -title: Creating a Sitemap +title: サイトマップを生成する --- -## What is a sitemap? +## サイトマップとは -An [XML sitemap](https://support.google.com/webmasters/answer/156184?hl=en) lists a website’s important pages, making sure search engines (such as Google) can find and crawl them all. In effect, a sitemap helps a search engine understand your website structure. +[XML sitemap](https://support.google.com/webmasters/answer/156184?hl=en) は、ウェブサイトの重要なページのリストで、Google のような検索エンジンがこれらのページをすべてクロールできるように用いられます。サイトマップは、検索エンジンがあなたのウェブサイトの構造を理解することを助けます。 -Think of it as a map for your website. It shows what all of the pages are on your website. +これは、あなたのウェブサイトの地図であると考えてください。あなたのウェブサイトの全ページが何であるかを示します。 -## Using [gatsby-plugin-sitemap](/packages/gatsby-plugin-sitemap/) +## [gatsby-plugin-sitemap](/packages/gatsby-plugin-sitemap/) を使う -To generate an XML sitemap, you will use the [`gatsby-plugin-sitemap`](/packages/gatsby-plugin-sitemap/) package. +XML サイトマップを生成するために、 [`gatsby-plugin-sitemap`](/packages/gatsby-plugin-sitemap/) プラグインを利用します。 -Install the package by running the following command: +下記のコマンドでプラグインをインストールします。 `npm install --save gatsby-plugin-sitemap` -### How to configure +### 設定方法 -Once installation is complete, you can now add this plugin to your `gatsby-config.js`, like so: +プラグインのインストールが終了したら、 `gatsby-config.js` に、下記のような設定を追加します。 ```javascript:title=gatsby-config.js module.exports = { @@ -28,14 +28,14 @@ module.exports = { } ``` -**Note:** The siteUrl property must be defined and not left empty. +**ヒント:** `siteUrl` は必須項目です、空白のままにしないでください。 -Next run a build (`npm run build`) since the sitemap generation will only happen for production builds. This is all that's required to get a working sitemap with Gatsby! By default, the generated sitemap path is /sitemap.xml and will include all of your site’s pages, but of course the plugin exposes options to configure this default functionality. +サイトマップの生成は、本番環境のビルド時のみ行われるため、まずはビルドコマンド (`npm run build`)を実行します。Gatsby でサイトマップを生成する作業はこれだけです! 既定では、 /sitemap.xml にサイトマップが生成され、ウェブサイトの全ページがサイトマップに含まれています。もちろん、プラグインでこのデフォルト設定を変更することも可能です。 -### Additional modifications +### 追加設定 -Additional modification steps are available in the [`gatsby-plugin-sitemap` documentation](/packages/gatsby-plugin-sitemap) +追加の設定を行いたい場合は、 [`gatsby-plugin-sitemap` のドキュメント](/packages/gatsby-plugin-sitemap)を確認してください -## More information +## 追加情報 -- Also check out a post on [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) from the Gatsby blog +- サイトマップの生成に関する更に詳しい情報を知りたい場合、Gatsby ブログの [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) の確認をおすすめします From 19598707c8c2b8c79a9239c1bccf69a85b4107e2 Mon Sep 17 00:00:00 2001 From: gensobunya Date: Thu, 27 Feb 2020 16:40:53 +0900 Subject: [PATCH 2/5] =?UTF-8?q?Lint=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/creating-a-sitemap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/creating-a-sitemap.md b/docs/docs/creating-a-sitemap.md index 76b52c326..87b1a458b 100644 --- a/docs/docs/creating-a-sitemap.md +++ b/docs/docs/creating-a-sitemap.md @@ -28,9 +28,9 @@ module.exports = { } ``` -**ヒント:** `siteUrl` は必須項目です、空白のままにしないでください。 +**ヒント:** `siteUrl` は必須項目です、空白のままにしないでください。 -サイトマップの生成は、本番環境のビルド時のみ行われるため、まずはビルドコマンド (`npm run build`)を実行します。Gatsby でサイトマップを生成する作業はこれだけです! 既定では、 /sitemap.xml にサイトマップが生成され、ウェブサイトの全ページがサイトマップに含まれています。もちろん、プラグインでこのデフォルト設定を変更することも可能です。 +サイトマップの生成は、本番環境のビルド時のみ行われるため、まずはビルドコマンド (`npm run build`)を実行します。Gatsby でサイトマップを生成する作業はこれだけです! 既定では、 /sitemap.xml にサイトマップが生成され、ウェブサイトの全ページがサイトマップに含まれています。もちろん、プラグインでこのデフォルト設定を変更することも可能です。 ### 追加設定 From 7ee85f8b680530b7d821afc932c6b66864155260 Mon Sep 17 00:00:00 2001 From: gensobunya Date: Thu, 27 Feb 2020 16:45:02 +0900 Subject: [PATCH 3/5] =?UTF-8?q?lint=E7=B5=90=E6=9E=9C=E5=8F=8D=E6=98=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/creating-a-sitemap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/creating-a-sitemap.md b/docs/docs/creating-a-sitemap.md index 87b1a458b..d50a3a5cc 100644 --- a/docs/docs/creating-a-sitemap.md +++ b/docs/docs/creating-a-sitemap.md @@ -34,8 +34,8 @@ module.exports = { ### 追加設定 -追加の設定を行いたい場合は、 [`gatsby-plugin-sitemap` のドキュメント](/packages/gatsby-plugin-sitemap)を確認してください +追加の設定を行いたい場合は、 [`gatsby-plugin-sitemap` のドキュメント](/packages/gatsby-plugin-sitemap)を確認してください。 ## 追加情報 -- サイトマップの生成に関する更に詳しい情報を知りたい場合、Gatsby ブログの [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) の確認をおすすめします +- サイトマップの生成に関する、さらに詳しい情報を知りたい場合、Gatsby ブログの [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) の確認をおすすめします From 6913c61887ea4d0aa78ceaf2f117dfb9887391b8 Mon Sep 17 00:00:00 2001 From: BSKY Date: Fri, 28 Feb 2020 21:54:07 +0900 Subject: [PATCH 4/5] Apply suggestions from code review Co-Authored-By: Yasuaki Uechi --- docs/docs/creating-a-sitemap.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/creating-a-sitemap.md b/docs/docs/creating-a-sitemap.md index d50a3a5cc..e12c26ec1 100644 --- a/docs/docs/creating-a-sitemap.md +++ b/docs/docs/creating-a-sitemap.md @@ -4,20 +4,20 @@ title: サイトマップを生成する ## サイトマップとは -[XML sitemap](https://support.google.com/webmasters/answer/156184?hl=en) は、ウェブサイトの重要なページのリストで、Google のような検索エンジンがこれらのページをすべてクロールできるように用いられます。サイトマップは、検索エンジンがあなたのウェブサイトの構造を理解することを助けます。 +[XML sitemap](https://support.google.com/webmasters/answer/156184?hl=ja) は、ウェブサイトの重要なページのリストで、Google のような検索エンジンがこれらのページをすべてクロールできるように用いられます。サイトマップは、検索エンジンがあなたのウェブサイトの構造を理解することを助けます。 これは、あなたのウェブサイトの地図であると考えてください。あなたのウェブサイトの全ページが何であるかを示します。 ## [gatsby-plugin-sitemap](/packages/gatsby-plugin-sitemap/) を使う -XML サイトマップを生成するために、 [`gatsby-plugin-sitemap`](/packages/gatsby-plugin-sitemap/) プラグインを利用します。 +XML サイトマップを生成するために、[`gatsby-plugin-sitemap`](/packages/gatsby-plugin-sitemap/) プラグインを利用します。 下記のコマンドでプラグインをインストールします。 `npm install --save gatsby-plugin-sitemap` ### 設定方法 -プラグインのインストールが終了したら、 `gatsby-config.js` に、下記のような設定を追加します。 +プラグインのインストールが終了したら、`gatsby-config.js` に、下記のような設定を追加します。 ```javascript:title=gatsby-config.js module.exports = { @@ -30,11 +30,11 @@ module.exports = { **ヒント:** `siteUrl` は必須項目です、空白のままにしないでください。 -サイトマップの生成は、本番環境のビルド時のみ行われるため、まずはビルドコマンド (`npm run build`)を実行します。Gatsby でサイトマップを生成する作業はこれだけです! 既定では、 /sitemap.xml にサイトマップが生成され、ウェブサイトの全ページがサイトマップに含まれています。もちろん、プラグインでこのデフォルト設定を変更することも可能です。 +サイトマップの生成は、本番環境のビルド時のみ行われるため、まずはビルドコマンド (`npm run build`)を実行します。Gatsby でサイトマップを生成する作業はこれだけです!既定では、/sitemap.xml にサイトマップが生成され、ウェブサイトの全ページがサイトマップに含まれています。もちろん、プラグインでこのデフォルト設定を変更することも可能です。 ### 追加設定 -追加の設定を行いたい場合は、 [`gatsby-plugin-sitemap` のドキュメント](/packages/gatsby-plugin-sitemap)を確認してください。 +追加の設定を行いたい場合は、[`gatsby-plugin-sitemap` のドキュメント](/packages/gatsby-plugin-sitemap)を確認してください。 ## 追加情報 From 630c8e4497c502d6f402ea309592243927a3b59e Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Sat, 29 Feb 2020 15:14:25 +0900 Subject: [PATCH 5/5] Update docs/docs/creating-a-sitemap.md --- docs/docs/creating-a-sitemap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/creating-a-sitemap.md b/docs/docs/creating-a-sitemap.md index e12c26ec1..f0cbfcb35 100644 --- a/docs/docs/creating-a-sitemap.md +++ b/docs/docs/creating-a-sitemap.md @@ -38,4 +38,4 @@ module.exports = { ## 追加情報 -- サイトマップの生成に関する、さらに詳しい情報を知りたい場合、Gatsby ブログの [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) の確認をおすすめします +- サイトマップの生成に関する、さらに詳しい情報を知りたい場合、Gatsby ブログの [gatsby-plugin-advanced-sitemap](/blog/2019-05-07-advanced-sitemap-plugin-for-seo/) の確認をおすすめします。