codex/comments

Codex 插件 - 为您的文档添加评论,如 Disqus 或创建自己的适配器

安装: 33

依赖项: 0

建议者: 9

安全: 0

星标: 0

关注者: 2

分支: 3

类型:codex-addon

dev-master / 2.1.x-dev 2019-04-27 07:24 UTC

This package is auto-updated.

Last update: 2024-08-26 22:25:08 UTC


README

评论插件

为您的文档添加评论。插件使用适配器为 Codex 提供评论系统。您可以选择使用其中任何一个适配器或使用自定义适配器。

包含以下适配器

  • Disqus

安装

composer require codex/comments
php artisan codex:addons:enable codex/comments

配置

config/codex-comments.php

[
    'default' => 'disqus',
    'connections' => [
        'disqus' => [
            'driver'    => 'disqus',
            'shortcode' => 'codex-project',
        ],
    ],
]

[项目]/config.php [项目]/[修订]/revision.yml [项目]/[修订]/[文档] (作为属性)

[
    'processors' => [
        'enabled' => [
            // ...
            'comments' => true
        ],
        'comments' => [
            'enabled' => true,
            'connection' => 'disqus' 
        ]
    ]
]

创建自定义适配器

版权/许可

版权 2019 Robin Radic - MIT 许可