|
1 | 1 | --- |
2 | | -title: Recipes |
| 2 | +title: レシピ集 |
3 | 3 | tableOfContentsDepth: 2 |
4 | 4 | --- |
5 | 5 |
|
6 | | -<!-- Basic template for a Gatsby recipe: |
| 6 | +<!-- Gatsbyレシピのための基本テンプレート: |
7 | 7 |
|
8 | | -## Task to accomplish. |
9 | | -1-2 sentences about it. The more concise and focused, the better! |
| 8 | +## 達成したいタスク |
| 9 | +1-2行の説明。簡潔でまとまっているほど良いです。 |
10 | 10 |
|
11 | | -### Prerequisites |
12 | | -- System/version requirements |
13 | | -- Everything necessary to set up the task |
14 | | -- Including setting up accounts at other sites, like Netlify |
15 | | -- See [docs templates](/docs/docs-templates/) for formatting tips |
| 11 | +### 必要条件 |
| 12 | +- システム要件 |
| 13 | +- セットアップに必要なあらゆるもの |
| 14 | +- Netlifyアカウントなど、セットアップに必要な外部アカウントの作成も含む |
| 15 | +- フォーマットについて詳しくは[ドキュメントテンプレート](/docs/docs-templates/)を参照 |
16 | 16 |
|
17 | | -### Directions |
18 | | -Step-by-step directions. Each step should be repeatable and to-the-point. Anything not critical to the task should be omitted. |
| 17 | +### やり方 |
| 18 | +ステップ・バイ・ステップのガイド。各ステップは明解かつ再現性が担保されているべきです。直接タスクに関係のないものは何であれ取り除きましょう。 |
19 | 19 |
|
20 | | -#### Live example (optional) |
21 | | -A live example may not be possible depending on the nature of the recipe, in which case it is fine to omit. |
| 20 | +#### 動くデモ (任意) |
| 21 | +実際に動作するデモはレシピの構成によっては不可能な場合があります。その際はデモを用意しなくても大丈夫です。 |
22 | 22 |
|
23 | | -### Additional resources |
24 | | -- Tutorials |
25 | | -- Docs pages |
26 | | -- Plugin READMEs |
27 | | -- etc. |
| 23 | +### 追加のリソース |
| 24 | +- チュートリアル |
| 25 | +- ドキュメント |
| 26 | +- プラグインのREADME |
| 27 | +- その他 |
28 | 28 |
|
29 | | -See [docs templates](/docs/docs-templates/) in the contributing docs for more help. |
| 29 | +より詳しくは[ドキュメントテンプレート](/docs/docs-templates/)を見てください。 |
30 | 30 | --> |
31 | 31 |
|
32 | | -Craving a happy medium between [full-length tutorials](/tutorial/) and crawling the [docs](/docs/)? Here's a cookbook of guiding recipes on how to build things, Gatsby style. |
| 32 | +[フルサイズのチュートリアル](/tutorial/)を踏破するのでもなく、大量の[ドキュメント](/docs/)の海に潜るのでもなく、その中間に位置する"ちょうど良い"リソースが必要ですか? |
| 33 | +ここには、Gatsby スタイルやその他つくりたいものに合わせた様々なレシピが揃っています。 |
33 | 34 |
|
34 | | -## [1. Pages and layouts](/docs/recipes/pages-layouts) |
| 35 | +## [1. ページとレイアウト](/docs/recipes/pages-layouts) |
35 | 36 |
|
36 | | -Add pages to your Gatsby site, and use layouts to manage common page elements. |
| 37 | +あなたの Gatsby サイトにページを追加し、レイアウト機能を使って共通するページ要素を管理しましょう。 |
37 | 38 |
|
38 | | -- [Project structure](/docs/recipes/pages-layouts#project-structure) |
39 | | -- [Creating pages automatically](/docs/recipes/pages-layouts#creating-pages-automatically) |
40 | | -- [Linking between pages](/docs/recipes/pages-layouts#linking-between-pages) |
41 | | -- [Creating a layout component](/docs/recipes/pages-layouts#creating-a-layout-component) |
42 | | -- [Creating pages programmatically with createPage](/docs/recipes/pages-layouts#creating-pages-programmatically-with-createpage) |
| 39 | +- [プロジェクトの構造](/docs/recipes/pages-layouts#project-structure) |
| 40 | +- [ページの自動生成](/docs/recipes/pages-layouts#creating-pages-automatically) |
| 41 | +- [ページ間のリンク](/docs/recipes/pages-layouts#linking-between-pages) |
| 42 | +- [レイアウトコンポーネントの作成](/docs/recipes/pages-layouts#creating-a-layout-component) |
| 43 | +- [createPage を用いたページの自動生成](/docs/recipes/pages-layouts#creating-pages-programmatically-with-createpage) |
43 | 44 |
|
44 | | -## [2. Styling with CSS](/docs/recipes/styling-css) |
| 45 | +## [2. CSS によるスタイリング](/docs/recipes/styling-css) |
45 | 46 |
|
46 | | -There are so many ways to add styles to your website; Gatsby supports almost every possible option, through official and community plugins. |
| 47 | +あなたのウェブサイトにスタイルを追加する手段はたくさんあります。公式チームとコミュニティーが提供するプラグインのおかげで、ほとんどすべての方法が Gatsby で使えます。 |
47 | 48 |
|
48 | 49 | - [Using global CSS files without a Layout component](/docs/recipes/styling-css#using-global-css-files-without-a-layout-component) |
49 | 50 | - [Using global styles in a layout component](/docs/recipes/styling-css#using-global-styles-in-a-layout-component) |
50 | | -- [Using Styled Components](/docs/recipes/styling-css#using-styled-components) |
51 | | -- [Using CSS Modules](/docs/recipes/styling-css#using-css-modules) |
52 | | -- [Using Sass/SCSS](/docs/recipes/styling-css#using-sassscss) |
53 | | -- [Adding a Local Font](/docs/recipes/styling-css#adding-a-local-font) |
54 | | -- [Using Emotion](/docs/recipes/styling-css#using-emotion) |
55 | | -- [Using Google Fonts](/docs/recipes/styling-css#using-google-fonts) |
| 51 | +- [Styled Components](/docs/recipes/styling-css#using-styled-components) |
| 52 | +- [CSS Modules](/docs/recipes/styling-css#using-css-modules) |
| 53 | +- [Sass/SCSS](/docs/recipes/styling-css#using-sassscss) |
| 54 | +- [ローカルフォントの追加](/docs/recipes/styling-css#adding-a-local-font) |
| 55 | +- [Emotion](/docs/recipes/styling-css#using-emotion) |
| 56 | +- [Google Fonts](/docs/recipes/styling-css#using-google-fonts) |
56 | 57 |
|
57 | | -## [3. Working with starters](/docs/recipes/working-with-starters) |
| 58 | +## [3. スターターを活用する](/docs/recipes/working-with-starters) |
58 | 59 |
|
59 | | -[Starters](/docs/starters/) are boilerplate Gatsby sites maintained officially, or by the community. |
| 60 | +[スターター](/docs/starters/) は公式チームやコミュニティーによってメンテナンスされている、Gatsby サイトの雛形です。 |
60 | 61 |
|
61 | | -- [Using a starter](/docs/recipes/working-with-starters#using-a-starter) |
| 62 | +- [スターターを使う](/docs/recipes/working-with-starters#using-a-starter) |
62 | 63 |
|
63 | | -## [4. Working with themes](/docs/recipes/working-with-themes) |
| 64 | +## [4. テーマを使う](/docs/recipes/working-with-themes) |
64 | 65 |
|
65 | 66 | A Gatsby theme lets you centralize the look-and-feel of your site. You can seamlessly update a theme, compose themes together, and even swap out one compatible theme for another. |
66 | 67 |
|
67 | | -- [Creating a new site using a theme starter](/docs/recipes/working-with-themes#creating-a-new-site-using-a-theme-starter) |
68 | | -- [Building a new theme](/docs/recipes/working-with-themes#building-a-new-theme) |
| 68 | +- [テーマスターターを使って新しいサイトをつくる](/docs/recipes/working-with-themes#creating-a-new-site-using-a-theme-starter) |
| 69 | +- [新しいテーマをつくる](/docs/recipes/working-with-themes#building-a-new-theme) |
69 | 70 |
|
70 | | -## [5. Sourcing data](/docs/recipes/sourcing-data) |
| 71 | +## [5. データの取得](/docs/recipes/sourcing-data) |
71 | 72 |
|
72 | | -Pull data from multiple locations, like the filesystem or database, into your Gatsby site. |
| 73 | +ファイルシステムやデータベースなど複数の場所からデータを取得し、Gatsby サイトに取り込みます。 |
73 | 74 |
|
74 | | -- [Adding data to GraphQL](/docs/recipes/sourcing-data#adding-data-to-graphql) |
| 75 | +- [GraphQL にデータを追加する](/docs/recipes/sourcing-data#adding-data-to-graphql) |
75 | 76 | - [Sourcing Markdown data for blog posts and pages with GraphQL](/docs/recipes/sourcing-data#sourcing-markdown-data-for-blog-posts-and-pages-with-graphql) |
76 | | -- [Sourcing from WordPress](/docs/recipes/sourcing-data#sourcing-from-wordpress) |
77 | | -- [Sourcing data from Contentful](/docs/recipes/sourcing-data#sourcing-data-from-contentful) |
78 | | -- [Pulling data from an external source and creating pages without GraphQL](/docs/recipes/sourcing-data#pulling-data-from-an-external-source-and-creating-pages-without-graphql) |
79 | | -- [Sourcing content from Drupal](/docs/recipes/sourcing-data#sourcing-content-from-drupal) |
| 77 | +- [WordPress からデータを取得する](/docs/recipes/sourcing-data#sourcing-from-wordpress) |
| 78 | +- [Contentful からデータを取得する](/docs/recipes/sourcing-data#sourcing-data-from-contentful) |
| 79 | +- [GraphQL を使わずに外部からデータを取得しページを作成する](/docs/recipes/sourcing-data#pulling-data-from-an-external-source-and-creating-pages-without-graphql) |
| 80 | +- [Drupal からデータを取得する](/docs/recipes/sourcing-data#sourcing-content-from-drupal) |
80 | 81 |
|
81 | | -## [6. Querying data](/docs/recipes/querying-data) |
| 82 | +## [6. データを要求する](/docs/recipes/querying-data) |
82 | 83 |
|
83 | | -Gatsby lets you access your data across all sources using a single GraphQL interface. |
| 84 | +Gatsby では、単一の GraphQL インターフェイスを通じて、あらゆるソースからデータにアクセスできます。 |
84 | 85 |
|
85 | | -- [Querying data with a Page Query](/docs/recipes/querying-data#querying-data-with-a-page-query) |
86 | | -- [Querying data with the StaticQuery Component](/docs/recipes/querying-data#querying-data-with-the-staticquery-component) |
87 | | -- [Querying data with the useStaticQuery hook](/docs/recipes/querying-data/#querying-data-with-the-usestaticquery-hook) |
88 | | -- [Limiting with GraphQL](/docs/recipes/querying-data#limiting-with-graphql) |
89 | | -- [Sorting with GraphQL](/docs/recipes/querying-data#sorting-with-graphql) |
90 | | -- [Filtering with GraphQL](/docs/recipes/querying-data#filtering-with-graphql) |
| 86 | +- [Page Query を使ってデータを要求する](/docs/recipes/querying-data#querying-data-with-a-page-query) |
| 87 | +- [StaticQuery Component を使ってデータを要求する](/docs/recipes/querying-data#querying-data-with-the-staticquery-component) |
| 88 | +- [useStaticQuery hook を使ってデータを要求する](/docs/recipes/querying-data/#querying-data-with-the-usestaticquery-hook) |
| 89 | +- [GraphQL で数に制限をかける](/docs/recipes/querying-data#limiting-with-graphql) |
| 90 | +- [GraphQL でソートする](/docs/recipes/querying-data#sorting-with-graphql) |
| 91 | +- [GraphQL でフィルターをかける](/docs/recipes/querying-data#filtering-with-graphql) |
91 | 92 | - [GraphQL Query Aliases](/docs/recipes/querying-data#graphql-query-aliases) |
92 | 93 | - [GraphQL Query Fragments](/docs/recipes/querying-data#graphql-query-fragments) |
93 | | -- [Querying data client-side with fetch](/docs/recipes/querying-data#querying-data-client-side-with-fetch) |
| 94 | +- [fetch によるクライアントサイドクエリ](/docs/recipes/querying-data#querying-data-client-side-with-fetch) |
94 | 95 |
|
95 | | -## [7. Working with images](/docs/recipes/working-with-images) |
| 96 | +## [7. 画像を取り扱う](/docs/recipes/working-with-images) |
96 | 97 |
|
97 | 98 | Access images as static resources, or automate the process of optimizing them through powerful plugins. |
| 99 | +イメージを静的なリソースとして使う。あるいはプラグインを通じて最適化プロセスを自動化する。 |
98 | 100 |
|
99 | | -- [Import an image into a component with webpack](/docs/recipes/working-with-images#import-an-image-into-a-component-with-webpack) |
100 | | -- [Reference an image from the static folder](/docs/recipes/working-with-images#reference-an-image-from-the-static-folder) |
101 | | -- [Optimizing and querying local images with gatsby-image](/docs/recipes/working-with-images#optimizing-and-querying-local-images-with-gatsby-image) |
102 | | -- [Optimizing and querying images in post frontmatter with gatsby-image](/docs/recipes/working-with-images#optimizing-and-querying-images-in-post-frontmatter-with-gatsby-image) |
| 101 | +- [webpack を使って画像をコンポーネントに埋め込む](/docs/recipes/working-with-images#import-an-image-into-a-component-with-webpack) |
| 102 | +- [静的フォルダにある画像を参照する](/docs/recipes/working-with-images#reference-an-image-from-the-static-folder) |
| 103 | +- [gatsby-image を使って画像を最適化するクエリを書く](/docs/recipes/working-with-images#optimizing-and-querying-local-images-with-gatsby-image) |
| 104 | +- [Front-matter で gatsby-image による最適化を指示する](/docs/recipes/working-with-images#optimizing-and-querying-images-in-post-frontmatter-with-gatsby-image) |
103 | 105 |
|
104 | | -## [8. Transforming data](/docs/recipes/transforming-data) |
| 106 | +## [8. データの変換](/docs/recipes/transforming-data) |
105 | 107 |
|
106 | | -Transforming data in Gatsby is plugin-driven. Transformer plugins take data fetched using source plugins, and process it into something more usable (e.g. JSON into JavaScript objects, and more). |
| 108 | +Gatsby でのデータ変換はプラグインによって実現されています。Transformer プラグインは source プラグインを通じてデータを取得し、実際に使う形式へ変換します(例:JSON を JavaScript オブジェクトにする等)。 |
107 | 109 |
|
108 | | -- [Transforming Markdown into HTML](/docs/recipes/transforming-data#transforming-markdown-into-html) |
| 110 | +- [Markdown を HTML に変換する](/docs/recipes/transforming-data#transforming-markdown-into-html) |
109 | 111 |
|
110 | | -## [9. Deploying your site](/docs/recipes/deploying-your-site) |
| 112 | +## [9. サイトのデプロイ](/docs/recipes/deploying-your-site) |
111 | 113 |
|
112 | | -Showtime. Once you are happy with your site, you are ready to go live with it! |
| 114 | +お披露目の時間です。サイトの出来栄えに満足したら、全世界に公開しましょう! |
113 | 115 |
|
114 | | -- [Preparing for deployment](/docs/recipes/deploying-your-site#preparing-for-deployment) |
115 | | -- [Deploying to Netlify](/docs/recipes/deploying-your-site#deploying-to-netlify) |
116 | | -- [Deploying to ZEIT Now](/docs/recipes/deploying-your-site#deploying-to-zeit-now) |
| 116 | +- [デプロイの準備](/docs/recipes/deploying-your-site#preparing-for-deployment) |
| 117 | +- [Netlify でデプロイ](/docs/recipes/deploying-your-site#deploying-to-netlify) |
| 118 | +- [ZEIT Now でデプロイ](/docs/recipes/deploying-your-site#deploying-to-zeit-now) |
0 commit comments