GitWikiBundle
Wiki bundle using Git for versioning pages.
Install / Use
/learn @GromNaN/GitWikiBundleREADME
Requirements
- Git >= 1.5
Installation
Download source and dependencies:
::
git submodule add git://github.com/GromNaN/GitWikiBundle.git src/Bundle/GromNaN/GitWikiBundle
git submodule add git://github.com/GromNaN/GitCore.git src/Bundle/GromNaN/php-git-repo
Enable the bundle in your application kernel.
::
# app/AppKernel.php
public function registerBundles()
{
return array(
# ...
new Bundle\GitWikiBundle\GitWikiBundle(),
# ...
);
}
Add Git lib in the autoload file:
::
# src/autoload.php - line 21
$loader->registerNamespaces(array(
# ...
'Git' => $vendorDir.'/php-git-repo/src',
# ...
));
Configuration
DI parameters
::
# app/config/config.yml
git_wiki.config: ~
For advanced configuration, the available parameters are:
::
# app/config/config.yml
git_wiki.config:
dir: %kernel.root_dir%/wiki
debug: false
executable: /usr/bin/git
views:
view: GitWikiBundle:Default:view.php.html
edit: GitWikiBundle:Default:edit.php.html
history: GitWikiBundle:Default:history.php.html
Git repository
The dir parameter is a full path to a Git repository. You must init it before using the wiki.
::
cd app/wiki
git init
Routing
::
# app/config/routing.yml
wiki:
resource: GitWikiBundle/Resources/config/routing.xml
prefix: /wiki
Contribute
Project hosting on https://github.com/GromNaN/GitWikiBundle Feel free to send pull requests !
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
