LoginSignup
3
3

More than 3 years have passed since last update.

DocPadのファイルをGitHub PagesでDeployする方法

Last updated at Posted at 2013-08-27

DocPadで作ったファイルをGitHub PagesでDeployするには「docpad-plugin-ghpages」という公式のプラグインがあるので、それを使えば楽に /out/フォルダ内のファイルをgh-pagesブランチへpushしてDeployすることができる。

docpad-plugin-ghpages

インストール

terminal.appを立ち上げて下記コマンドを入力する。

$ docpad install ghpages

これでインストール完了。

使い方

Deployコマンドを入力する前に、DocPadプロジェクトのフォルダ内で下記のコマンド入力する。

$ git add .
$ git commit -m "commit message"
$ git remote add origin [GitHub clone URL]
$ git fetch origin

最後に

$ docpad deploy-ghpages

でDeploy完了。
/out/をgh-pagesブランチにアップしてくれるので良い。

3
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3