DokuWiki 使用技巧
风行水上 @ 2010-08-01 14:45:52
页面导出
- doku.php?do=export_raw
- doku.php?do=export_xhtml
- doku.php?do=export_xhtmlbody
Cache(缓存)
重命名 doku.php
比如想用wiki.php而不是doku.php作为首页面。
- copy doku.php wiki.php
- 修改 index.php 中的 doku.php 为 wiki.php
- 在wiki.php的开始部分添加语句 if(!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT','wiki.php');
删除不必要的语言文件
- 好处是可以减小文件夹大小. e.g. 从 33.5K => 17.3K
# Remove Dummy Lang
find . -type d -path "*lang/*" | egrep -v "/en|/zh" | xargs rm -rf
</code>
<a href="http://noyesno.net/page/brand/nitrous.io"><img src="http://noyesno.u.qiniudn.com/banner/nitrous.mtod.png" alt="nitrous.io"></a>
comments powered by