OSDN Git Service

c38200738611a6ddebe6b1dcd43de7e4f2083046
[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-2012 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         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
16     <link rel="index" href="./index.html" />\r
17         <title>Nucleus - インストールスクリプトのカスタマイズ</title>\r
18         <link rel="stylesheet" type="text/css" href="styles/manual.css" />\r
19         <script src="http://www.google.com/jsapi"></script>\r
20         <script type="text/javascript">\r
21                 google.load("jquery", "1");\r
22                 google.setOnLoadCallback(function() {\r
23                         $.getScript("javascript/fontsizeChanger.js");\r
24                 });\r
25         </script>\r
26 </head>\r
27 <body>\r
28 <div id="fontSizeChanger">\r
29 <a href="#top" id="f_small">小</a>\r
30 <a href="#top" id="f_medium">中</a>\r
31 <a href="#top" id="f_large">大</a>\r
32 </div>\r
33 <div id="body">\r
34 \r
35 <div class="heading">\r
36 インストールスクリプトのカスタマイズ\r
37 </div>\r
38 \r
39 <p class="note">注:この機能はバージョン2.2以降のものです。</p>\r
40 \r
41 <h1>イントロダクション</h1>\r
42 \r
43 <p>\r
44 <a href="index.html">開発者向けドキュメントの目次へ戻る</a>\r
45 </p>\r
46 \r
47 <p>このドキュメントにはNucleusのインストール・スクリプトをどのようにカスタムするかという情報が書かれています。二つの方法でカスタマイズが可能です:</p>\r
48 \r
49 <ol>\r
50         <li>スキンの自動インストール</li>\r
51         <li>プラグインの自動インストール</li>\r
52 </ol>\r
53 \r
54 <h1>設定</h1>\r
55 \r
56 <p><code>install/index.php</code>をエディタで開き、次のコードを探してください:</p>\r
57 \r
58 <pre><code>// array with names of plugins to install. Plugin files must be present in the nucleus/plugin/\r
59 // directory.\r
60 //\r
61 // example:\r
62 //       array('NP_TrackBack', 'NP_MemberGoodies')\r
63 $aConfPlugsToInstall = array(\r
64         'NP_SkinFiles',\r
65 );\r
66 \r
67 \r
68 // array with skins to install. skins must be present under the skins/ directory with\r
69 // a subdirectory having the same name that contains a skinbackup.xml file\r
70 //\r
71 // example:\r
72 //       array('base','rsd')\r
73 $aConfSkinsToImport = array(\r
74         'atom',\r
75         'rss2.0',\r
76         'rsd',\r
77         'default',\r
78 );</code></pre>\r
79 \r
80 <p>やるべき事はこのコードを変更するだけです:自動インストールしたいプラグインとスキンの名前を、例のような配列リストにしてください。</p>\r
81 \r
82 <h1>ファイルの取り込み</h1>\r
83 \r
84 <p>設定を変更した次は、ディストリビューションにファイルを追加する必要があります。</p>\r
85 \r
86 <h2>プラグインとスキン</h2>\r
87 \r
88 <p>プラグインは、<code>nucleus/plugins/</code>ディレクトリにファイルをおいてください。プラグインを手動でインストールする場合にするのと全く同じです。</p>\r
89 \r
90 <p>スキンは、手動でインポートする時と同様に、<code>skins/</code>直下にディレクトリをおいてください。<code>skinbackup.xml</code>をそこに入れておくことをお忘れ無く。</p>\r
91 \r
92 <h1>忘れてはいけないこと</h1>\r
93 \r
94 <p>再配布する前に、カスタマイズされたインストールスクリプトをテストすることを忘れないでください。</p>\r
95 \r
96 </div>\r
97 \r
98 </body>\r
99 </html>