happytodev/blogr-docs
Composer 安装命令:
composer require happytodev/blogr-docs
包简介
Documentation system plugin for Blogr — hierarchical docs, learning paths, media embeds, PDF export
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-05