Another wiki engine! DokuWiki[1](Weblog, Plugins, Support forum, Issue tracker, Wiki語法, 中文文件) is so easy for installation. The system requirement is PHP only.
installation/upgrade
- data in dokuwiki/data/*
- check the $conf['savedir'] in dokuwiki/conf/local.php or dokuwiki.php
- configuration files
- (optional) eduwiki/lib/tpl/template files(theme)
- lib/tpl/default/images/favicon.ico
- lib/images/smileys
- (optional) language file
- inc/lang/__user_defined__/
action link (command parameter)
- do=show - show the page (ex)
- do=edit - edit the page (ex)
- do=backlink - the backlinks of page (ex)
- more on Actionlink plugin
anti-spam issue
- admin -> Access Control List Management
- blacklist: DokuWiki blacklist
- main file: dokuwiki\conf\wordblock.conf from http://blacklist.chongqed.org/
- local file: dokuwiki\conf\wordblock.local.conf (Local file will append the URL blacklist of the main file)
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): 例如尋找「測試報告」,DokuWiki會同時搜尋「測試報告」、「測試」、「報告」等字。
- 和 Google search 一樣可以使用 "" 包裹詞來搜尋 (即"測試報告")。
- 網站名稱 $conf['title'] 若使用中文 & conf/local.php 使用unicode儲存,會導致影像檔無法顯示
- 因為中文的頁面名稱是以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
|
|