Skip to content

Latest commit

 

History

History
49 lines (46 loc) · 1.23 KB

first_use_installing_and_configuring.md

File metadata and controls

49 lines (46 loc) · 1.23 KB

Installing and configuring

The easiest way to install this bundle is using Composer

$ composer require lin3s/pattern-library-builder

Register the Bundle in your AppKernel

$bundles = [
    ...
    new Lin3sPatternLibraryBuilderBundle(),
    ...
];

Configure the basic settings in your config.yml:

lin3s_pattern_library_builder:
    theme:
        title: "My title"
        description: "My description"
        custom_styles:
            color_primary: "#000"
        logo: ~
        javascripts: []
        stylesheets: []
    templates_config_files_path: "%kernel.root_dir%/PatternLibrary"

Add routes to access the Design System in your routing file:

_pattern_library:
    resource: "@Lin3sPatternLibraryBuilderBundle/Resources/config/routing.yml"

Create a folder in your AppBundle kernel root named PatternLibrary to store the Pattern Library configuration and create an index configuration file.

status: 0
description: '<p>This is the icon card component description.</p>'
renderer:
    type: homepage
    options:
        sections: []

Install assets

$ bin/console assets:install --symlink

Now you can navigate to http://localhost:8000/design-system and see the index page.