2017 © Pedro Peláez
 

symfony-bundle gitki-bundle

Symfony Bundle that allows you to easily integrate a git based wiki into your project

image

dontdrinkandroot/gitki-bundle

Symfony Bundle that allows you to easily integrate a git based wiki into your project

  • Tuesday, July 24, 2018
  • by philipsorst
  • Repository
  • 5 Watchers
  • 8 Stars
  • 216 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 17 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

gitki-bundle

Latest Stable Version License Continuous Integration Coverage Maintainability Rating Reliability Rating Security Rating, (*1)

About

Symfony Bundle that allows you to easily integrate a git based wiki into you project., (*2)

This project is currently in alpha state. It is working but changes happen frequently., (*3)

Features

  • Git based
  • Fully integrated markdown support (commonmark)
  • Optional elasticsearch integration
  • Minimal configuration
  • Easy to extend
  • Easy to integrate

Installation

Install via composer:, (*4)

composer require dontdrinkandroot/gitki-bundle

Enable the bundle by adding the following line in the app/AppKernel.php file of your project:, (*5)

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Dontdrinkandroot\GitkiBundle\DdrGitkiBundle(),
        );

        // ...
    }
}

To use this bundle in your project the User class handed to the bundle must implement the Dontdrinkandroot\GitkiBundle\Model\GitUserInterface. Fortunately this is compatible with the FOSUserBundle., (*6)

Configuration

Configure the bundle in the app/config/config.yml. At least the repository path is required which must point to a git repository which is initialized and readable/writeable by the webserver., (*7)

# Default configuration for extension with alias: "ddr_gitki"
ddr_gitki:

    # The path to the git repository containing the wiki files. Must end with slash.
    repository_path:      ~ # Required

    # When enabled breadcrumbs are shown for easy navigation
    show_breadcrumbs:     true

    # When enabled the files and folders of the containing directory are shown while viewing a file
    show_directory_contents: true

    # Markdown specific configuration
    markdown:

        # When disabled all html content is escaped
        allow_html:           false
        toc:

            # Show the table of contents
            enabled:              true

            # Max depth of the table of contents
            max_level:            3

    # Configure elasticsearch integration
    elasticsearch:
        index_name:           ~ # Required
        host:                 localhost
        port:                 9200

    # Maps user roles to internal roles
    roles:

        # Is allowed to view content
        watcher:              IS_AUTHENTICATED_ANONYMOUSLY

        # Is allowed to edit content
        committer:            ROLE_USER
        admin:                ROLE_ADMIN

    # The file names that are used as a directory index. Searched in the order defined.
    index_files:

        # Defaults:
        - index.md
        - README.md
        - index.txt
        - README.txt

Add the routing to the app/config/routing.yml:, (*8)

ddr_gitki_base:
resource: "@DdrGitkiBundle/Resources/config/routing.yml"
prefix: /wiki

Development

Run elasticsearch in docker locally:, (*9)

docker run -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.16.3, (*10)

Source, (*11)

The Versions

03/05 2015

dev-tableparsing

dev-tableparsing

Symfony Bundle that allows you to easily integrate a git based wiki into you project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

git bundle symfony markdown wiki