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

Commit 8c4a3ad

Browse files
authored
Merge pull request #73 from hidecharo/master
docs: translate docs/themes/using-a-gatsby-theme
2 parents 0392879 + 70c99ff commit 8c4a3ad

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
2-
title: Using a Gatsby Theme
2+
title: Gatsbyテーマを利用する
33
---
44

5-
While you can [get started quickly with a Gatsby theme starter](/docs/themes/getting-started/), you can also install a Gatsby theme directly to an existing Gatsby site. Gatsby themes are plugins, so you can [install and use them like any other Gatsby plugin](/docs/using-a-plugin-in-your-site/).
5+
[Gatsby テーマスターターを使えば簡単に開始できます](/docs/themes/getting-started/)が、Gatsby テーマはプラグインなので、[他のプラグインと同様に既存の Gatsby サイトに直接インストールする](/docs/using-a-plugin-in-your-site/)こともできます。
66

7-
## Installing a Theme
7+
## テーマのインストール
88

9-
Like any Gatsby plugin, Gatsby themes are Node.js packages, so you can install them like other published packages in Node using npm or [yarn, including local workspaces](#using-yarn-workspaces).
9+
他の Gatsby プラグインと同様に、Gatsby テーマは Node.js パッケージです。そのため、Node.js で書かれた他の公開パッケージのように、npm または[ローカルワークスペースを含む yarn](#Yarn-ワークスペースを利用する)でインストールできます。
1010

11-
For example, `gatsby-theme-blog` is the official Gatsby theme for creating a blog.
11+
例えば、`gatsby-theme-blog`は、ブログ作成のための公式 Gatsby テーマです。
1212

13-
To install it, run in the root of your site:
13+
インストールするためには、サイトのルートディレクトリーで以下を実行します。
1414

1515
```shell
1616
npm install --save gatsby-theme-blog
1717
```
1818

19-
## Theme options
19+
## テーマオプション
2020

21-
Depending on the theme, there may be theme options that can be configured via `gatsby-config.js`.
21+
テーマによっては、`gatsby-config.js`でテーマオプションを設定できます。
2222

23-
For example, `gatsby-theme-blog` can take in 4 potential options: `basePath`, `contentPath`, `assetPath`, and `mdx`. These options are also documented in the [theme's README](/packages/gatsby-theme-blog/) file.
23+
例えば、`gatsby-theme-blog`は、4 つのオプションを指定できます: `basePath``contentPath``assetPath``mdx`。これらのオプションは、[テーマの README](/packages/gatsby-theme-blog/)にも記載されています。
2424

2525
```javascript:title=gatsby-config.js
2626
module.exports = {
@@ -29,10 +29,10 @@ module.exports = {
2929
resolve: `gatsby-theme-blog`,
3030
options: {
3131
/*
32-
- basePath defaults to `/`
33-
- contentPath defaults to `content/posts`
34-
- assetPath defaults to `content/assets`
35-
- mdx defaults to `true`
32+
- basePathのデフォルト値は、`/`
33+
- contentPathのデフォルト値は、`content/posts`
34+
- assetPathのデフォルト値は、`content/assets`
35+
- mdxのデフォルト値は、`true`
3636
*/
3737
basePath: `/blog`,
3838
contentPath: `content/blogPosts`,
@@ -44,12 +44,12 @@ module.exports = {
4444
}
4545
```
4646

47-
To learn how to further customize a theme, check out the docs on [Gatsby theme shadowing](/docs/themes/shadowing/).
47+
テーマのカスタマイズ方法をさらに学ぶには、[Gatsby テーマシャドーイング](/docs/themes/shadowing/)を確認しましょう。
4848

49-
## Published Themes
49+
## 公開されたテーマ
5050

51-
Public Gatsby themes are published on npm for anyone to use. You can also publish private themes for use by your organization. Examples of private theme package hosting include the [npm registry](https://docs.npmjs.com/about-private-packages) and [GitHub Package Registry](https://help.github.com/en/github/managing-packages-with-github-package-registry/about-github-package-registry).
51+
パブリックな Gatsby テーマは、誰でも使えるように npm などに公開されています。組織で利用するプライベートなテーマを公開することもできます。プライベートなテーマパッケージは、例えば、[npm レジストリ](https://docs.npmjs.com/about-private-packages)[GitHub パッケージレジストリ](https://help.github.com/en/github/managing-packages-with-github-package-registry/about-github-package-registry)にホスティングされます。
5252

53-
## Using Yarn Workspaces
53+
## Yarn ワークスペースを利用する
5454

55-
If you would like to work with unpublished themes, consider [setting up Yarn Workspaces for theme development](/blog/2019-05-22-setting-up-yarn-workspaces-for-theme-development/) and [using Yarn](/docs/gatsby-cli/#how-to-change-your-default-package-manager-for-your-next-project) instead of npm.
55+
公開せずにテーマを使いたい場合、npm の代わりに、[テーマ開発のための Yarn ワークスペース設定](/blog/2019-05-22-setting-up-yarn-workspaces-for-theme-development/)[Yarn の利用](/docs/gatsby-cli/#how-to-change-your-default-package-manager-for-your-next-project)を検討しましょう。

0 commit comments

Comments
 (0)