The easiest way to install this bundle is using Composer
$ composer require lin3s/pattern-library-builderRegister 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 --symlinkNow you can navigate to http://localhost:8000/design-system and see the index page.