Documentazione Discourse

:warning: This plugin is being retired in favour of the experimental Doc Categories plugin. We will still support Docs until the new plugin is no longer considered experimental.

:discourse2: Summary Discourse Docs provides the ability to find and filter knowledge base topics
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-docs
:open_book: Install Guide How to install plugins in Discourse

Features

The Discourse Docs plugin is a powerful tool that transforms your Discourse forum into a community-powered knowledge base. It provides a dedicated Docs section where users can create, update, and curate documentation. This plugin features a Docs button that allows easy access to this section. It’s a great way to leverage the collective knowledge of your community and provide a centralized resource for important information.

In essence, Docs allows for easier surfacing of knowledge-base style topics across a defined set of categories and/or tags.

Filter the list down by tags, search via the search bar, and click on topics to see the first post – all without leaving the context of the knowledge explorer.

Need to find a knowledge base topic from somewhere else in Discourse? Use the new search helper: in:kb.

Configuration

  1. Enable the plugin by turning on the docs enabled setting.

  2. Add categories and tags to the docs categories and docs tags settings.

  3. Find the Docs link in the navigation menu.

  1. Profit with easier access to knowledge!

Settings

Name Description
docs enabled Enable the Docs Plugin
docs categories A list of category slugs to include in docs
show tags by group Organize tags using Tag Groups. Create groups to categorize related tags.
docs tag groups The Tag Groups used to show tags by group
docs tags A list of tags to include in docs
docs add solved filter Adds a filter for solved topics – requires Discourse Solved to be installed and enabled
docs add to top menu Adds a link to the top menu to navigate to the Docs view
docs add search menu tip Adds the tip “in:docs” to the search menu random tips

Helpful Pairings

Renaming the /docs path

If you have access to your server you can change the path of your /docs link by adding a DISCOURSE_DOCS_PATH: environment variable to your app.yml:

For the change to take effect you can either ./launcher rebuild app or, as it’s an environment variable, you can ./launcher destroy app && ./launcher start app to minimise downtime. There’s a little more info on that here - Set Environmental Variables

You may also want to change the site display text as well to match. You can search for all instances of ‘docs’ from your /admin/customize/site_texts page, but the main ones would be:

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

:discourse2: Hosted by us? Renaming the /docs path is only available on our Enterprise plan. Please contact us if you’d like to learn more.

Development History

The Docs plugin was a continuation from the Knowledge Explorer Theme Component.


:discourse2: Hosted by us? This plugin is available on all of our hosting plans. https://www.discourse.org/plugins/docs.html

Last edited by @hugh 2024-08-27T21:19:54Z

Last checked by @hugh 2024-08-27T04:23:36Z

Check documentPerform check on document:
94 Mi Piace
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
Discourse Docs + Pavilion Layouts Plugin
Filtering by multiple tags
Mirrored topic: same topic in two categories
Discourse Category Lockdown
Docs page in Discourse
[Paid] Parent/Child Tagging System + Docs Plugin Group Tagging
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?
Knowledge Base
Advice on a support forum
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...)
FAQs, less thread-y more article-y

Ciao community di Discourse,

Ho ricevuto il seguente errore durante l’esecuzione dello spec. Non ho modificato alcun file. Posso ignorare questo errore?

➜  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

Riesci a risolvere questo problema @Hyan?

3 post sono stati divisi in un nuovo argomento: Come posso ottenere un indice dei miei documenti?

Ehi Sam, non avrebbe senso dal punto di vista SEO che il rel=canonical degli argomenti puntasse all’argomento originale? Ad esempio, Dark/Light Mode Toggle - theme-component - Docs - Discourse MetaDark/Light Mode Toggle - theme-component - Discourse Meta? Mi chiedo se le due versioni della pagina non si cannibalizzino a vicenda negli algoritmi di Google.

1 Mi Piace

Sì, assolutamente dovremmo fare qualcosa lì

1 Mi Piace

Mi dispiace @JammyDodger, non ho avuto modo di eseguire lo Spec in questi giorni. Al momento non mi occupo del lavoro relativo a Discourse Docs, ma di altre cose. Ti farò sapere quando ne avrò l’occasione.

2 Mi Piace

C’è un modo per cambiare l’icona accanto a Documenti nel menu Hamburger dal collegamento/catena a qualcos’altro?

Questo plugin è ottimo per avere tutte le nostre categorie di documenti in un unico posto, eliminando la necessità che siano elencate anche nell’elenco delle Categorie (grazie a Discourse Category Hider). Tuttavia, abbiamo notato un problema:

All’interno del plugin/schermata Docs non è possibile modificare documenti esistenti o crearne di nuovi, il che significa che devi andare alla categoria originale per trovare l’argomento/documento da modificare… il che significa che devi avere il documento accessibile in più di un posto.

C’è un modo per abilitare la modifica di argomenti/documenti (se l’utente appartiene al gruppo Utente corretto) all’interno del plugin Docs?

[quote=“Martyn Thomas, post:351, topic:130172, username:martyn_thomas”]devi andare alla categoria originale, per trovare l’argomento/documento per modificarlo
[/quote]

funziona usare il link “visualizza la discussione su questo argomento” in fondo per navigare a quell’argomento e modificarlo?

1 Mi Piace

Ciao, ho un problema che è davvero fastidioso e non so perché stia succedendo.

Quando creo un documento, va nell’area documenti e funziona come dovrebbe, tuttavia, se il documento viene modificato in qualsiasi modo, l’area del layout del documento nell’elenco dei documenti torna al layout predefinito dell’argomento di discourse al clic e non mostra il layout effettivo del documento.

Ho notato che dopo qualche minuto torna al layout del documento dell’argomento e appare come dovrebbe, c’è qualcosa che potrebbe causare questo?

Nota: utilizzo anche il componente del tema “Miniature dell’argomento” e impostato sulla modalità miniatura dei documenti “elenco”.

Trovato il problema, apparentemente se uso Topic List Excerpts o il componente tematico Topic lists Thumbnails, l’href cliccabile è per la pagina del topic di discourse e non per docs?topic=xxx dei KB docs, quindi vengo reindirizzato ai topic di discourse.

C’è un modo per mantenere il percorso dell’URL sui docs per docs @sam o dovrei contattare @david?

Ciao,

I nostri utenti hanno recentemente notato un piccolo problema di stile: quando il browser ha una larghezza di visualizzazione ridotta, il contenuto di ogni post della documentazione fuoriesce, come nello screenshot seguente:

Mi chiedo se sarebbe meglio collassare automaticamente la barra laterale, se la visualizzazione è inferiore all’ideale; tuttavia, anche se collassassi la barra laterale, il contenuto continuerebbe a fuoriuscire.

Grazie per il fantastico componente aggiuntivo. Una domanda però: c’è un’opzione per rimuovere il link dal menu hamburger contestuale? L’ho aggiunto manualmente nella sezione sempre visibile (poiché vogliamo utilizzare questa funzionalità per mostrare contenuti creati dagli utenti di lunga durata come articoli, ecc.) e ora si ritrova visualizzato due volte:

Entrambe le opzioni con sfondo più chiaro portano a /docs

Penso che tu possa nasconderlo con un po’ di CSS qui:

.sidebar-section-link-wrapper[data-list-item-name="docs"] {
    display: none;
}
1 Mi Piace

Ha funzionato perfettamente! Grazie mille!

C’è la possibilità di avere un’opzione per integrare i commenti in una pagina di documentazione invece di collegarsi al post e poi poter commentare?

1 Mi Piace

Ho rivisitato lo stesso link su un dispositivo con la stessa larghezza della viewport. Mentre c’era ancora un overflow prima di collassare la barra laterale, ho scoperto che dopo averla collassata, non c’è più overflow e la visualizzazione è normale ed esteticamente gradevole.

Sono sorpreso che l’ordinamento predefinito della ricerca in Docs non sia “Pertinenza” ma “Data di attività”.

È possibile cercare per pertinenza?

2 Mi Piace

Oggi ho pubblicato alcuni argomenti nella categoria Documenti, ma quegli argomenti non vengono visualizzati nella pagina Documenti. Ho disattivato il plugin Documenti e riattivato il tema, ma quegli argomenti non vengono ancora visualizzati.
Grazie!