rubyworks / smeagol

Read-Only Gollum Server
http://rubyworks.github.com/smeagol
Other
92 stars 5 forks source link

import db-based/flat file wikis #27

Closed dehubbed closed 13 years ago

dehubbed commented 13 years ago

can smeagol be made to import wikis from other wiki engines, the old-fashioned kind that uses an sql database or flat files as a backend. this would immediately make a lot of old pre-existing content available for git-based hosting.

additionally, it would be good if the history could also be imported and if the was a link between the old db-based wiki and the new git-based one so that ongoing changes can be synced at least one way if not two way.

note how git-svn provides a two-way link between a git and a subversion repo, making a whole lot of subversion-hosted data available to be managed with git. the same should be possible with wikis.

benbjohnson commented 13 years ago

I think that's a great idea. Do you have any particular wiki engines you're interested in converting from? MediaWiki seems like a good candidate.

I do think the import falls outside of the scope of this project. Smeagol is meant to simply host Gollum wikis. A new project should be started to convert over other wikis to the Gollum format.

It honestly shouldn't be too difficult. You would just need to pull HTML content from the database, convert to Markdown, write it to files and perform a git commit for every change.

dehubbed commented 13 years ago

Uh this came to my mind because of a PMWiki (flat-file storage) that I have on hand right now but don't let that influence your priorities. MediaWiki is probably very popular.