差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
web:dokuwiki:localize [2010/04/17 23:53] yuki |
web:dokuwiki:localize [2011/08/24 10:07] |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
- | ======DokuWikiの設定例====== | ||
- | このページがどのように設定されているかを例に書く。 | ||
- | |||
- | =====テンプレートの変更===== | ||
- | とりあえず見た目を変える。\\ | ||
- | DokuWikiのテンプレートの導入方法は、./lib/tpl/にテンプレートディレクトリごと置いて、管理画面からテンプレートの変更を行うだけ。 | ||
- | |||
- | このページでは、テンプレートに[[dw>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表記の調整 ===== | ||
- | [[dk>ja:rewrite]]を参照するのが正確だと思われる。\\ | ||
- | ここでは、ubuntu9.10-server + apache2を使用している場合を想定している。 | ||
- | |||
- | <code> | ||
- | # a2enmod rewrite | ||
- | # vi /etc/apache2/sites-available/default | ||
- | </code> | ||
- | 適当な場所に以下の設定を加える。 | ||
- | <code> | ||
- | <Directory /var/www/doku> | ||
- | AllowOverride All | ||
- | </Directory> | ||
- | </code> | ||
- | 以下の内容の.htaccessをdoku.phpと同じディレクトリに配置。 | ||
- | <code> | ||
- | RewriteEngine on | ||
- | |||
- | RewriteBase /dokuwiki | ||
- | |||
- | 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> | ||
- | |||
- | |||
- | |||
- | |||
- | ---- | ||
- | =====プラグインの導入===== | ||
- | |||
- | |||
- | |||
- | |||
- | {{tag>web wiki dokuwiki arctic}} | ||
- | |||