3brs/sylius-documentation-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

3brs/sylius-documentation-plugin

最新稳定版本:2.1.0

Composer 安装命令:

composer require 3brs/sylius-documentation-plugin

包简介

Documentation plugin for Sylius Admin Panel.

README 文档

README

3BRS Logo

Sylius Docs Plugin
License Version Build Status

Features

  • Render Markdown-based documentation directly inside the Sylius Admin panel
  • Easily add editable .md files inside the /documentation directory
  • Secure access: only admins can view the docs

Admin Documentation Index

Admin Documentation Item

Installation

  1. Run:

    composer require 3brs/sylius-documentation-plugin
  2. Register the bundle in your config/bundles.php:

    ThreeBRS\SyliusDocumentationPlugin\ThreeBRSSyliusDocumentationPlugin::class => ['all' => true],
  3. Import the plugin's routing files in config/routes.yaml:

    threebrs_sylius_documentation:
        resource: "@ThreeBRSSyliusDocumentationPlugin/config/routes.yaml"
        prefix: '%sylius_admin.path_name%'
  4. Import the plugin's config file in config/packages/_sylius.yaml:

    imports:
        # ...
        - { resource: "@ThreeBRSSyliusDocumentationPlugin/config/config.yaml" }
  5. (Optional) Redefine the path to your documentation directory in config/bundles/threebrs_sylius_documentation.yaml:

    threebrs_sylius_documentation:
        docs_path: '%kernel.cache_dir%/behat_docs'

Usage

  • Add a documentation/index.md file in the root of your Sylius project (necessary; acts as your table of contents).

  • Add your file URLs to documentation/index.md like so:

    # 🧭 Table of Contents
    
    Welcome to the internal documentation.
    
    - [Getting Started](getting-started.md)
    
    - [Product Import](product-import.md)
    
    - [Shipping Setup](shipping-setup.md)
  • Access your documentation using the Documentation link in the admin panel sidebar.

  • You will see the documentation/index.md you created as a table of contents for your files.

  • Missing files will show Not Found with the name of the file not found.

Development

Usage

  • Develop plugin logic inside /src
  • See Makefile for useful dev tools

Testing

After making changes, make sure tests and checks pass:

make ci

License

This library is under the MIT license.

Credits

Developed by 3BRS

统计信息

  • 总下载量: 76
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-24