Integrazione Pandoc

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 Mi Piace

Could you describe the workflow in more detail?

2 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

Al momento sto semplicemente copiando il testo di MediaWiki in Pandoc, quindi incollando manualmente il Markdown convertito in un post di Discourse. È laborioso, ma funziona.

1 Mi Piace

Stai scrivendo su Discourse e pubblicando su MediaWiki?

Oppure stai prendendo contenuti da MediaWiki per pubblicarli su Discourse?

Una sorta di plugin di sincronizzazione per MediaWiki potrebbe essere un modo piacevole per accontentare tutti qui. Ho avuto discussioni simili su wiki/Discourse in passato (non ultimo al Leigh Hackspace, che ho fondato nel 2015 e dove una volta abbiamo ospitato Mitch Altman, uno dei membri fondatori di Noisebridge) e una sincronizzazione bidirezionale potrebbe funzionare.

2 Mi Piace

Sì, ed è per questo che penso che sarebbe ideale integrare Pandoc per semplificare la conversione. Siamo limitati da:

Sì, stiamo facendo tutto a mano.

  • Il modello di formato MediaWiki come testo semplice viene collaborato su Etherpad.
    • Il testo completato viene pubblicato sul nostro MediaWiki
  • Il testo viene anche copiato su Pandoc
  • Pandoc converte in Markdown
  • Markdown viene incollato su Discourse con categoria e tag specifici.

Speriamo di semplificare questo processo. :+1:

:heart:

Se possibile, sarebbe fantastico. Sia MediaWiki che Discourse sono strumenti utili. È ottimo avere informazioni importanti nella wiki, oltre alle discussioni nel forum. Ovviamente, è ideale inserire link URL in modo che le persone possano passare facilmente tra i due strumenti.

So che ci sono stati tentativi da parte della fondazione Wikimedia di integrare questi due strumenti insieme. Puoi trovare i dettagli sul forum. Speravo anche di permettere l’accesso a Discourse tramite SSO di MediaWiki, ma quel plugin interrompe la creazione di account sul nostro forum.

Perché non lasciare semplicemente i contenuti su MediaWiki e discutere su Discourse con l’inserimento dei commenti di Discourse tramite JavaScript?

1 Mi Piace