تكامل 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 إعجابات

Could you describe the workflow in more detail?

إعجابَين (2)

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)

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)

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)

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)

حاليًا، أنا فقط أنسخ نص ميدياويكي إلى Pandoc، ثم أنشر Markdown المحوّل في منشور Discourse يدويًا. الأمر ممل، لكنه يعمل.

إعجاب واحد (1)

hal taʿmal ʿalā al-maswaḍa fī Discourse thumma tanṣur ilā Mediawiki?

aw taʾkhudh al-muḥtawā min Mediawiki li-nashrih fī Discourse?

ruʾbā maʿamūl al-tanāṣub thumāniya bayna Mediawiki wa-Discourse yuʿtabar ṭarīqan jamīlan li-raḍā jamīʿ al-hunā. qad kānat ʿindī muḥāḍarāt mithl hādhihi bayna al-wikī wa-Discourse fī al-māḍī (laysa aḥsan min al-ḥadith fī Leigh Hackspace, alladhī taʾasastuhu fī 2015, wa-ḥaythu qad dāʿnā Mitch Altman, waḥid min fariq taʾsis Noisebridge) wa-ruʾbā al-tanāṣub al-thumāniya yuqdir ʿalā al-ʿamal.

إعجابَين (2)

نعم، وهذا هو السبب في أنني أعتقد أنه سيكون من المثالي إضافة Pandoc لتبسيط عملية التحويل. نحن مقيدون بما يلي:

  • إضافة Discourse Event لا تستطيع بعد جدولة الأحداث المتكررة (مثل الاجتماعات الأسبوعية).

نعم، نقوم بكل شيء يدويًا.

  • قالب تنسيق Mediawiki كنص عادي يتم التعاون عليه عبر etherpad.
    • يُنشر النص المكتمل على mediawiki الخاص بنا.
  • يُنسخ النص أيضًا إلى Pandoc.
  • يقوم Pandoc بتحويله إلى Markdown.
  • يُلصق Markdown في Discourse مع الفئة والوسوم المحددة.

نأمل في تبسيط هذه العملية. :+1:

:heart:

إذا كان ذلك ممكنًا، فسيكون ذلك رائعًا. كل من Mediawiki وDiscourse أدوات مفيدة. من الرائع وجود معلومات مهمة في الويكي، بالإضافة إلى المناقشات في المنتدى. من الواضح أنه من المثالي تضمين روابط URL لتسهيل التنقل بين الأداتين.

أعلم أن هناك محاولات من مؤسسة ويكيميديا لدمج هاتين الأداتين معًا. يمكنك العثور على التفاصيل في المنتدى. كنت أيضًا آمل في السماح بـ تسجيل الدخول إلى Discourse من Mediawiki عبر SSO، لكن هذه الإضافة تعطل إنشاء الحسابات في منتدانا.

لماذا لا نترك المحتوى على ميدياويكي ونناقش في ديسكورد عبر تضمين تعليقات ديسكورد باستخدام جافا سكريبت؟

إعجاب واحد (1)