Convert Sandcastle Help File Builder Output (Web site) to MediaWiki format

北慕城南 提交于 2019-12-23 09:01:50

问题


I need to

  1. convert my Sandcastle Help File Builder (SHFB) output that is a Web site (HTML) to Media wiki format
  2. Find a way to transfer/include the converted pages directly into the MediaWiki we have set up.

Any ideas? we have over 1000 pages of HTML files inthe Website (output of SHFB).

I thought of using a html2wiki converter ..I could think of looking around for a script to convert those 1000 pages into wiki format... that could take care of (1).

But I would still be left with the block in the last bit of the pipeline - how to feed converted pages directly into the Wiki?


回答1:


Take a look at Help Server. It allows to publish .CHM / .HxS produced by any tool (including Sandcastle) on the web and provides URL-based integration API.

We use MediaWiki as well. A set of templates for it allows us to create links to class reference shared by Help Server. Some examples of such links can be found right on that page.

Note that DataObjects.Net Help web site is running on Help Server 2.X, but the newest one is 3.X (example web site is here).




回答2:


I did some work with ingesting existing material from several sites into a comprehensive Wiki. It did not involve Sandcastle, but if you're dealing with HTML it shouldn't matter much. html2wiki extensions are out there, and from what I have read they can solve a lot of problems. I needed a little more control over each node in the DOM, so i used Simple HTML DOM Parser. It's in PHP and was easily dropped into Mediawiki's includes.

For creating the new pages, I ended up writing a small script that uses Mediawiki's Article class, specifically the doEdit function. this allows you to create new articles programatically, without user interaction. Of course, you'd want to be careful with this... The last thing you need is to create 1000 pages that are no good and have to be deleted. But perhaps this will help get you going.



来源:https://stackoverflow.com/questions/276334/convert-sandcastle-help-file-builder-output-web-site-to-mediawiki-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!