DokuWiki

From LemonWiki共筆
Jump to navigation Jump to search

Another wiki engine! DokuWiki[1](Support forum, Issue tracker, Wiki語法, 中文文件) is so easy for installation. The system requirement is PHP only.

DokuWiki v.2006-03-09+


tag

設定InterWiki, 以串接相同tag的wiki頁面。 (已有其他方案: plugin:tag)


modify the interwiki.conf

  • conf/interwiki.local.conf
  • add the following:
tag doku.php?do=search&id=tag%3E%22{NAME}%22
  • Note: After modification of the configuration, you may need to modify and save another new revision of wiki pages if interwiki did not take effect.

syntax

[[tag>content analysis]]

will perform the search tag+content analysis on the DokuWiki

參考:

中文

  • 中文無法使用exact search
  • 網站名稱 $conf['title'] 若使用中文 & conf/local.php 使用unicode儲存,會導致影像檔無法顯示
  • 約21字的中文頁面名稱的長度限制:
因為中文的頁面名稱是以Unicode編碼(UTF-8 Code in HEX notation[2])儲存,例如頁面「林」會儲存為「%E6%9E%97.txt」,所以當頁面名稱若純粹是中文字或全形的標點符號組成,會面臨MS Windows作業系統NTFS的255字元數的檔名長度限制。以我個人為例:
filename: DokuWiki資料夾路徑/編碼後的檔名.txt
C:\Program Files\Apache Group\Apache2\htdocs\dokuwiki\data\pages\編碼後的檔名.txt
-----------------------------------------------------------------============----
(a)                                                               (b)         (c)
  • 資料夾路徑 + 副檔名: (a) + (c) = 65字元數 + 4字元數
  • 編碼後的檔名: (b) = 255字元數 - (a) - (c) = 約容許21字的中文頁面名稱(頁面名稱由中文字或全形標點符號組成);或者是約190字的英文頁面名稱(由英文、數字、半形的標點符號或空白組成的英文頁面名稱。DokuWiki會將半形的標點符號或空白轉換成 _ ,所以原本應該佔3字元數,減少為1字元數。)。

如果把DokuWiki檔案改到c:\web\dokuwiki\ 也只能增加5個中文字

modification of css

  • copy lib/tpl/default/ to lib/tpl/default_mod/
  • modify design.css
  • modify conf/local.php
$conf['template']    = 'default_mod';

Related:


plugins

[#] [@context] [p:project] [describing text] [yyyy-mm-dd|mm-dd]

note that project should be written in English


more...

syntax