Skip to content

Commit

Permalink
v0.9.4
Browse files Browse the repository at this point in the history
leftdelimiter, rightdelimiter オプションを追加
  • Loading branch information
Masaki Yamamoto committed Feb 6, 2014
1 parent 53eb058 commit 56958ac
Show file tree
Hide file tree
Showing 21 changed files with 176 additions and 36 deletions.
14 changes: 14 additions & 0 deletions CHANGELOGS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### 2014年2月06日

**v0.9.4** leftdelimiter, rightdelimiter オプションを追加

### 2014年2月04日

**v0.9.3** scssphpをアップデート、productionビルド時にエラーメッセージが出る場合があるのを抑制

### 2014年1月30日

**v0.9.2** ignorecompilejs, ignorecompilecss, credential オプションを追加

### 2014年1月05日

**v0.8.9** removedirプラグインを追加。LESSコンパイラでエラー検知できないメッセージがあるのに対応。
Expand Down Expand Up @@ -26,3 +38,5 @@ SmartBuilderからPhestに名称変更

[俺聞け6 in Tokyo](http://www.msng.info/archives/2013/09/orekike6-schedule.php)にて[プレビュー公開](http://www.slideshare.net/mskmasaki/web-26886030)(旧名:SmartBuilder)


Phest v0.9.4
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://raw.github.com/chatwork/Phest/master/docs/image/common/logo/logo_phest_white.png"/>

Phestとは
Phest v0.9.4
============

Phest (フェスト) はPHPでできた、デザイナ向けの静的サイトジェネレーターです。
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
2 changes: 1 addition & 1 deletion docs/assets.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
23 changes: 22 additions & 1 deletion docs/changelogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li class="select"><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li class="select"><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand All @@ -41,6 +41,27 @@ <h1>変更履歴</h1>
<div class="contentSection">
<h2>Phestの変更履歴 (<a href="changelogs.xml" target="_blank">RSS</a>)</h2>
<div class="changeLog">
<div class="changeLogContent">
<time>2014年2月06日</time>
<p><strong>v0.9.4</strong> leftdelimiter, rightdelimiter オプションを追加</p>

</div>
</div>
<div class="changeLog">
<div class="changeLogContent">
<time>2014年2月04日</time>
<p><strong>v0.9.3</strong> scssphpをアップデート、productionビルド時にエラーメッセージが出る場合があるのを抑制</p>

</div>
</div>
<div class="changeLog">
<div class="changeLogContent">
<time>2014年1月30日</time>
<p><strong>v0.9.2</strong> ignorecompilejs, ignorecompilecss, credential オプションを追加</p>

</div>
</div>
<div class="changeLog">
<div class="changeLogContent">
<time>2014年1月05日</time>
<p><strong>v0.8.9</strong> removedirプラグインを追加。LESSコンパイラでエラー検知できないメッセージがあるのに対応。</p>
Expand Down
13 changes: 11 additions & 2 deletions docs/changelogs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@
<link>http://localhost/phest/sites/phest_document/changelogs.html</link>
<copyright>ChatWork Inc</copyright>
<description>Phest (フェスト) はPHPでできた、デザイナ向けの静的サイトジェネレーターです</description>
<pubDate>Sun, 05 Jan 2014 19:22:07 +0900</pubDate>
<generator>Phest v0.8.9</generator>
<pubDate>Thu, 06 Feb 2014 16:51:22 +0900</pubDate>
<generator>Phest v0.9.4</generator>
<item>
<title> v0.9.4 leftdelimiter, rightdelimiter オプションを追加
</title> <pubDate>Thu, 06 Feb 2014 00:00:00 +0900</pubDate> </item>
<item>
<title> v0.9.3 scssphpをアップデート、productionビルド時にエラーメッセージが出る場合があるのを抑制
</title> <pubDate>Tue, 04 Feb 2014 00:00:00 +0900</pubDate> </item>
<item>
<title> v0.9.2 ignorecompilejs, ignorecompilecss, credential オプションを追加
</title> <pubDate>Thu, 30 Jan 2014 00:00:00 +0900</pubDate> </item>
<item>
<title> v0.8.9 removedirプラグインを追加。LESSコンパイラでエラー検知できないメッセージがあるのに対応。
</title> <pubDate>Sun, 05 Jan 2014 00:00:00 +0900</pubDate> </item>
Expand Down
14 changes: 12 additions & 2 deletions docs/configurations.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down Expand Up @@ -128,6 +128,10 @@ <h2>vars.yml の設定方法</h2> <p><p>下記の内容がデフォルトで入
<div class="contentSection">
<h2>config.yml の高度な設定方法</h2> <p><p>下記のオプションはconfig.ymlにあらかじめ入っていませんが、追記することで設定できます。</p>

<p><code>leftdelimiter</code> はSmartyの左デリミタの文字を指定できます。(デフォルト:"{")</p>

<p><code>rightdelimiter</code> はSmartyの右デリミタの文字を指定できます。(デフォルト:"}")</p>

<p><code>compileless</code> はLESSでコンパイル処理を実行するかどうかのオプションです。(デフォルト:1)</p>

<p><code>compilesass</code> はSassでコンパイル処理を実行するかどうかのオプションです。(デフォルト:1)</p>
Expand All @@ -146,7 +150,13 @@ <h2>config.yml の高度な設定方法</h2> <p><p>下記のオプションはc

<p><code>pathcoffeescriptnode</code> はCoffeeScriptの公式コンパイラのパスを指定するオプションです。autoを指定すると一般的なパスに入っていた場合自動検知します。(デフォルト:auto)</p>

<p><code>ignoresitemaps</code> はsitemap.xmlに含めないファイルパスを指定できます。(デフォルト:[ 404.html ])</p>
<p><code>credential</code> は認証情報が記載されたYAMLファイルのパスを指定します。s3deployプラグインなどで、認証情報を別ファイルにしたい場合などに使えます。詳しくは<a href="http://cwhost.jp/Phest/sites/phest_document/output/local/s3deploy.html">AmazonS3へのデプロイ</a>を参照してください。 (デフォルト:"")</p>

<p><code>ignoresitemaps</code> はsitemap.xmlに含めないファイルパスを指定できます。配列で定義することができ、文字列でパス名を指定できますが、<code>regex: test/.*\.html</code> などの記法で正規表現での指定も可能です。 (デフォルト:[ 404.html ])</p>

<p><code>ignorecompilejs</code> はsitemap.xmlに含めないファイルパスを指定できます。配列で定義することができ、文字列でパス名を指定できますが、<code>regex: test/.*\.css</code> などの記法で正規表現での指定も可能です。 (デフォルト:[ ])</p>

<p><code>ignorecompilecss</code> はsitemap.xmlに含めないファイルパスを指定できます。配列で定義することができ、文字列でパス名を指定できますが、<code>regex: test/.*\.js</code> などの記法で正規表現での指定も可能です。(デフォルト:[ ])</p>
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/feature/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
2 changes: 1 addition & 1 deletion docs/i18n.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li class="select"><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
2 changes: 1 addition & 1 deletion docs/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
2 changes: 1 addition & 1 deletion docs/newsite.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li class="select"><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
47 changes: 46 additions & 1 deletion docs/s3deploy.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li class="select"><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down Expand Up @@ -84,6 +84,51 @@ <h1>Amazon S3へのデプロイ</h1>
</div>
<div class="contentSection">
<h2>実行にあたってのご注意</h2> <p><p>デプロイされるファイルはpublic-read権限でアップロードされ、すべてのユーザーが閲覧できるので注意してください。</p>
</p>
</div>
<div class="contentSection">
<h2>[高度な設定] 認証ファイルを別のパスで管理する</h2> <p><p>config.ymlに直接AWSの ACCESSKEY や SECRET KEY を書き込むと、バージョン管理システムなどを用いた複数人での共有作業ではセキュリティに問題があるケースがあります。</p>

<p>その場合、<code>config.yml</code><code>credential</code> というキーでYAMLへのパスを設定できるので、バージョン管理システム外のパスを指定することでその危険性を回避できます。</p>

<p>config.yml の設定例</p>

<pre><code>credential: ~/phest_credential.yml #認証情報ファイルへのパス
plugins:
-
s3deploy: #S3へデプロイするファイルを確認 (実際のデプロイは行いません)
_button:
label: デプロイテスト
type: primary
icon: ok-circle
dryrun: true #ここをtrueにするとS3側のファイルを操作しません
prefix: #アップするオブジェクトにつけるprefix
bucket: mybuketname #バケット名
region: tokyo #リージョン名
credentialkey: aws-s3 #認証情報のキー
-
s3deploy: #S3へデプロイする
_button:
label: デプロイ
type: success
icon: cloud-upload
confirm: true
dryrun: false
prefix:
bucket: mybuketname
region: tokyo
credentialkey: aws-s3 #認証情報のキー
</code></pre>

<p>自分のホームディレクトリに、<code>phest_credential.yml</code> という認証情報ファイルを作成し、中に</p>

<pre><code>aws-s3: #認証情報のキー
key: myaccesskey
secret: mysecretkey
</code></pre>

<p>と記述します。認証情報は複数のキーを設定できるので、ユーザーをわけることもできます。
また、<code>key</code><code>secret</code>以外にも、<code>prefix</code><code>bucket</code><code>region</code> なども設定できます。</p>
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/smarty.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="_logo">
<li><a href="s3deploy.html">Amazon S3へのデプロイ<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="i18n.html">多言語対応<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="plugins.html">プラグイン<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (1/05)<i class="icoFontArrowChevronRight"></i></a></li>
<li><a href="changelogs.html">変更履歴 (2/06)<i class="icoFontArrowChevronRight"></i></a></li>
</ul>
</div>
<div id="_mainContent" class="mainContent">
Expand Down
60 changes: 43 additions & 17 deletions phest/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,51 @@
home:
local:
production: http://www.example.com
basetpl: _base.tpl #起点となるテンプレート
encode: #出力する文字エンコード
buildclear: 1 #outputディレクトリをbuild時に中身を削除するか
sitemap: 1 #sitemap.xmlをつくるか
robotstxt: 1 #robots.txtをつくるか
compilejs: 1 #JavaScriptをminifyするか
compilecss: 1 #CSSをminifyするか
compileless: 1 #lessをコンパイルするか
compilesass: 1 #sassをコンパイルするか
compilecoffeescript: 1 #CoffeeScriptをコンパイルするか
uselessnode: 1 #node.jsのlesscを使うか
pathlessnode: auto #lesscのパス
usesassruby: 1 #ruby gemのsassを使うか
pathsassruby: auto #sassのパス
usecoffeescriptnode: 1 #ruby gemのsassを使うか
pathcoffeescriptnode: auto #coffeeのパス
credential: #認証情報などを記載したYAMLファイルのパス
#起点となるテンプレート
basetpl: _base.tpl
#Smartyの左デリミタ
leftdelimiter: "{"
#Smartyの右デリミタ
rightdelimiter: "}"
#出力する文字エンコード
encode:
#outputディレクトリをbuild時に中身を削除するか
buildclear: 1
#sitemap.xmlをつくるか
sitemap: 1
#robots.txtをつくるか
robotstxt: 1
#JavaScriptをminifyするか
compilejs: 1
#CSSをminifyするか
compilecss: 1
#lessをコンパイルするか
compileless: 1
#sassをコンパイルするか
compilesass: 1
#CoffeeScriptをコンパイルするか
compilecoffeescript: 1
#node.jsのlesscを使うか
uselessnode: 1
#lesscのパス
pathlessnode: auto
#ruby gemのsassを使うか
usesassruby: 1
#sassのパス
pathsassruby: auto
#ruby gemのsassを使うか
usecoffeescriptnode: 1
#coffeeのパス
pathcoffeescriptnode: auto
#認証情報などを記載したYAMLファイルのパス
credential:
#対応する言語の種類
languages: []
#sitemap.xmlで無視するファイル
ignoresitemaps: [ 404.html ]
#JavaScriptのminifyを行わないファイル
ignorecompilejs: []
#CSSのminifyを行わないファイル
ignorecompilecss: []
#Smartyの追加プラグインディレクトリ
smartypluginsdir: []
4 changes: 3 additions & 1 deletion phest/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
define('DIR_PHEST',dirname(__FILE__));
require(DIR_PHEST.'/config.php');

$ver = 'v0.9.3';
$ver = 'v0.9.4';

error_reporting(E_ALL);
ini_set('display_errors','On');
Expand Down Expand Up @@ -251,6 +251,8 @@
$smarty = new Smarty;
$smarty->template_dir = array($dir_content,DIR_PHEST.'/templates');
$smarty->compile_dir = DIR_PHEST.'/cache/templates_c/'.$site;
$smarty->left_delimiter = $config_yaml['leftdelimiter'];
$smarty->right_delimiter = $config_yaml['rightdelimiter'];
$smarty->addPluginsDir(array(DIR_PHEST.'/plugins/smarty',$dir_source.'/plugins/smarty'));
if ($config_yaml['smartypluginsdir']){
foreach ($config_yaml['smartypluginsdir'] as $pdir){
Expand Down
6 changes: 6 additions & 0 deletions sites/phest_document/source/changelogs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
changelogs:
-
date: 2014-02-06
title: "**v0.9.4** leftdelimiter, rightdelimiter オプションを追加"
-
date: 2014-02-04
title: "**v0.9.3** scssphpをアップデート、productionビルド時にエラーメッセージが出る場合があるのを抑制"
-
date: 2014-01-30
title: "**v0.9.2** ignorecompilejs, ignorecompilecss, credential オプションを追加"
Expand Down
4 changes: 3 additions & 1 deletion sites/phest_document/source/content/CHANGELOGS.tpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@

{$item.title}

{/foreach}
{/foreach}

{$_phestver}
3 changes: 2 additions & 1 deletion sites/phest_document/source/content/README.tpl.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<img src="https://raw.github.com/chatwork/Phest/master/docs/image/common/logo/logo_phest_white.png"/>

{foreach $content_keys as $ckey}
{$contents[$ckey].title}
{if $ckey == "aboutphest"}{$_phestver}{else}{$contents[$ckey].title}{/if}

============

{$contents[$ckey].content}
Expand Down
4 changes: 4 additions & 0 deletions sites/phest_document/source/contents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ contents:
content:|
下記のオプションはconfig.ymlにあらかじめ入っていませんが、追記することで設定できます。

`leftdelimiter` はSmartyの左デリミタの文字を指定できます。(デフォルト:"{")

`rightdelimiter` はSmartyの右デリミタの文字を指定できます。(デフォルト:"}")

`compileless` はLESSでコンパイル処理を実行するかどうかのオプションです。(デフォルト:1)

`compilesass` はSassでコンパイル処理を実行するかどうかのオプションです。(デフォルト:1)
Expand Down

0 comments on commit 56958ac

Please sign in to comment.