cswiley / laravel-style-guide-builder
Simple style guide builder for laravel
This package's canonical repository appears to be gone and the package has been frozen as a result.
0.0.6
2018-07-03 23:55 UTC
Requires
- php: >=7.0.0
- davejamesmiller/laravel-breadcrumbs: >=5.0
- laravel/framework: >5.5.0
- laravel/tinker: ~1.0
- laravelcollective/html: ^5.5
README
Use to quickly generate living style guides for laravel projects.
Setup and configuration
- Publish the package
php artisan vendor:publish
- Configure the package: {project_dir} > config > styleguide.php
- Customize the templates published to resources/views/vendor/styleguide (Currently uses Foundation Zurb as the default)
Creating new pages
- Add new blade files to the components directory under resources/views/vendor/styleguide
- Component files are used to auto-generate the style guides navigation menu
- Ordering of the menu items is customizable using menu variable in the config file: config > styleguide.php
Formatting pages
Blade methods used to generate html:
@component('styleguide::code-head') {{--Component Name Here--}} @endcomponent @component('styleguide::code', [ 'title' => 'Standard Button', 'note' => 'You can put some additional notes here', ]) <a class="button primary" href="#">Example Button</a> @endcomponent