azu / JavaScript-Plugin-Architecture

JavaScriptプラグインアーキテクチャの本
https://azu.github.io/JavaScript-Plugin-Architecture/
MIT License
250 stars 12 forks source link

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

Closed azu closed 9 years ago

azu commented 9 years ago

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

課題

azu commented 9 years ago

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

で細かく書いてた

azu commented 9 years ago

現在

.
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SUMMARY.md
├── book.json
├── content
│   ├── introduction
│   └── jQuery
└── package.json
azu commented 9 years ago

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

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

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

azu commented 9 years ago
.
├── 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 commented 9 years ago
.
├── 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 commented 9 years ago

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

azu commented 9 years ago

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

azu commented 9 years ago

https://github.com/azu/JavaScript-Plugin-Architecture/issues/5#issuecomment-135952457 でやろう