SkillAgentSearch skills...

GitWikiBundle

Wiki bundle using Git for versioning pages.

Install / Use

/learn @GromNaN/GitWikiBundle
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated1y ago
Forks0

Languages

PHP

Security Score

60/100

Audited on May 5, 2024

No findings