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

現在は、MediaWiki のテキストを Pandoc に貼り付け、変換された Markdown を手動で Discourse の投稿にコピーしています。面倒ですが、機能しています。

「いいね!」 1

Discourse で執筆して MediaWiki に公開しているのですか?

それとも、MediaWiki のコンテンツを Discourse で公開するために取り込んでいるのでしょうか?

ここで皆を喜ばせるには、何らかの MediaWiki 同期プラグインが良いかもしれません。以前にも同様の wiki と Discourse に関する議論をしたことがあります(特に 2015 年に私が設立した Leigh Hackspace で、Noisebridge の創設チームの一人である Mitch Altman を一度招待した際などです)。双方向同期が機能するかもしれません。

「いいね!」 2

はい。そのため、変換を簡素化するために Pandoc を追加するのが理想的だと考えています。現在、以下の点で制約を受けています:

はい、すべて手作業で行っています。

  • プレーンテキスト形式の MediaWiki テンプレート は etherpad で共同編集されます。
    • 完成したテキストを MediaWiki に投稿
  • テキストを Pandoc にもコピー
  • Pandoc が Markdown へ変換
  • 変換された Markdown を特定のカテゴリとタグを付けて Discourse に貼り付け

このプロセスを効率化したいと考えています。:+1:

:heart:

可能であれば、それは素晴らしいことです。MediaWiki も Discourse も有用なツールです。重要な情報をウィキに保存しつつ、フォーラムで議論ができるのは大変良いことです。もちろん、両方のツール間を簡単に移動できるよう URL リンクをそのまま残せるのが理想です。

ウィキメディア財団が両方のツールを統合しようとする試みがあったことは知っています。詳細はフォーラムでご確認ください。また、MediaWiki の SSO を通じて Discourse へのログインを可能にできればと期待していましたが、そのプラグインが当フォーラムでのアカウント作成を壊してしまいます

なぜ単にMediaWikiにそのまま残して、DiscourseのコメントをJavaScriptで埋め込むを使ってDiscourseで議論しないのでしょうか?

「いいね!」 1