teamneusta / pimcore-presentation-bundle
使用 reveal-js 允许在 pimcore 中创建在线演示
v2.0.0
2023-05-11 14:55 UTC
Requires
- php: ^8.1
- pimcore/pimcore: ^10.0
- symfony/config: ^5.3
- symfony/console: ^5.3
- symfony/dependency-injection: ^5.3
- symfony/event-dispatcher: ^5.2
- symfony/finder: ^5.2
- symfony/http-kernel: ^5.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.11
- jangregor/phpstan-prophecy: ^1.0
- phpspec/prophecy-phpunit: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.8
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^9.3
README
允许使用 reveal-js 在 Pimcore 中创建在线演示。
安装
-
需要此捆绑包
composer require teamneusta/pimcore-presentation-bundle
-
启用捆绑包
将演示捆绑包添加到您的
config/bundles.php
Neusta\Pimcore\PresentationBundle\NeustaPimcorePresentationBundle::class => ['all' => true],
-
安装捆绑包
bin/console pimcore:bundle:install NeustaPimcorePresentationBundle
-
安装 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