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

プロジェクト構造について #5

Closed
azu opened this issue Aug 27, 2015 · 8 comments · Fixed by #17
Closed

プロジェクト構造について #5

azu opened this issue Aug 27, 2015 · 8 comments · Fixed by #17
Labels
help wanted Extra attention is needed

Comments

@azu
Copy link
Owner

azu commented Aug 27, 2015

Gitbook推奨のプロジェクト構造があるのか調べる。

課題

  • 文章とコードは章ごとにまとめるか?
  • i18n化した際に構造上の変更が対応可能か?
@azu azu added the help wanted Extra attention is needed label Aug 27, 2015
@azu
Copy link
Owner Author

azu commented Aug 28, 2015

https://github.com/azu/promises-book Promise本の場合は文章とコードは章でまとめてた。
i18n対応が難しい感じがあった。

で細かく書いてた

@azu
Copy link
Owner Author

azu commented Aug 29, 2015

現在

.
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SUMMARY.md
├── book.json
├── content
│   ├── introduction
│   └── jQuery
└── package.json

@azu
Copy link
Owner Author

azu commented Aug 29, 2015

各章ごとにsrc.mdを持つのは正しいと思う。
i18n化した時にそこはi18nするべきであると考えられるから。

srcを章以下に置きたい理由はincludeするため

他のもの、test、package.jsonなどはプロジェクト全体の共有資源とかんがえるのが良いのかもしれない。

@azu
Copy link
Owner Author

azu commented Aug 29, 2015

.
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SUMMARY.md
├── book.json
├── content
│   ├── introduction
│   └── jQuery
├── test
│   ├── introduction
│   └── jQuery
└── package.json

i18n化した時が美味しくない感じがする。

.
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SUMMARY.md
├── book.json
├── content
│   ├──  src
│   └── ja
│        ├── introduction
│        └── jQuery
├── test
│   ├── introduction
│   └── jQuery
└── package.json

@azu
Copy link
Owner Author

azu commented Aug 29, 2015

.
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SUMMARY.md
├── book.json
├── src
├── ja
│    ├── introduction
│    └── jQuery
├── test
│   ├── introduction
│   └── jQuery
└── package.json

とするのが http://help.gitbook.com/format/languages.html に も対応できるので妥当…

@azu
Copy link
Owner Author

azu commented Aug 29, 2015

srcのコメントは英語でできるだけ国際化するというのが妥当な感じが

@azu
Copy link
Owner Author

azu commented Aug 29, 2015

GitBookのlocalはなんかjpだけど、正直訳の質がよくないのであえて乗る必要がなさそう

@azu
Copy link
Owner Author

azu commented Aug 29, 2015

#5 (comment) でやろう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant