<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lllnorikolll@online &#187; PHPマニュアル</title>
	<atom:link href="http://blog.lllnorikolll.com/archives/tag/php%e3%83%9e%e3%83%8b%e3%83%a5%e3%82%a2%e3%83%ab/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.lllnorikolll.com</link>
	<description>オンライン - WEBアプリケーション開発関連のメモなど</description>
	<lastBuildDate>Sat, 15 Oct 2011 05:08:36 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>MacOS10.6SnowLeopardに常に最新のPHPマニュアルをSVNから作成する</title>
		<link>http://blog.lllnorikolll.com/archives/430</link>
		<comments>http://blog.lllnorikolll.com/archives/430#comments</comments>
		<pubDate>Sun, 31 Oct 2010 02:53:56 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHPマニュアル]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=430</guid>
		<description><![CDATA[PHPマニュアルがSVN管理されるようになり、以前のCVSからのビルドとは少し変わったのでメモ。 SVNのインストール $ sudo port install subversion PhDのインストール $ sudo p [...]]]></description>
			<content:encoded><![CDATA[<p>PHPマニュアルがSVN管理されるようになり、以前の<a href="http://blog.lllnorikolll.com/archives/323" target="_blank">CVSからのビルド</a>とは少し変わったのでメモ。</p>
<h3>SVNのインストール</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> subversion</pre></div></div>

<h3>PhDのインストール</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pear channel-discover doc.php.net
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> doc.php.net<span style="color: #000000; font-weight: bold;">/</span>phd
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> doc.php.net<span style="color: #000000; font-weight: bold;">/</span>phd_php</pre></div></div>

<h3>SVNからから日本語ドキュメント関連のファイルを取得</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> http:<span style="color: #000000; font-weight: bold;">//</span>svn.php.net<span style="color: #000000; font-weight: bold;">/</span>repository<span style="color: #000000; font-weight: bold;">/</span>phpdoc<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span>doc-ja phpdoc</pre></div></div>

<p>↑英語版のマニュアルにしたい場合は、doc-ja の部分を doc-en にしてください。</p>
<h3>マニュアルのビルド</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> phpdoc
$ php doc-base<span style="color: #000000; font-weight: bold;">/</span>configure.php <span style="color: #660033;">--with-lang</span>=ja</pre></div></div>

<p>↑英語版のマニュアルにしたい場合は、デフォルトが en なので &#8211;with-lang オプションをつけなくてOK。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ phd <span style="color: #660033;">-d</span> doc-base<span style="color: #000000; font-weight: bold;">/</span>.manual.xml <span style="color: #660033;">-P</span> PHP <span style="color: #660033;">-f</span> xhtml</pre></div></div>

<p>phpdocディレクトリの中に output というディレクトリが作成される。<br />
phpdoc/output/php-chunked-xhtml/index.htmlをブラウザで開く。<br />
完成☆</p>
<p>ちなみに、configure のオプションは他にもいろいろあるようです。以下のように -h でヘルプが表示されます。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ php doc-base<span style="color: #000000; font-weight: bold;">/</span>configure.php <span style="color: #660033;">-h</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/430/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOS10.5Leopardに常に最新のPHPマニュアルをCVSから作成する</title>
		<link>http://blog.lllnorikolll.com/archives/323</link>
		<comments>http://blog.lllnorikolll.com/archives/323#comments</comments>
		<pubDate>Wed, 01 Jul 2009 02:14:01 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHPマニュアル]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/archives/323</guid>
		<description><![CDATA[MacBookAir(MacOS10.5Leopard)に常に最新のZendFrameworkマニュアルを作成する に続いて、PHPマニュアルもやってみました。 （順番逆じゃない？というツッコミはさておき・・・） PHP [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.lllnorikolll.com/archives/235" target="_blank">MacBookAir(MacOS10.5Leopard)に常に最新のZendFrameworkマニュアルを作成する</a><br />
に続いて、PHPマニュアルもやってみました。<br />
（順番逆じゃない？というツッコミはさておき・・・）</p>
<blockquote><p><span style="color:blue;font-weight:bold;font-size:large">PHPマニュアルはSVN管理されるようになり、この記事に書いてあるビルド方法は古くなりました。新しいビルド方法は</span>　<span style="font-weight:bold;font-size:large"><a href="http://blog.lllnorikolll.com/archives/430">こちら</a></span>　<span style="color:blue;font-weight:bold;font-size:large">を参考にしてください。</span></p></blockquote>
<p>参考にしたのは↓のm-takagiさんのスライド。<br />
<a href="http://handsout.jp/slide/11" target="_blank">http://handsout.jp/slide/11</a></p>
<p>まずはCVSが入っていなかったのでインストール。<br />
最近SVNとGitばかり使っていたことを再確認させられました。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">cvs</span></pre></div></div>

<p>そしてPhDのインストール。<br />
参考にしたスライドより新しいバージョンのPhDをインストールする必要があるようです。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pear channel-discover doc.php.net
<span style="color: #c20cb9; font-weight: bold;">sudo</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> doc.php.net<span style="color: #000000; font-weight: bold;">/</span>phd-beta</pre></div></div>

<p>CVSから日本語ドキュメント関連のファイルを取得</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cvs</span> -d:pserver:cvsread<span style="color: #000000; font-weight: bold;">@</span>cvs.php.net:<span style="color: #000000; font-weight: bold;">/</span>repository <span style="color: #c20cb9; font-weight: bold;">login</span></pre></div></div>

<p>パスワードを聞かれるので「phpfi」と入力。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cvs</span> -d:pserver:cvsread<span style="color: #000000; font-weight: bold;">@</span>cvs.php.net:<span style="color: #000000; font-weight: bold;">/</span>repository checkout phpdoc-ja</pre></div></div>

<p>マニュアルのビルド</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> phpdoc-ja
php configure.php <span style="color: #660033;">--with-lang</span>=ja
phd -d.manual.xml</pre></div></div>

<p>phpdoc-jaディレクトリの中にhtmlディレクトリが作成される。<br />
phpdoc-ja/html/index.htmlをブラウザで開く。</p>
<p>できた☆</p>
<p>更新をする場合は、phpdoc-jaディレクトリで↓の3ステップでOK</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cvs</span> update
php configure.php <span style="color: #660033;">--with-lang</span>=ja
phd -d.manual.xml</pre></div></div>

<p>デザインを変更したい場合は、<br />
/opt/local/lib/php/phd/themes/php/chunkedhtml.php<br />
を編集すればよいとのことですが、いちいちphd -d.manual.xmlをやりなおさなくてはいけない。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>phd<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>chunkedhtml.php</pre></div></div>

<p>で、<br />
&lt;title&gt;の前に<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;phpdoc.css&#8221;&gt;<br />
の一行を追加して、phpdoc-ja/html/phpdoc.cssファイルを作成し、そこでCSSでデザインを変更すると楽にデザイン変更ができます。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/323/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

