DokuWiki 与 SVN:如何以及什么应该受到源代码控制
我想将我的文档存储在 SVN 源代码管理下。
在 DokuWiki 设置中,
Directory for saving data '.../apps/dokuwiki/data'
DokuWiki 将所有数据存储在 '.../apps/dokuwiki/data' 文件夹下的文本文件中。那里有很多东西,包括索引缓存等。看来我只需要 'pages' 文件夹。
如何将 'pages' 文件夹移动到 SVN 文件夹中并配置 DocuWiki 以使用其中的页面?
I want to store my documentation under SVN source control.
In DokuWiki settings there is
Directory for saving data '.../apps/dokuwiki/data'
DokuWiki stores all data inside text files under '.../apps/dokuwiki/data' folder. There are many stuffs there including indexes caches etc. It seems that I only need the 'pages' folder.
How can I move the 'pages' folder inside my SVN folders and configure the DocuWiki to use pages from there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
$conf['datadir']
可在conf/local.php
中使用,独立于data
中的其余目录设置页面目录>。您可能还想使用$conf['mediadir]
来上传图像和文件,也许还想使用$conf['metadir']
来保存页面元数据。$conf['datadir']
can be used inconf/local.php
to set the page directory independently from the rest of the directories indata
. You probably want to use$conf['mediadir]
for uploaded images and files as well and maybe$conf['metadir']
for saving page metadata.这是我设置的示例:
注意,请务必使用
'datadir'
(而不是'pagedir'
),如前面答案的注释中所述。你可能还想配置你的阁楼:
这使得 svn 下的管理更加复杂,因为你必须一直添加阁楼文件,但它保留了开发人员之间的更改历史记录。不过,这更多地取决于您的安装;如果您定期清洁阁楼,您就不会愿意这样做。
Here's an example of what I set mine to:
N.B. Be sure to use
'datadir'
(not'pagedir'
) as noted in the comments to the earlier answer.You may also want to configure your attic:
This makes management under svn more complicated, as you have to add attic files all the time, but it preserves change history across developers. This depends a little more on your installation though; if you regularly clean your attic you wouldn't want to do this.