나만의 Dokuwiki 꾸미기

Template(스킨)

Monobook

제작자 사이트

http://tatewake.com/wiki/projects:monobook_for_dokuwiki

유의 사항

  • Navigation 메뉴를 사용하려면 Display Wiki Page를 추가로 설치 하여야 한다.

Tip

HeadLine Level 들여쓰기

제공되는 CSS화일에는 HeadLine Level 들여쓰기가 설정이 안되어 세션마다 시작위치가 아래와 같이 동일하게 출력된다.

Headline Level 3
Headline Level 4
Headline Level 5 

따라서 tpl > monobook > user > Monobook.css 에 다음을 추가한다.

/* special headlines */
div.dokuwiki h1 {font-size: 160%; margin-left: 0px; font-weight: bold;}
div.dokuwiki h2 {font-size: 150%; margin-left: 10px;}
div.dokuwiki h3 {font-size: 140%; margin-left: 20px; border-bottom: none; font-weight: bold;}
div.dokuwiki h4 {font-size: 120%; margin-left: 30px; border-bottom: none; font-weight: bold;}
div.dokuwiki h5 {font-size: 100%; margin-left: 40px; border-bottom: none; font-weight: bold;}
 
/* indent different sections */
div.dokuwiki div.level1 {margin-left: 3px;}
div.dokuwiki div.level2 {margin-left: 13px;}
div.dokuwiki div.level3 {margin-left: 23px;}
div.dokuwiki div.level4 {margin-left: 33px;}
div.dokuwiki div.level5 {margin-left: 43px;}

Plugin

PageMove

  • PageMove - 이미 작성된 페이지를 옮길 수 있게 한다.

Tip

URL Rewriting

Dokuwiki 기존 URL을 아래와 같이 보기 좋게 바꿔준다.

http://example.com/dokuwiki/doku.php?id=dokuwiki:syntax
  ->  http://example.com/dokuwiki/dokuwiki:syntax

이 기능을 사용하려면 웹서버에서 Rewriting이 동작이 되야 한다.

설치 방법

1. Dokuwiki 메인폴더안에 있는 “.htaccess” 화일에 Rewrite기능을 활성화 시킨다.

''# Uncomment these rules if you want to have nice URLs using
# $conf['rewrite'] = 1 - not needed for rewrite mode 2
RewriteEngine on

# Not all installations will require the following line.  If you do, 
# change "/dokuwiki" to the path to your dokuwiki directory relative
# to your document root.
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]
RewriteRule ^index.php$               doku.php

2. Configure Manage에서 Advanced setting의 Use nice URL을 ‘.htaccess’로 변경하거나 Local.php를 아래와 같이 수정

$conf['userewrite'] = '1';

Navigation
Personal Tools