Pandoc-Integration

Continuing the discussion from Converting links from raw markdown to HTML:

I’m for Pandoc integration. I see there is this web app available with a REST API. Looking for a way to automate drafting out mediawiki documentation from Discourse.

Currently I’ll drag and drop markdown into Try pandoc!

3 „Gefällt mir“

Could you describe the workflow in more detail?

2 „Gefällt mir“

Yes, we have a longstanding mediawiki installation: Noisebridge
our Discourse forum: Discuss
And this hosted version of Pandoc we’ve encouraged users to use for quickly turning Markdown into the more esoteric mediawiki markup.

I’m hoping there is a way to turn this into a more automated workflow, as we want mediawiki pages from non-technical types who have enough trouble just registering an account.

Obviously we could do this within Discourse, but our mediawiki has been online since ~2007 and has a longstanding following, so no one wants to mess with it. But, it is a bit difficult / long in the tooth for drafting documentation in 2020. :slight_smile:

I’m not fully sure on next steps. But, this would be a big help to our pool of volunteers! So far I’ve discovered this restful api version of Pandoc, or the hosted demo linked above.

I’m still not clear where the data is coming from, but it’s going to your wiki?

What screens and controls might be involved? What discretion does the user have about where it is going?

2 „Gefällt mir“

Hmm, excellent questions. I’m not totally sure. Perhaps the process of drafting out mediawiki pages could be best served through the Custom Wizard plugin.

The issue is volunnteers are having too tough a time writing mediawiki pages in 2020. It is something people master 100% or are terrible at. Hope this makes sense as a problem I hope to address. If not, don’t want to waste your time. :slight_smile:

I’ve been very interested in integrating Discourse with our Mediawiki installation to add user friendliness, but I notice a couple attempts to use Discourse for Discussions in mediawiki, have not worked out.

If I were you I would mock up the screens, controls and process before pursuing further. Don’t worry about the solution for now.

1 „Gefällt mir“

If you don’t like the old software, How about migrating the wiki to discourse?

It doesn’t matter if I like it. The wiki has lived for 12 years and is beloved. Just needs some love. :heart_decoration:

2 „Gefällt mir“

So you want a way of publishing a Post from Discourse to your Wikimedia instance via a Pandoc translation of Markdown into HTML, is that right?

Sounds very interesting. But also sounds like something Zapier might solve?

PS I get why you might want to stay on the Wiki software. It’s a robust standard that’s designed for that use case.

1 „Gefällt mir“

Derzeit kopiere ich den MediaWiki-Text einfach in Pandoc und poste den konvertierten Markdown-Text dann manuell in einen Discourse-Beitrag. Es ist mühsam, funktioniert aber.

1 „Gefällt mir“

Erstellst du den Entwurf in Discourse und veröffentlichst ihn dann in Mediawiki?

Oder nimmst du Inhalte aus Mediawiki, um sie in Discourse zu veröffentlichen?

Eine Art Mediawiki-Sync-Plugin könnte ein guter Weg sein, um hier alle zufriedenzustellen. Ich habe in der Vergangenheit ähnliche Diskussionen über Wikis und Discourse geführt (nicht zuletzt im Leigh Hackspace, den ich 2015 gegründet habe und wo wir einst Mitch Altman, eines der Gründungsmitglieder von Noisebridge, als Gast hatten). Eine bidirektionale Synchronisation könnte funktionieren.

2 „Gefällt mir“

Ja, deshalb denke ich, dass es ideal wäre, Pandoc hinzuzufügen, um die Konvertierung zu vereinfachen. Wir werden jedoch durch Folgendes eingeschränkt:

Ja, alles wird noch manuell erledigt.

  • Die Mediawiki-Vorlage als Plain-Text wird in Etherpad gemeinsam bearbeitet.
    • Der fertige Text wird auf unser Mediawiki hochgeladen.
  • Der Text wird ebenfalls nach Pandoc kopiert.
  • Pandoc konvertiert in Markdown.
  • Markdown wird mit spezifischer Kategorie und Tags in Discourse eingefügt.

Ich hoffe, diesen Prozess zu straffen. :+1:

:heart:

Wenn das möglich wäre, wäre das großartig. Sowohl Mediawiki als auch Discourse sind nützliche Tools. Es ist toll, wichtige Informationen im Wiki zu haben, zusätzlich zu Diskussionen im Forum. Offensichtlich ist es ideal, URL-Links einzufügen, damit Nutzer leicht zwischen beiden Tools wechseln können.

Ich weiß, dass die Wikimedia Foundation bereits Versuche unternommen hat, beide Tools zu integrieren. Details dazu findet ihr im Forum. Ich hatte auch gehofft, einen Login zu unserem Discourse über Mediawiki SSO zu ermöglichen, aber dieses Plugin bricht die Kontoerstellung in unserem Forum.

Warum nicht einfach die Inhalte auf MediaWiki lassen und die Diskussion in Discourse führen, indem man Discourse-Kommentare per JavaScript einbettet?

1 „Gefällt mir“