This is the living style guide for this site. We have constructed the style guide in a way that you should only have to edit the styleguide.blade.php to add your app styles, edit the config and section files to customize the pages and markup examples and should be good to go!
To customize this style guide you will first need to publish the assets. This will place the Laravel Style Guide view files in your application's resources/views/vendor directory. Customize these files to suite your needs.
php artisan vendor:publish
To create a new page of the style guide (which will also add it to the navigation) you need to do two things:
resources/views/vendor folder with an appropriate name. resources/views/vendor and add your new section to the configuration array
<?php return [
'Typography' => 'typeography.html',
'Buttons' => 'buttons.html',
'Forms' => 'forms.html',
'Navigation' => 'navigation.blade.php',
'Alerts' => 'alerts.html',
'Colors' => 'colors.html',
'Something with Spaces' => 'something-with-spaces.html',
];
This is the general layout of any section in the page:
<div class="example">
<button class="btn" type="button">Button button</button>
<a class="btn" href="#" role="button">Link button</a>
<pre><code class="highlight html">
<button class="btn" type="button">Button button</button>
<a class="btn" href="#" role="button">Link button</a>
</code></pre>
</div>
Or you can avoid the annoying escaping it if it's in a blade.php file
<div class="example">
<button class="btn" type="button">Button button</button>
<a class="btn" href="#" role="button">Link button</a>
<pre><code class="highlight html">
{{
'<button class="btn" type="button">Button button</button>
<a class="btn" href="#" role="button">Link button</a>'
}}
</code></pre>
</div>