Bilibili インラインプレイヤー:再構築不要のDiscourseテーマコンポーネント、セットアップガイドと既存プラグインとの比較

共有の Bilibili 埋め込み再生テーマコンポーネント:

と既存の

プラグインのルートは完全には同じではありません。デプロイ方法:
• discourse-bilibili-onebox はサーバープラグインであり、プラグインとしてインストールされ、再構築が必要です。より安定したものを求める場合はこちらをお勧めします。
• discourse-bilibili-inline-player はテーマコンポーネントであり、インストールが簡単で、再構築は不要です。

使用方法:
• Admin → Customize → Themes に移動します
• Install → From a git repository を選択します
Discourse Bilibili Onebox を追加します
• 現在使用しているテーマにアタッチします
• 投稿で単独の Bilibili リンクを使用してテストします

一般的な Bilibili ビデオリンクおよび一部の関連リンク形式をサポートしています。純粋なテーマコンポーネントのアーキテクチャでは安定して処理できないケースでは、より保守的なフォールバック方式を採用しています。


This project is meant for a different use case from the existing plugin approach. It is a remote theme component, so it can be installed from the Themes UI without editing app.yml or rebuilding the container.

Compared with discourse-bilibili-onebox, the main difference is deployment style:
• discourse-bilibili-onebox: server plugin, plugin install path, rebuild required
• discourse-bilibili-inline-player: theme component, lighter setup, no rebuild required

This component is intended for admins who want a simpler way to try Bilibili inline playback on Discourse.

Basic setup is straightforward:
• go to Admin → Customize → Themes
• choose Install → From a git repository
• add the repository
• attach it to your active theme
• test with a standalone Bilibili link in a post

It supports common Bilibili video links and some related URL forms. For cases that cannot be handled reliably in a pure theme-component architecture, it falls back more conservatively.

I’m sharing it here in case this lighter theme-component approach is useful to others.