PHP code example of happytodev / blogr-docs

1. Go to this page and download the library: Download happytodev/blogr-docs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

happytodev / blogr-docs example snippets


use Happytodev\BlogrDocs\BlogrDocsPlugin;

$panel->plugin(BlogrDocsPlugin::make());

// config/blogr-docs.php

'enabled' => true,         // Enable/disable the docs system
'prefix' => 'docs',        // URL prefix for documentation routes

'sidebar' => [
    'collapsible' => true,
    'show_icons' => true,
],

'toc' => [
    'enabled' => true,
    'max_level' => 3,
],

'search' => [
    'enabled' => true,
    'min_length' => 2,
    'max_results' => 20,
],

'pdf' => [
    'enabled' => false,    // Requires dompdf or Browsershot
],

'embeds' => [
    'youtube' => true,
    'vimeo' => true,
    'dailymotion' => true,
    'spotify' => true,
    'soundcloud' => true,
    'deezer' => true,
    'apple_podcasts' => true,
],
bash
composer  vendor:publish --tag=blogr-docs-migrations
php artisan migrate
bash
php artisan vendor:publish --tag=blogr-docs-config