差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
次のリビジョン | 前のリビジョン | ||
web:dokuwiki:localize [2010/04/17 23:18] yuki 作成 |
web:dokuwiki:localize [2011/08/24 10:07] (現在) |
||
---|---|---|---|
ライン 2: | ライン 2: | ||
このページがどのように設定されているかを例に書く。 | このページがどのように設定されているかを例に書く。 | ||
- | ---- | + | =====前提配置===== |
- | >テンプレートの導入 | + | こんな感じになってるという想定で話をします。 |
+ | <code> | ||
+ | # ls -a /var/www/doku | ||
+ | . COPYING VERSION conf doku.php inc install.php | ||
+ | .. .htaccess.dist README bin data feed.php index.php lib | ||
+ | </code> | ||
+ | |||
+ | |||
+ | =====テンプレートの変更===== | ||
とりあえず見た目を変える。\\ | とりあえず見た目を変える。\\ | ||
- | このページでは、テンプレートに[[dw>template:arctic]]を使用している。 | + | DokuWikiのテンプレートの導入方法は、./lib/tpl/にテンプレートディレクトリごと置いて、管理画面からテンプレートの変更を行うだけ。 |
+ | |||
+ | このページでは、テンプレートに[[doku>template:arctic]]を使用しているのでそれを例に。 | ||
+ | |||
+ | <code> | ||
+ | # wget http://cloud.github.com/downloads/chimeric/dokuwiki-template-arctic/template-arctic.tgz | ||
+ | # tar zxvf template-arctic.tgz | ||
+ | # mv template-arctic /var/www/wiki/lib/tpl/arctic | ||
+ | </code> | ||
+ | 後は管理画面→サイト設定→テンプレートでarcticを選択して決定。 | ||
+ | |||
+ | 細部を変更したい場合は、各テンプレートディレクトリ内にあるstyle.iniを変更すると楽。 | ||
+ | |||
+ | こんな感じで。(一部抜粋) | ||
+ | <code> | ||
+ | [replacements] | ||
+ | ; arctic template LAYOUT | ||
+ | ;__wiki_width__ = "84%" | ||
+ | __wiki_width__ = "92%" | ||
+ | __header_height__ = "5em" | ||
+ | ;__body_margin__ = "1.5em" | ||
+ | __body_margin__ = "1.0em" | ||
+ | __page_padding__ = "0.5em;" | ||
+ | ;__footer_padding__ = "2em" | ||
+ | __footer_padding__ = "1em" | ||
+ | |||
+ | ; arctic template FONT-SIZES AND FONT-COLORS | ||
+ | __font_size__ = "0.8125em" | ||
+ | ;__line_height__ = "150%" | ||
+ | __line_height__ = "125%" | ||
+ | __pagename_color__ = "#f8f8f8" | ||
+ | __logo_color__ = "#f8f8f8" | ||
+ | __headline_color__ = "#333" | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ===== URL表記の調整 ===== | ||
+ | [[doku>ja:rewrite]]を参照するのが正確だと思われる。\\ | ||
+ | ここでは、ubuntu9.10-server + apache2を使用している場合を想定している。 | ||
+ | |||
+ | <code> | ||
+ | # a2enmod rewrite | ||
+ | # vi /etc/apache2/sites-available/default | ||
+ | </code> | ||
+ | 適当な場所に以下の設定を加える。 | ||
+ | <code> | ||
+ | <Directory /var/www/wiki> | ||
+ | AllowOverride All | ||
+ | </Directory> | ||
+ | </code> | ||
+ | 以下の内容の.htaccessをdoku.phpと同じディレクトリに配置。 | ||
+ | <code> | ||
+ | <Files ~ "^[\._]ht"> | ||
+ | Order allow,deny | ||
+ | Deny from all | ||
+ | Satisfy All | ||
+ | </Files> | ||
+ | |||
+ | RewriteEngine on | ||
+ | RewriteBase /wiki | ||
+ | RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L] | ||
+ | RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L] | ||
+ | RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L] | ||
+ | RewriteRule ^$ doku.php [L] | ||
+ | RewriteCond %{REQUEST_FILENAME} !-f | ||
+ | RewriteCond %{REQUEST_FILENAME} !-d | ||
+ | RewriteRule (.*) doku.php?id=$1 [QSA,L] | ||
+ | </code> | ||
+ | 後はapache2を再起動して、動作を確認する。 | ||
+ | <code> | ||
+ | /etc/init.d/apache2 restart | ||
+ | </code> | ||
+ | |||
+ | <note> | ||
+ | URL統一等を目的に調整中なので、[[web:dokuwiki:htaccess]]のように記述を変更。 | ||
+ | </note> | ||
+ | |||
+ | ===== プラグインの導入 ===== | ||
+ | 以下のプラグインを叩き込む。(段組は依存関係) | ||
+ | * [[http://cloud.github.com/downloads/kazmiya/dokuwiki-plugin-asiansearch/dokuwiki-plugin-asiansearch.zip|asiansearch]] | ||
+ | * [[http://samuele.netsons.org/dokuwiki/media/indexmenu.zip|indexmenu]] | ||
+ | * [[http://gauret.free.fr/fichiers/dokuwiki/dokuwiki-note-20090615.tgz|note]] | ||
+ | * [[http://cloud.github.com/downloads/dokufreaks/plugin-pagelist/plugin-pagelist.tgz|pagelist]] | ||
+ | * [[http://www.chimeric.de/_src/plugin-tag.tgztag]] | ||
+ | * [[http://www.dokuwiki.org/lib/exe/fetch.php?hash=e59be7&media=http%3A%2F%2Facodeas.de%2Fplugins%2FVersion0.10.0-pagemove_20100218.zip|pagemove]] | ||
- | ---- | + | ===== この辺で一旦安定 ===== |
- | >プラグインの導入 | + | |
+ | 大体この辺りで一段落。 | ||
+ | {{tag>web wiki dokuwiki arctic}} | ||