Discourse ドキュメント

:warning: このプラグインは、実験的な Doc Categories プラグイン のために廃止されています。新しいプラグインが実験的と見なされなくなるまで、Docs は引き続きサポートされます。

:discourse2: 概要 Discourse Docs は、ナレッジベースのトピックを検索およびフィルタリングする機能を提供します
:hammer_and_wrench: リポジトリリンク https://github.com/discourse/discourse-docs
:open_book: インストールガイド Discourse でのプラグインのインストール方法

機能

Discourse Docs プラグインは、Discourse フォーラムをコミュニティ主導のナレッジベースに変える強力なツールです。ドキュメントを作成、更新、管理できる専用「Docs」セクションを提供します。このプラグインには、このセクションに簡単にアクセスできる「Docs」ボタンが備わっています。コミュニティの集合知を活用し、重要な情報の一元化されたリソースを提供する素晴らしい方法です。

本質的に、Docs は、定義されたカテゴリおよび/またはタグのセット全体で、ナレッジベース形式のトピックをより容易に表面化することを可能にします。

タグでリストを絞り込んだり、検索バーで検索したり、トピックをクリックして最初の投稿を表示したりできます。これらはすべて、ナレッジエクスプローラーのコンテキストから離れることなく行えます。

Discourse の他の場所からナレッジベースのトピックを見つける必要がありますか?新しい検索ヘルパー in:kb を使用してください。

設定

  1. docs enabled 設定をオンにしてプラグインを有効にします。

  2. docs categories および docs tags 設定にカテゴリとタグを追加します。

  3. ナビゲーションメニューで Docs リンクを見つけます。

  1. 知識へのアクセスが容易になり、利益を得ましょう!

設定項目

名前 説明
docs enabled Docs プラグインを有効にする
docs categories Docs に含めるカテゴリのスラッグのリスト
show tags by group タググループを使用してタグを整理する。関連するタグを分類するためのグループを作成する。
docs tag groups グループごとにタグを表示するために使用されるタググループ
docs tags Docs に含めるタグのリスト
docs add solved filter 解決済みトピックのフィルターを追加する(Discourse Solved のインストールと有効化が必要)
docs add to top menu Docs ビューに移動するためのリンクをトップメニューに追加する
docs add search menu tip 検索メニューのランダムなヒントに「in:docs」というヒントを追加する

便利な組み合わせ

/docs パスの名前変更

サーバーにアクセスできる場合、app.ymlDISCOURSE_DOCS_PATH: 環境変数を追加することで、/docs リンクのパパスを変更できます。

変更を反映させるには、./launcher rebuild app を実行するか、環境変数の変更であるためダウンタイムを最小限に抑えるために ./launcher destroy app && ./launcher start app を実行してください。詳細については、こちらをご覧ください - Set Environmental Variables

また、サイト表示テキストも合わせて変更することをお勧めします。/admin/customize/site_texts ページから「docs」のすべてのインスタンスを検索できますが、主なものは以下の通りです。

  • js.docs.title
  • js.sidebar.docs_link_text

:discourse2: 当社でホストされていますか? /docs パスの名前変更は、エンタープライズプランでのみ利用可能です。詳しくはお問い合わせください。

開発履歴

Docs プラグインは、Knowledge Explorer Theme Component の継続として開発されました。


:discourse2: 当社でホストされていますか? このプラグインは、すべてのホスティングプランで利用可能です。https://www.discourse.org/plugins/docs.html

「いいね!」 95
Discourse Doc Categories
Using Posts as a Wiki?
Using Discourse as a internal Knowledge Base / Intranet
Is anyone working on a Discourse Wiki?
Documentation Library
Community glossary?
The Docs button on meta.discourse
Memberful opinions?
Subcategories and tag groups layout
[Paid] Parent/Child Tagging System + Docs Plugin Group Tagging
Discourse Category Lockdown
Filtering by multiple tags
Docs page in Discourse
Mirrored topic: same topic in two categories
Discourse Docs + Pavilion Layouts Plugin
FAQs, less thread-y more article-y
Topic List Previews (TLP)
Email list server?
Recommnded plugins for supporting a tech community run by a big enterprise?
Is it possible to display the thumbnails in Docs?
Customize docs plugin text link
Install discourse doc plugin from Git is failed
What is this component?
Advice on a support forum
Knowledge Base
Grow my community
Published topic with a link to itself in the forum?
Topic List Thumbnails don't play well with Docs
How-to use Discourse for managing a collaborative newsletter?
Is it possible to restrict certain “docs” to appear based on the user’s groups?
Pinning a post to the top of the topic
Knowledge Base
Discourse has slowly been solving a fatigue I didn't realize I had
Documentation in a Discussion forum
Discourse docs search error, 500 error
Discourse docs search error, 500 error
Discourse Docs Plugin – Topics Not Updating in Docs Page
Forum not working after update – what’s missing?
Knowledge Base
Making my discourse site look a certain way
Time tracking using Discourse?
Back button behavior on docs
Workspace Views
New documentation plugin in development
Is anyone here using their Discourse instance as their entire website?
Question Answer Plugin
How to make the recommanded topics collection
New homes for official and community documentation
Is it possible to show tags in place of subcategories?
Disable auto-scroll for certain topics?
Implementing KCS
How can I compare arbitrary revisions of a post?
How to create a page like the official Discourse docs?
Option to use "Docs view" when accessing Docs category from anywhere in Discourse
DiscoTOC - automatic table of contents
When a thread is too important to lose
About this Community and the Docs
Ability to Create Private Templates
Tips into building a community aside a variety of already existing tools
Sidebar for Subcategories
Published page not visible?
Nest subcategories under their parent categories in the sidebar
File/Document Repository?
Creating user guides for your community
Allow plugins (like docs) to add top-level links in sidebar (rather than hide them in More...)

こんにちは、Discourseコミュニティの皆さん、

specを実行した際に以下のエラーが発生しました。ファイルを変更していません。このエラーは無視しても良いでしょうか?

➜  discourse git:(main) ✗ LOAD_PLUGINS=1 bundle exec rspec plugins/discourse-docs/spec

Randomized with seed 57815
...................................F

Failures:

  1) Discourse Docs | Index topic excerpts when the theme modifier serialize_topic_excerpts is true shows the excerpts
     Failure/Error: expect(page).to have_css(".topic-excerpt", text: topic_1.excerpt)
       expected to find css ".topic-excerpt" but there were no matches

     [Screenshot Image]: /xxxx/discourse/discourse/tmp/capybara/failures_r_spec_example_groups_discourse_docs_index_topic_excerpts_when_the_theme_modifier_serialize_topic_excerpts_is_true_shows_the_excerpts_460.png

     ~~~~~~~ JS LOGS ~~~~~~~
     ~~~~~ END JS LOGS ~~~~

     # ./plugins/discourse-docs/spec/system/docs_index_spec.rb:52:in `block (4 levels) in <main>'
     # ./spec/rails_helper.rb:469:in `block (2 levels) in <top (required)>'

Finished in 13.16 seconds (files took 2.79 seconds to load)
36 examples, 1 failure

Failed examples:

rspec ./plugins/discourse-docs/spec/system/docs_index_spec.rb:50 # Discourse Docs | Index topic excerpts when the theme modifier serialize_topic_excerpts is true shows the excerpts

Randomized with seed 57815

@Hyan、これを解決できましたか?

3件の投稿が新しいトピックに分割されました:ドキュメントの目次を取得するにはどうすればよいですか?

サムさん、SEOの観点からすると、トピックのrel=canonicalは元のトピックを指すべきではないでしょうか?例えば、Dark/Light Mode Toggle - theme-component - Docs - Discourse MetaDark/Light Mode Toggle - theme-component - Discourse Meta のように。この2つのバージョンのページがGoogleのアルゴリズムで互いに食い合わないか気になります。

「いいね!」 1

はい、絶対に何かすべきです

「いいね!」 1

申し訳ありません、@JammyDodgerさん。最近、Specを実行する機会がありませんでした。最近はDiscourse Docs関連の仕事には集中しておらず、他のことをしています。しかし、機会があればお知らせします。

「いいね!」 2

ハンバーガーメニューの「ドキュメント」の横にあるアイコンを、リンク/チェーンから別のものに変更する方法はありますか?

このプラグインは、すべてのドキュメントカテゴリを1か所にまとめるのに最適です。これにより、カテゴリリスト(Discourse Category Hiderのおかげで)にもそれらをリストする必要がなくなります。しかし、問題に気づきました。

Docs Plugin/画面内では、既存のドキュメントを編集したり、新しいドキュメントを作成したりできません。つまり、編集したいトピック/ドキュメントを見つけるには元のカテゴリに移動する必要があり、ドキュメントを複数の場所にアクセス可能にする必要があります。

Docsプラグイン内で、トピック/ドキュメントの編集を有効にする方法はありますか(ユーザーが適切なユーザーグループにいる場合)。

「このトピックに関するディスカッションを表示する」リンクを使用して、そのトピックに移動して編集することはできますか?

「いいね!」 1

こんにちは、非常に迷惑な問題が発生しており、その原因がわかりません。

ドキュメントを作成すると、ドキュメント領域に表示され、期待どおりに機能します。しかし、ドキュメントが編集されると、クリック時にドキュメントのリストのトピックのドキュメントレイアウトがデフォルトのDiscourseトピックレイアウトに戻り、実際のドキュメントレイアウトが表示されなくなります。

数分後にトピックドキュメントレイアウトに戻り、期待どおりに表示されることに気づきました。何か原因となっている可能性はありますか?

また、テーマコンポーネント「Topic Thumbnails」を使用しており、ドキュメントのサムネイルモードを「list」に設定していることに注意してください。

問題が見つかりました。どうやら、Topic List Excerpts または Topic lists Thumbnails というテーマコンポーネントを使用すると、クリック可能な href が KB ドキュメントの docs?topic=xxx ではなく、Discourse のトピックページのものになるため、Discourse のトピックにリダイレクトされています。

ドキュメントの URL パスを docs に維持する方法はありますか? @sam または @david に連絡すべきでしょうか?

こんにちは。

ユーザーが最近、些細なデザイン上の問題に気づきました。ブラウザのビューポート幅が狭い場合、次のようなスクリーンショットのように、各ドキュメント投稿のコンテンツがオーバーフローします。

ビューポートが理想よりも狭い場合にサイドバーを自動的に折りたたむ方が良いのではないかと思いますが、サイドバーを折りたたんだとしても、コンテンツはオーバーフローしたままになります。

素晴らしいアドオンをありがとうございます。ただ、1つ質問があります。コンテキストハンバーガーメニューからリンクを削除するオプションはありますか?手動で常に表示されるセクションに追加しました(長文のユーザー作成コンテンツ(記事など)を紹介するためにこの機能を使用したいと考えているため)が、結果として2回表示されるようになりました。

背景が薄い両方のオプションは /docs につながります。

CSSで非表示にできると思います。

.sidebar-section-link-wrapper[data-list-item-name="docs"] {
    display: none;
}
「いいね!」 1

完璧に機能しました!どうもありがとうございました!

ドキュメントページにコメントを統合し、投稿へのリンクとコメント機能の代わりにできるようにするオプションはありますか?

「いいね!」 1

同じビューポート幅のデバイスで同じリンクを再度確認しました。サイドバーを折りたたむ前はまだオーバーフローしていましたが、折りたたんだ後はオーバーフローがなく、表示は正常で見た目も良いことがわかりました。

Docsのデフォルトの検索順序が「関連性」ではなく「アクティビティ日付」であることに驚いています

関連性で検索することは可能ですか?

「いいね!」 2

本日、Docs カテゴリにトピックを投稿しましたが、それらのトピックは Docs ページに表示されません。Docs プラグインをオフにして、テーマを再度オンにしましたが、それらのトピックはまだ表示されません。
よろしくお願いします!