2012-09-08 20 views
6

Octopressのディレクトリ構造全体を理解したいと思います。それぞれのフォルダとそれがどのように一緒に収まるか。オンラインでドキュメントを見つけることができませんでした。Octopressのディレクトリ構造

例:publicと_deployフォルダの違いは何ですか?

ヘルプとポインタは非常に高く評価されます。

+0

で完全なマニュアルを参照してください? – Abizern

+0

私はすべてのフォルダの目的を聞いています。それはどこにも書かれていないので、Stack Overflowの質問は多くの人々を助けるでしょう。 –

答えて

11

_deploy/

(実行rake generaterake deploy後)これは、あなたのブログを生成_deploy /に生成されたファイルをコピーし、Gitのコミットとマスターブランチにそれらを押し上げるためにそれらを追加します。数秒後にGithubからあなたのコミットが受信され、あなたのサイトに公開されることを伝えるEメールが届きます。 Deploying to Github Pages

public経由: コンパイルサイトディレクトリ、あなたのpublicディレクトリは リモートページに同期されます。

差:public/はラックコンベンションであり、それぞれ生成されてワイプされます。 _deploy/には、gh-pages展開用のgit repoが含まれています。 @Brandon Mathis

root:    # Mapping for relative urls (default: /) 
    source/   # Directory for site source files 
     _includes/ # Main layout partials 
     custom/  # <- Customize head, header, navigation, footer, and sidebar here 
     asides/  # Theme sidebar partials 
     post/  # post metadata, sharing & comment partials 
     _layouts/  # layouts for pages, posts & category archives 

permalink:   # Permalink structure for blog posts 
destination:  # Directory for generated site files 
plugins:   # Directory for Jekyll plugins 
code_dir:   # Directory for code snippets (for include_code plugin) 
category_dir:  # Directory for generated blog category pages 

を経由してここでconfiguring Octopress用のファイルのリストです。

_config.yml  # Main config (Jekyll's settings) 
Rakefile   # Configs for deployment 
config.rb   # Compass config 
config.ru   # Rack config 

はあなたにすべてのフォルダを説明するために誰かを求めているOctopress Documentation

+1

ありがとうございます。私はまだ公共の目的を理解していません。リモートページを提供するために、我々は_deployを正しく持っていますか?なぜ公衆?申し訳ありませんが、その初心者の質問のあまり。 –

+0

バージョン管理で_deployディレクトリが保持されません。 [詳細情報](https://github.com/imathis/octopress/issues/412) – Snger

+0

public /はラックのコンベンションで、それぞれが生成されるとワイプされます。 _deploy /には、gh-pages展開のgit repoが含まれています。 [@Brandon Mathis](http://stackoverflow.com/users/341748/brandon-mathis)[詳細情報](https://twitter.com/imathis/status/246096880591851520) – Snger

関連する問題