定制 qossmic/twig-doc-bundle 二次开发

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

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

qossmic/twig-doc-bundle

最新稳定版本:v0.0.3

Composer 安装命令:

composer require qossmic/twig-doc-bundle

包简介

Storybook with twig components

README 文档

README

Image Brought to you by qossmic!

  1. Ye be warned!
  2. Installation
  3. Configuration
    1. Bundle Configuration
    2. Component Configuration
  4. Routing
  5. Customization
  6. Usage

Experimental Package

Important: This is an experimental version and might change drastically. Therefore, you might encounter breaking changes when updating until we release a stable version.

  • bad templates: due to the lack of frontend capacities, the templates are very "basic"
    • but as in every Symfony bundle, you can easily overwrite them and create your own :-)
  • incomplete documentation
  • no translations (yet)

Allows you to create an overview for your Twig Components, be it either UX-Components, UX-Live-Components or simple snippet templates.

Components will be grouped in categories and optional sub-categories.

Installation

As long as the bundle is not publicly released, you need to add a repository to your composer.json file:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/qossmic/twig-doc-bundle.git"
    }
  ]
}

Install the bundle

composer req qossmic/twig-doc-bundle

Routing

As symfony never creates routes for bundles, you need to configure this on your own!

Create a config file: config/routes/twig_doc.yaml

twig_doc:
  resource: '@TwigDocBundle/config/routing/documentation.xml'
  prefix: /twig/doc
  # or for localized: prefix: /{_locale}/twig/doc/

Customizing the design

To customize the design of the documentation, you can override any template of the bundle in your project.

See: How to override any Part of a Bundle

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固