Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Wiki export"

(Created page with "In light of "[https://bugs.eclipse.org/bugs/show_bug.cgi?id=577153 Bug 577153 - Shutdown the Foundations wiki instance]", here is a list of possible approaches to extract cont...")
 
(No difference)

Latest revision as of 11:56, 17 November 2021

In light of "Bug 577153 - Shutdown the Foundations wiki instance", here is a list of possible approaches to extract content from wiki.eclipse.org and store it in a different format and/or somewhere else.

Export wiki pages to Markdown format

Mikael tested the following (quoted from Bug 577153 comment 9:

docker run -it --rm --entrypoint -v /tmp/wikiexport:/wikiexport /bin/bash php:7
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
apt-get update && apt-get install -y git vim pandoc
git clone https://github.com/outofcontrol/mediawiki-to-gfm.git
cd mediawiki-to-gfm
composer update --no-dev
./convert.php --filename=/wikiexport/Eclipsepedia-<timestamp>.xml --output=/wikiexport/markdown/


One nice thing is that you can export multiple pages at once, and they will all be converted at once.

You can see the raw results in of the conversion of https://wiki.eclipse.org/Jenkins to https://github.com/eclipse-cbi/jiro/blob/userdoc/USER_DOC.md

Caveats

  • images need to be extracted separately
  • creates ''' instead of ** for bold text
  • does not replace brackets <> in code-sections with &lt; and &gt;
  • skips "note/important/etc" boxes

Export wiki pages to GitHub wiki pages directly (using MediaWiki format)

  1. Go to wiki page that should be exported and click on "Edit"
  2. Copy Wikitext
  3. Go to target GitHub wiki page and paste Wikitext
  4. Set "Edit mode" to "MediaWiki"

Caveats

Back to the top