Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日本語版READMEの追加 #86

Merged
merged 3 commits into from
Jun 27, 2024
Merged

日本語版READMEの追加 #86

merged 3 commits into from
Jun 27, 2024

Conversation

wasabi-tr
Copy link
Contributor

@wasabi-tr wasabi-tr commented Jun 26, 2024

作業内容

  • 日本語版READMEの追加(README_jp.md)
  • README.mdに日本語版READMEのリンクを追加
  • README.mdの「LICENSE」の見出しレベルを1つ下げる

Summary by CodeRabbit

  • 新機能

    • READMEの日本語バージョンへのリンクを追加しました。
    • Apache-2.0ライセンス情報を更新しました。
  • ドキュメント

    • 日本語版READMEを追加しました。これには、microCMS JavaScript SDKの概要、インストール手順、使用例、詳細なドキュメントが含まれます。
  • 機能強化

    • microCMS JavaScript SDKにリトライオプション、メディアアップロード機能、TypeScriptサポートを追加しました。

@wasabi-tr wasabi-tr requested a review from Sinhalite June 26, 2024 06:00
@wasabi-tr wasabi-tr self-assigned this Jun 26, 2024
Copy link

coderabbitai bot commented Jun 26, 2024

ウォークスルー

この更新では、日本語版README.mdの追加、LICENSE情報の更新、microcms-js-sdkの機能拡張を実施しました。様々なメソッドに新しいオプションとパラメータを追加し、TypeScriptの型定義を改善しました。また、新たにManagement APIとメディアアップロードの対応を追加しました。

変更内容

ファイル 変更内容
README.md ライセンス情報の更新、見出し変更、日本語版READMEへのリンク追加
README_jp.md 日本語版READMEの新規追加。microCMS JavaScript SDKの詳細、使用例、インストール手順を提供
microcms-js-sdk のメソッド createClientメソッドにretryオプション追加、他のメソッドに新しいパラメータとオプション追加
TypeScript定義 メソッドのレスポンス型定義(getListgetListDetailgetObjectgetAllContentIdsなど)を追加
createManagementClient Management APIと連携するための新しいクライアントオブジェクト作成関数を追加
uploadMedia メソッド メディアのアップロードをサポートする機能を追加。ブラウザとNode.js環境で多様なデータ形式に対応。
UploadMediaRequest型定義 メディアアップロードリクエスト用の型を定義

ポエム

新たなコード、翼を広げ
APIと鳴く、ウサギの夢
日本語のREAD ME、風に舞う
新機能盛りだくさん、わくわく進む
今日は勝利の日、空へ高く飛ぶ


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3b7c0fd and 2e1ab07.

Files selected for processing (2)
  • README.md (2 hunks)
  • README_jp.md (1 hunks)
Additional context used
LanguageTool
README.md

[uncategorized] ~507-~507: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...t. Please refer to the official Next.js documentation as the available options depend on the ...

Markdownlint
README.md

106-106: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines

README_jp.md

9-9: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


35-35: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


108-108: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines

Additional comments not posted (2)
README.md (2)

3-3: リンクの追加が正しく行われています。

日本語版のREADMEへのリンクが適切に追加されており、アクセスが容易になりました。


670-670: 見出しレベルの変更が正しく行われています。

「LICENSE」セクションの見出しレベルが適切に変更され、文書の構造が改善されました。

README_jp.md Outdated Show resolved Hide resolved
README_jp.md Outdated Show resolved Hide resolved
README_jp.md Outdated Show resolved Hide resolved
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 2e1ab07 and e95ce5f.

Files selected for processing (1)
  • README_jp.md (1 hunks)
Additional context used
Markdownlint
README_jp.md

106-106: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines

Additional comments not posted (5)
README_jp.md (5)

106-106: リストの前後に空行を追加してください。

Markdownの規約に従い、リストは空行で囲む必要があります。これにより、ドキュメントの可読性が向上します。

+
> - 「リスト形式」の✔️は、APIの型がリスト形式に設定されている場合に使用できるメソッドを示します。
> - 「オブジェクト形式」の✔️は、APIの型がオブジェクト形式に設定されている場合に使用できるメソッドを示します。
+
Tools
Markdownlint

106-106: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines


27-29: 重要なバージョン情報の強調

バージョン情報が非常に重要なので、ユーザーが見逃さないように強調することをお勧めします。

> [!IMPORTANT]
- > v3.0.0以上を使用する場合は、Node.jsのv18以上が必要です。
+ > **v3.0.0以上を使用する場合は、Node.jsのv18以上が必要です。**

52-54: セキュリティに関する警告の改善

ユーザーがセキュリティリスクをより明確に理解できるように、警告文をもう少し詳細に記述することをお勧めします。

> [!WARNING]
- > ホスティングサービス(cdn.jsdelivr.net)はmicroCMSとは関係ありません。本番環境でのご利用には、お客様のサーバーでのセルフホスティングをお勧めします。
+ > **警告:** ホスティングサービス(cdn.jsdelivr.net)はmicroCMSとは関係ありません。セキュリティとパフォーマンスを確保するために、本番環境ではお客様のサーバーでのセルフホスティングを強くお勧めします。

106-108: リストの周りの空行の追加

Markdownのリストは前後に空行を入れることで、視覚的に区切りがつけられ、読みやすくなります。

+
> - 「リスト形式」の✔️は、APIの型がリスト形式に設定されている場合に使用できるメソッドを示します。
> - 「オブジェクト形式」の✔️は、APIの型がオブジェクト形式に設定されている場合に使用できるメソッドを示します。
+
Tools
Markdownlint

106-106: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines


397-401: TypeScriptの型定義の改善

TypeScriptの型定義をもう少し詳しく説明することで、ユーザーがより理解しやすくなります。

#### getListメソッドのレスポンスの型
```typescript
type Content = {
  text: string,
};
/**
 * {
+ *  // `Content`型の配列を含むオブジェクトを返します。
 *  contents: Content[]; // 設定したスキーマの型を格納する配列
 *  totalCount: number;
 *  limit: number;
 *  offset: number;
 * }
 */
client.getList<Content>({ /* その他のプロパティ */ })

</blockquote></details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

Copy link
Member

@Sinhalite Sinhalite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wasabi-tr
ありがとうございます!
細かい文言の部分だけコメントさせてもらいました!

README_jp.md Outdated Show resolved Hide resolved
README_jp.md Outdated Show resolved Hide resolved
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e95ce5f and 0124f50.

Files selected for processing (1)
  • README_jp.md (1 hunks)
Additional context used
Markdownlint
README_jp.md

106-106: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines

Additional comments not posted (9)
README_jp.md (9)

17-25: インストール手順の確認

Node.jsのインストール手順が明確であり、npmとyarnの両方のオプションが提供されています。これはユーザーに選択肢を与える良いアプローチです。


32-36: ブラウザ用セルフホスティングの手順の明確化

ダウンロードと使用方法についての説明が明確で、ユーザーが追従しやすい形になっています。ただし、具体的なサーバー設定に関する追加情報があればさらに親切かもしれません。


39-50: CDNを通じたブラウザでの利用方法の確認

CDNを使用したスクリプトの読み込み方法が2つ提示されており、選択肢が提供されています。これにより、ユーザーが最新バージョンか特定バージョンを選べるようになっています。


52-54: セキュリティ警告の追加

CDNの使用に関する警告が適切に記載されており、本番環境でのセルフホスティングの推奨が含まれています。これはセキュリティ意識の高い開発者にとって重要な情報です。


82-87: クライアントオブジェクトの作成方法の確認

createClient関数の使用方法が示されており、必要なパラメータが明確にリストアップされています。コメントアウトされたretryオプションも示されており、オプションの使用方法を理解する手助けになります。


91-104: APIメソッドの表の確認

APIメソッドがリスト形式とオブジェクト形式でどのように使用できるかが表で示されています。この表は非常に有用で、ユーザーが各メソッドの適用可能なAPIタイプを簡単に理解できるようにしています。


404-415: TypeScriptの型定義の確認

getListメソッドのレスポンスの型がTypeScriptで適切に定義されています。これにより、型安全性が保証され、開発者がAPIから期待するデータ構造を正確に理解できます。


421-434: TypeScriptの型定義の確認

getListDetailメソッドのレスポンスの型がTypeScriptで適切に定義されています。これは、特定のコンテンツの詳細を取得する際に役立つ型情報を提供します。


440-452: TypeScriptの型定義の確認

getObjectメソッドのレスポンスの型がTypeScriptで適切に定義されています。これは、オブジェクト形式のコンテンツを取得する際に役立つ型情報を提供します。

README_jp.md Show resolved Hide resolved
Copy link
Member

@Sinhalite Sinhalite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wasabi-tr
LGTMです!

@wasabi-tr wasabi-tr merged commit 87cc45c into main Jun 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants