Is anyone working on a Discourse Wiki?

Buy an enterprise hosting contract is the main way to move forward. None of our customers are asking for this. Not opposed to it but we have other priorities based on our paying customers at the moment.

4 « J'aime »

This one has been spec’d out and currently has a “bounty”:

3 « J'aime »

If you want to split the requests, that probably could be done through another feature:

Topic templates commands. So we could issue a command to turn it into wiki. Not sure if this have been considered yet, or why not. If it haven’t, I’m probably posting this in the wrong place… :stuck_out_tongue:

1 « J'aime »

Just to throw in my 2 cents. I love Discourse, and a Wiki option would be AWESOME! I too feel like most wiki software is stuck in 2005 or earlier.

1 « J'aime »

To be clear “Wiki” functionality exists:

Perhaps it’s not an exact replacement for Wikipedia’s MediaWiki - but the base functionality to a large degree exists and works.

6 « J'aime »

It’s a solid foundation that could be much improved with a little bit of work:

In a “wiki category” :

  • All new topics are wikified by default
  • Author attribution is suppressed
  • Always go to first post when viewing a topic
    (option to hide replies on separate page)

And made into a “proper” wiki with some more detailed and involved work:

  • Table of contents generation with [contents] object and headers
  • Create links to other topics by “tagging” them ie. &PageTitle
  • Create new topics by tagging a non-existant page eg. &NewTopic
9 « J'aime »

I happened to be looking at this today in another context. While it’s a little convoluted, it is actually possible to pass non-default parameters (such as wiki) to new posts. It took me a little while to figure this out, so someone else may find it useful. There are four things you need to do:

  1. Set wiki to true when creating the post record in the store.
  2. Add wiki to the serialized composer properties via Composer.serializeOnCreate.
  3. Use PostRevisor.track_topic_field(:wiki) to add wiki as a permitted param in the posts_controller.
  4. Save the wiki opt to the Post using the post_created event.
6 « J'aime »

I’ve been trying to decide which official Wiki to create a plugin with MediaWiki Classic of the new FederatedWiki.

Thank you so much for posting your experience.

Wiki pages on a forum are a great idea, kudos to Discourse. The revisions system works well. The editor is great.

But there’s a massive gap in functionality from my PoV.

If two people edit concurrently, one person’s work is lost

We’ve not had much use of the wiki feature on my forum (1000 visits/day) but we’ve already seen multiple edit clashes.

Suggested solutions in order of preference (preferred first):

  1. Live collaboration (show where the editors’ cursors are, as per google docs).
  2. Lock a post to other editors when it’s being edited
  3. Allow conflicts to be merged by the last editor.
3 « J'aime »

I haven’t tested this locally, but are both revisions available in the edit history modal?

(BTW you posted an incomplete URL to the example of the problem)

2 « J'aime »

I believe both revisions are there in the history, yes. The link is just to the forum. The conflicts were in our private staff area. The issue is easily reproducible.

Yes, both are visible – but the second person to make the edit usually won’t notice that they reverted the previous person’s changes. :frowning:

2 « J'aime »

I’ve not tried this myself, but I think the Pages theme for Grav (a flat file CMS) could serve as a wiki. Additionally, Grav has support for Discourse comments via the JS Comments plugin.

The official Grav docs use the same theme.

1 « J'aime »

Cette discussion date de plusieurs années, mais je suis tombé dessus après avoir réalisé qu’organiser mon forum sous forme de wiki serait vraiment génial. @peternlewis a bien résumé ce que j’aurais également en tête. Il ne s’agit pas seulement d’autoriser la fonctionnalité wiki dans des publications individuelles, mais de faire en sorte que mon site Discourse se comporte comme un wiki de type Wikipédia. Comme il l’a dit :

Est-ce possible avec Discourse ?

1 « J'aime »

Serait-ce cela ? https://meta.discourse.org/knowledge-explorer

4 « J'aime »

Vous pouvez installer DiscoTOC - automatic table of contents sur n’importe quel plan.

Vous pouvez intégrer du code exécutable en utilisant Codepen ou https://repl.it/.

3 « J'aime »

Merci.

Pour être plus précis, je pense que nous sommes sur l’un des plans open source, probablement celui-ci en particulier : Free Hosting for Open Source v2

En tant qu’administrateur, j’ai vérifié si je pouvais installer DiscoTOC, mais il n’apparaissait pas dans la liste des plugins disponibles. :slightly_frowning_face:


Merci, mais malheureusement, nous sommes des programmeurs Prolog, plus précisément SWI-Prolog (forum Discourse). Bien qu’il soit possible de faire un peu de Prolog avec CodePen, cela est loin de ce qui peut être réalisé avec Prolog. De plus, comme ce n’était pas spécifiquement SWI-Prolog, cela n’a pas été utilisé. SWI-Prolog dispose bien d’un outil en ligne appelé SWISH, mais celui-ci est limité pour des raisons de sécurité et ne permet pas tout ce qui peut être fait avec Prolog. Si vous connaissez l’étendue des possibilités offertes par LISP en raison de son caractère homoiconique, vous comprendrez l’idée. J’ai essayé d’intégrer SWISH via une Iframe et d’autres méthodes, mais aucune n’a fonctionné comme souhaité. J’ai réussi à faire fonctionner quelque chose, mais ce n’était pas pratique, en raison de la largeur de l’écran, si ma mémoire est bonne.

Encore une fois, merci pour vos retours, ils ont été très appréciés.

Il s’agit d’un composant de thème.

2 « J'aime »

De quoi parliez-vous là ?

DiscoTOC est un composant de thème, pas un plugin. Il s’installe en suivant Comment installer un thème ou un composant de thème ? et il est définitivement disponible pour vous, essayez-le.

Ah, je vois.

Je pense que votre meilleure option serait de tenter de faire fonctionner une instance repl.it pour Prolog, même si elle est alimentée par SWI-Prolog compilé en WASM. Essayez de contacter le fondateur de repl.it @Amjad_Masad.

5 « J'aime »