OSDN Git Service

4.0のtrunkを展開するためにmasterディレクトリを作成しファイル群を移動した。
[nucleus-jp/nucleus-jp-ancient.git] / 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         <!--\r
6                 Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
7                 Copyright (C) 2002-2011 The Nucleus Group\r
8 \r
9                 This program is free software; you can redistribute it and/or\r
10                 modify it under the terms of the GNU General Public License\r
11                 as published by the Free Software Foundation; either version 2\r
12                 of the License, or (at your option) any later version.\r
13                 (see nucleus/documentation/index.html#license for more info)\r
14 \r
15                 @license http://nucleuscms.org/license.txt GNU General Public License\r
16                 @copyright Copyright (C) 2002-2011 The Nucleus Group\r
17         -->\r
18         <!-- $Id$ -->\r
19         <!-- $NucleusJP: custominstall.html,v 1.5 2006/07/12 07:11:46 kimitake Exp $ -->\r
20         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
21     <link rel="index" href="./index.html" />\r
22         <title>Nucleus - インストールスクリプトのカスタマイズ</title>\r
23         <link rel="stylesheet" type="text/css" href="styles/manual.css" />\r
24         <script src="http://www.google.com/jsapi"></script>\r
25         <script type="text/javascript">\r
26                 google.load("jquery", "1");\r
27                 google.setOnLoadCallback(function() {\r
28                         $.getScript("javascript/fontsizeChanger.js");\r
29                 });\r
30         </script>\r
31 </head>\r
32 <body>\r
33 <div id="fontSizeChanger">\r
34 <a href="#top" id="f_small">小</a>\r
35 <a href="#top" id="f_medium">中</a>\r
36 <a href="#top" id="f_large">大</a>\r
37 </div>\r
38 <div id="body">\r
39 \r
40 <div class="heading">\r
41 インストールスクリプトのカスタマイズ\r
42 </div>\r
43 \r
44 <p class="note">注:この機能はバージョン2.2以降のものです。</p>\r
45 \r
46 <h1>イントロダクション</h1>\r
47 \r
48 <p>\r
49 <a href="index.html">開発者向けドキュメントの目次へ戻る</a>\r
50 </p>\r
51 \r
52 <p>このドキュメントにはNucleusのインストール・スクリプトをどのようにカスタムするかという情報が書かれています。二つの方法でカスタマイズが可能です:</p>\r
53 \r
54 <ol>\r
55         <li>スキンの自動インストール</li>\r
56         <li>プラグインの自動インストール</li>\r
57 </ol>\r
58 \r
59 <h1>設定</h1>\r
60 \r
61 <p><code>install/index.php</code>をエディタで開き、次のコードを探してください:</p>\r
62 \r
63 <pre><code>// array with names of plugins to install. Plugin files must be present in the nucleus/plugin/\r
64 // directory.\r
65 //\r
66 // example:\r
67 //       array('NP_TrackBack', 'NP_MemberGoodies')\r
68 $aConfPlugsToInstall = array(\r
69         'NP_SkinFiles',\r
70 );\r
71 \r
72 \r
73 // array with skins to install. skins must be present under the skins/ directory with\r
74 // a subdirectory having the same name that contains a skinbackup.xml file\r
75 //\r
76 // example:\r
77 //       array('base','rsd')\r
78 $aConfSkinsToImport = array(\r
79         'atom',\r
80         'rss2.0',\r
81         'rsd',\r
82         'default',\r
83 );</code></pre>\r
84 \r
85 <p>やるべき事はこのコードを変更するだけです:自動インストールしたいプラグインとスキンの名前を、例のような配列リストにしてください。</p>\r
86 \r
87 <h1>ファイルの取り込み</h1>\r
88 \r
89 <p>設定を変更した次は、ディストリビューションにファイルを追加する必要があります。</p>\r
90 \r
91 <h2>プラグインとスキン</h2>\r
92 \r
93 <p>プラグインは、<code>nucleus/plugins/</code>ディレクトリにファイルをおいてください。プラグインを手動でインストールする場合にするのと全く同じです。</p>\r
94 \r
95 <p>スキンは、手動でインポートする時と同様に、<code>skins/</code>直下にディレクトリをおいてください。<code>skinbackup.xml</code>をそこに入れておくことをお忘れ無く。</p>\r
96 \r
97 <h1>忘れてはいけないこと</h1>\r
98 \r
99 <p>再配布する前に、カスタマイズされたインストールスクリプトをテストすることを忘れないでください。</p>\r
100 \r
101 </div>\r
102 \r
103 </body>\r
104 </html>