teamneusta/pimcore-presentation-bundle

使用 reveal-js 允许在 pimcore 中创建在线演示

v2.0.0 2023-05-11 14:55 UTC

This package is auto-updated.

Last update: 2024-09-20 13:24:21 UTC


README

CI

Software License Required Pimcore Version Supported Pimcore Version

允许使用 reveal-js 在 Pimcore 中创建在线演示。

安装

  1. 需要此捆绑包

    composer require teamneusta/pimcore-presentation-bundle
  2. 启用捆绑包

    将演示捆绑包添加到您的 config/bundles.php

    Neusta\Pimcore\PresentationBundle\NeustaPimcorePresentationBundle::class => ['all' => true],
  3. 安装捆绑包

    bin/console pimcore:bundle:install NeustaPimcorePresentationBundle
  4. 安装 reveal.js

    捆绑包安装后,需要手动安装 reveal-js

    cd vendor/teamneusta/pimcore-presentation-bundle/public
    curl -OL https://github.com/hakimel/reveal.js/archive/master.zip
    unzip master.zip
    rm master.zip

使用方法

使用此捆绑包提供的文档类型创建新的 Pimcore 文档页面。 查看文档获取更多详细信息

配置

此捆绑包提供了一些简单的 areabricks 用于创建演示。当捆绑包与其他捆绑包一起使用时,可能会出现 areabrick 名称冲突,或者您可能根本不感兴趣使用 默认 拼接块。可以使用以下配置禁用包含的 areabricks

neusta_pimcore_presentation:
    bricks: false

贡献

请随时提出任何错误、功能请求或其他想法的问题。

请在创建大型 pull request 之前创建问题。

本地开发

要在本地机器上进行开发,需要供应商依赖项。

bin/composer install

我们使用 composer 脚本作为主要质量工具。它们可以通过 bin/composer 文件执行。

bin/composer cs:fix
bin/composer phpstan
bin/composer tests