定制 happytodev/blogr-docs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Access your Filament admin panel
  2. Navigate to the "Docs" section
  3. Create root-level sections (e.g., "Systems", "Development")
  4. Add child articles with markdown content
  5. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固