-
Notifications
You must be signed in to change notification settings - Fork 1
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 draft #14
README draft #14
Conversation
|
Name | Type |
---|---|
@location-state/core | Major |
@location-state/next | Major |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@@ -0,0 +1,31 @@ | |||
# @location-state/core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core
の方のREADME構成も追加してみました。
前半は被ってしまうけどnpmのサイトにも載るのでほぼ同じでも書くべきかと思って載せてます。
Advanced usageはそこそこ長くなってしまう気がしてて、別ドキュメントにしてリンクだけ貼っとくべきか悩んでます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
それぞれのパッケージのREADME.md
はトップのやつのコピペでもいいかもですね
そしてAPIドキュメントは別ファイルでも構わないかな
Advanced Usageは最初からなくてもいいかなぁ
どうせAPIリファレンスに必要な情報は出てくるし
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あと先頭付近の一行説明についてはこちらも
#6 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この1行説明をリポジトリに反映するのはどこでやるんだろう?
リポジトリ一覧を見るとrecoil-sync-nextには説明があるけどlocation-stateにはない。。。?
https://github.com/orgs/recruit-tech/repositories
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
構成忘れそうなので、一旦API.mdをTBWで作成してcoreとnextそれぞれのREADMEからリンクだけ貼ってみました。
0257c7a
それぞれのパッケージのREADME.mdはトップのやつのコピペでもいいかもですね
それぞれタイトル変えるくらいなイメージだったので一旦それで置いてみましたが、どうでしょう?
@location-state/next
の方はpages routerのquick startだけでいいかなと思ったものの、App Routerどうするかも書いておくべき≒やはりほぼ同じ内容であるべきなのか悩んで、意見聞いてからにしようかと思い...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コピペと書いたのはよくなかったですね、@location-state/core
のREADMEにはPages Routerの使い方は要らなくて、@location-state/next
のREADMEにはApp Routerの使い方は要らないと思います
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@location-state/coreのREADMEにはPages Routerの使い方は要らなくて、@location-state/nextのREADMEにはApp Routerの使い方は要らないと思います
↑のように一部削除しました。
418bcfc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
オッケーでーす
日本語になってるところをDeepLでもなんでもいいので英語化しましょう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deeplしました!
4f61ad6
# Conflicts: # packages/location-state-core/package.json # packages/location-state-next/package.json
# Conflicts: # packages/location-state-core/package.json # packages/location-state-next/package.json
# Conflicts: # packages/location-state-core/package.json # packages/location-state-next/package.json
chagesets修正してmajorにしました |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コミットにコメントしたけどコミット自体が古くなってたようなので改めてコメントしなおし
なんか日本語の段階でもう少し精査すべきだった。。。 というかその時点でDeepLしておけばよかったのか?
README.md
Outdated
|
||
## Features | ||
|
||
TBW | ||
- You can manage the state linked to the history location. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ライブラリのFeaturesなのに「You can ~」は微妙かなぁ。。。
その点は日本語の時点で気付くべきだったか
つまり誰かが「行うことができる」ではなくライブラリが「何をする」あるいは「何をしてくれる」という表現にすべきだった
あと「連動する」はlinkedになるのね、、、linke(d)はこの世界だとlinked listとかlinkerとかで使われるように結びつきが強い場合に選ばれる印象
なのでここは日本語の段階で「同期する」にすべきだったか
合わせると「履歴位置に同期する状態を管理する」となり、DeepLしてちょっと調整 (positionをlocationに) すると
Manage the state to synchronize with the history location.
となり、この方が自然かなと
1行紹介と違いがない気がしなくもないけど!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほどです!
修正しました。
8247dd0
README.md
Outdated
|
||
## Features | ||
|
||
TBW | ||
- You can manage the state linked to the history location. | ||
- By default, Session Storage/URL can be specified as the destination. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こっちも同様にライブラリが何をしてくれるかという観点と、destinationだけだとなんのdestinationか分かりにくいので「デフォルトでは、永続先としてSession StorageとURLをサポートする」としてからDeepLすると
By default, supports Session Storage and URL as persistent destinations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正しました。
8247dd0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ちょっと追加
.changeset/breezy-penguins-boil.md
Outdated
"@location-state/core": patch | ||
"@location-state/next": patch | ||
"@location-state/core": major | ||
"@location-state/next": major | ||
--- | ||
|
||
Initial construction of the package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これも微妙だなー
constructionっていうとシステムとかの構築では使ってもライブラリで使うんだっけ?という疑問が (というかまず見かけない気がする)
ここはシンプルに「Initial release.」でいいかなぁ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正しました。
8247dd0
README.md
Outdated
[![npm version](https://badge.fury.io/js/@location-state%2Fcore.svg)](https://badge.fury.io/js/@location-state%2Fcore) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
||
State management library for React that synchronizes with history entries supporting Next.js App Router. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
history entriesとhistory locationが混在するのも気になるので一行紹介もhistory locationに揃えましょうか
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正しました。
8247dd0
export function Providers({ children }: { children: React.ReactNode }) { | ||
return <LocationStateProvider>{children}</LocationStateProvider>; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここでファイルが変わるのでコードブロックも区切りましょうか
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正しました。
8247dd0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
乙! LGTM!!!
参考
#6