I've merged the changes from [#4186] to dev, plus some additional changes to how 'mediawiki' is imported, so that it can be an optional dependency.
- there are several formatting issues with the test project (fancypants):
- the Hailo page has
 _place_holder;
on the last line
- Using_Gribble_on_Sourceforge and Capabilities pages have macro errors when handling some links that didn't get converted right. Capabilities uses a
#target
too
- Check the other pages too. You can compare output to https://sourceforge.net/apps/mediawiki/fancypants/
- Where does the table of contents come from? It ends up with bullets and numbers on each line. It would be better to use the markdown
[[TOC]]
macro anyway.
- set timestamps for pages (each revision) and comments
- set usernames for pages (each revision) and comments. If username doesn't match, continue to use anonymous
- An import generates a ton of emails, which we don't really want to send out. Set project.notifications_disabled=True. If that flag change gets flushed to the database, ensure it is set back to False at the end of the script, and under any error conditions. We can't have projects end up with notifications_disabled after the script quits
- can permissions be converted? not sure if that is stored in the mediawiki db or not
created #145: [#4660] Mediawiki import improvements (3cp)
Related
Tickets:
#4660I've got an error when trying to load mediawiki dump:
Seems like it is related to some recent changes, but i'm not sure what
g.director
should be and how to set it during command execution.g
comes from app_globals.py, so you can see it's using our newactivitystream
package. We'll work on a fix for this shortly.Mediawiki db only stores mapping
user -> group
. Rights specified only in LocalSettings.php (proof) so we can't import that.Installed html2text like so:
and that fixes the isssue.
Please do.
This is fixed on dev now
Thanks for confirming. I've updated them on dev.
closed #145, branch - 42cc_4660
Created #148: [#4660] Convert user names to lowercase (1cp)
I'll check this
Related
Tickets:
#4660Closed #148. Branch - 42cc_4660.
Regarding the table of contents - when converting html to markdown all html attributes are lost (id, name, etc.), thus links with #target do not make any sense and html2markdown replaces them with a simple text. We'll think how to convert them properly. I'll create a new ticket for this soon.
created #154: [#4660] Convert table of contents (2cp)
Related
Tickets:
#4660Since markdown has a table of contents macro, isn't it "just" a matter of removing the original table of contents (which I don't even see in the mediawiki source, maybe the parser adds it) and adding
[TOC]
to the markdown?Closed #154
Originally by: gerddie
That looks really nice, but how can I use this to move my sourceforge MediaWiki data base to the Allura Wiki?
many thanks,
GW
Originally by: jayjaybillings
I'm with Gert.
We have a pretty decent-size project wiki going, but I'd like to take advantage of Allura. How can we access this conversion capability?
Thanks,
Jay