OSDN Git Service

翻訳・修正・追加
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / documentation / devdocs / custominstall.html
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="ja-JP" xml:lang="ja-JP">\r
4 <head>\r
5         <!-- $Id: custominstall.html,v 1.6 2006-07-17 20:02:50 kimitake Exp $ -->
6         <!-- $NucleusJP: custominstall.html,v 1.5 2006/07/12 07:11:46 kimitake Exp $ -->
7         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
8     <link rel="index" href="./index.html" />\r
9         <title>Nucleus - インストールスクリプトのカスタマイズ</title>\r
10         <link rel="stylesheet" type="text/css" href="styles/manual.css" />\r
11 </head>\r
12 <body>\r
13 <div id="body">\r
14 \r
15 <div class="heading">\r
16 インストールスクリプトのカスタマイズ\r
17 </div>\r
18 \r
19 <p class="note">注:この機能はバージョン2.2以降のものです。</p>\r
20 \r
21 <h1>イントロダクション</h1>\r
22 \r
23 <p>\r
24 <a href="index.html">開発者向けドキュメントの目次へ戻る</a>\r
25 </p>\r
26 \r
27 <p>このドキュメントにはNucleusのインストール・スクリプトをどのようにカスタムするかという情報が書かれています。二つの方法でカスタマイズが可能です:</p>\r
28 \r
29 <ol>\r
30         <li>スキンの自動インストール</li>\r
31         <li>プラグインの自動インストール</li>\r
32 </ol>\r
33 \r
34 <h1>設定</h1>\r
35 \r
36 <p><code>install.php</code>をエディタで開き、次のコードを探してください:</p>\r
37 \r
38 <pre><code>    // array with names of plugins to install. Plugin files must be present in the nucleus/plugin/\r
39     // directory.\r
40     //\r
41     // example:\r
42     //     array('NP_TrackBack', 'NP_MemberGoodies')\r
43     $aConfPlugsToInstall = array();\r
44 \r
45 \r
46     // array with skins to install. skins must be present under the skins/ directory with\r
47     // a subdirectory having the same name that contains a skinbackup.xml file\r
48     //\r
49     // example:\r
50     //     array('base','rsd')\r
51     $aConfSkinsToImport = array();</code></pre>\r
52 \r
53 <p>やるべき事はこのコードを変更するだけです:自動インストールしたいプラグインとスキンの名前を、例のような配列リストにしてください。</p>\r
54 \r
55 <h1>ファイルの取り込み</h1>\r
56 \r
57 <p>設定を変更した次は、ディストリビューションにファイルを追加する必要があります。</p>\r
58 \r
59 <h2>プラグインとスキン</h2>\r
60 \r
61 <p>プラグインは、<code>nucleus/plugins/</code>ディレクトリにファイルをおいてください。プラグインを手動でインストールする場合にするのと全く同じです。</p>\r
62 \r
63 <p>スキンは、手動でインポートする時と同様に、<code>skins/</code>直下にディレクトリをおいてください。<code>skinbackup.xml</code>をそこに入れておくことをお忘れ無く。</p>\r
64 \r
65 <h1>忘れてはいけないこと</h1>\r
66 \r
67 <p>再配布する前に、カスタマイズされたインストールスクリプトをテストすることを忘れないでください。</p>\r
68 \r
69 </div>\r
70 \r
71 </body>\r
72 </html>