happytodev / blogr-docs
Documentation system plugin for Blogr — hierarchical docs, learning paths, media embeds, PDF export
Package info
github.com/happytodev/blogr-docs
Type:filament-plugin
pkg:composer/happytodev/blogr-docs
2.0.2
2026-07-07 22:38 UTC
Requires
- php: ^8.3
- barryvdh/laravel-dompdf: ^3.1
- filament/actions: ^5.0
- filament/filament: ^5.0
- filament/schemas: ^5.0
- filament/support: ^5.0
- filament/tables: ^5.0
- happytodev/blogr: *
- league/commonmark: ^2.6
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- larastan/larastan: ^3.10
- laravel/pint: ^1.29
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
This package is auto-updated.
Last update: 2026-07-07 22:39:22 UTC
README
Documentation system plugin for Blogr.
Features
- Hierarchical documentation tree — nested sections and pages with parent-child relationships
- Learning paths — curated, ordered sequences of articles
- Media embeds — automatically convert YouTube, Vimeo, Dailymotion, Spotify, SoundCloud, Deezer, and Apple Podcast URLs to responsive embeds
- Multi-locale — full translation support following Blogr's Translation-First pattern
- Sidebar navigation — auto-generated tree navigation
- Breadcrumbs — auto-generated from hierarchy
- Previous/Next navigation — between sibling articles
- Table of contents — auto-generated from markdown headings
- Markdown content — with code highlighting support
- SEO — meta titles, descriptions, keywords per translation
- Draft/version system — save drafts and track version history
- PDF export — download articles as PDF
- Search — full-text search across all content
- Admin UI — Filament PHP resources for managing the documentation tree
Installation
composer require happytodev/blogr-docs php artisan vendor:publish --tag=blogr-docs-migrations php artisan migrate
Add the plugin to your Filament panel:
use Happytodev\BlogrDocs\BlogrDocsPlugin; $panel->plugin(BlogrDocsPlugin::make());
Configuration
Publish the config file:
php artisan vendor:publish --tag=blogr-docs-config
Config options
// 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, ],
Usage
Creating documentation
- Access your Filament admin panel
- Navigate to the "Docs" section
- Create root-level sections (e.g., "Systems", "Development")
- Add child articles with markdown content
- Publish when ready
Media embeds
Simply paste a supported URL on its own line in your markdown content:
Check out this video: https://www.youtube.com/watch?v=dQw4w9WgXcQ Listen to this episode: https://open.spotify.com/episode/7GxUhbCgR
Testing
composer test