Project

General

Profile

MediawikiMigration » History » Revision 13

Revision 12 (Kurtis Hanna, 07/19/2020 05:31 AM) → Revision 13/14 (Kurtis Hanna, 07/19/2020 06:27 AM)

h1. MediawikiMigration 

 h2. Rationale 

 The documentation on the Redmine wiki has lot of duplication of information.  

 The solution that has been choosen for that is the following: 
 * Migrate part of the information in Wikidata. 
 * Use template and/or generate information from Wikidata. 

 Other solutions were also possible such as migrating to documentation system like pandoc, but doing that would increase a lot the required skills of potential contributors.  

 Using complicated documentation systems has several issues: 
 * Practically speaking, it makes it impossible for many people that don't know how to program, to participate in Replicant, fix issues etc. This would be very problematic for diversity and inclusiveness of people as it would unnecessarily discriminate against people without such skills. We could also potentially loose important contributions. 
 * While it would make the job of contributors way easier than without any templating or ways to programmatically generate documentation, it also increase the dependency on people who knows how to use that documentation system. 

 Instead it would be better to use a documentation system that enable people without programming skills to easily contribute, while at the same time enabling people with programming skills to take advantage of it as well. Templates in various wikis system like Redmine or Mediawiki enables that. 

 In additions to wiki systems with templates, enabling to interface the documentation system with Wikidata also has many advantages: 
 * It enables to reuse the information across different projects with similar goals (libreplanet wiki, Parabola wiki), different goals (for instance we could share the work of documenting hardware with the wikipedia and wikidata community), or through custom made tools. 
 * It can isolate the tasks requiring some programming to the strict minimum: Using programming in documentation systems can makes it easy to generate huge quantity of information, and Wikidata makes it possible to contribute to the information itself without knowing how to program. The programming is then potentially only required to fetch and show / format the information that comes from Wikidata. 

 h3. Redmine wiki 

 Issues: 
 * The table syntax of Redmine textile format is too complicated for several key contributors like dllud. 
 * It's probably hard to interface with Wikidata 
 * Javascript is required for the preview to work. GNUtoo has huge issues with that as it leads him to many bad editions that are fixed in subsequent editions that are fixed in subsequent editions... 
 * The syntax is less well known and the documentation is available on Redmine website but harder to find. 
 * No one seem to know the syntax for the templating system nor its limits yet. 

 h3. Mediawiki  

 Advantages: 
 * Can be interfaced with Wikidata in various ways that are used in production on Wikipedia. 
 * The syntax is easy enough to use by people that don't know how to program, many people are used to it, and at the same time it's well documented. 
 * The table format is much easier to use, and it's usable by dllud. 
 * The main functionality, including the preview work completely without JavaScript, which leads to an increase of edits quality    by people that don't run JavaScript from remote websites. 
 * Other projects like Libreplanet, and Parabola uses mediawiki, so we can probably reuse things across different wikis. 
 * Can be used offline thanks to projects like Kiwix 
 * Can be more easily backuped by external projects like the archive team 
 * We can probably reuse many templates from other wikis with compatible licensing, and some Replicant contributors like GNUtoo already know a bit the template language. 
 * There are probably many more tools compatible with mediawiki than the Redmine wiki. 

 Issues: 
 * We need to migrate, if possible in a way that preserves history 
 * We loose the integration with redmine #<bug number> will have to 

 h2. Decision 

 At several conferences, including the Replicant conference in Paris in Summer 2019, and the FOSDEM, people were in favor of migrating to Mediawiki and didn't have objections to it. 

 h2. Migration 

 The Replicant Project's "Redmine":https://redmine.org "wiki":https://redmine.replicant.us/projects/replicant-infrastructure/wiki Redmine's wiki uses "Textile":/help/en/wiki_syntax_detailed_textile.html markup language, Textile markup, while MediaWiki uses the "Wikitext":https://www.mediawiki.org/wiki/Wikitext Markdown markup language.  

 It looks like some Redmine developers have redmine has recently been working to make it easier to transition from Textile textile to both generic Markdown and a more standardized flavor of Markdown called "CommonMark":https://en.wikipedia.org/wiki/CommonMark: markdown: https://www.redmine.org/issues/32424 https://www.redmine.org/plugins/redmine_reformat https://github.com/orchitech/redmine_reformat https://hub.docker.com/r/orchitech/redmine-gfm 

 There is currently an RFC at MediaWiki about supporting CommonMark in MediaWiki natively: https://www.mediawiki.org/wiki/Requests_for_comment/Markdown  

 The "comments section":https://www.mediawiki.org/wiki/Talk:Requests_for_comment/Markdown of MediaWiki's RFC page on this topic may be helpful to read for context on this proposal. 

 If we can find a reliable fork of MediaWiki that uses CommonMark instead of Wikitext, we should at least consider using it for the reasons outlined in the MediaWiki RFC links above and because of the fact that we now seem to have reliable software available to us to transition from Textile to CommonMark. 

 If we ultimately decide to use vanilla MediaWiki with Wikitext, or if we don't find any forks of Mediawiki that use CommonMark instead of Textile, it is our assumption that it would be easier to transition from the more common Markdown or CommonMark markup languages to MediaWiki's Wikitext markup language than it would be to transition from Textile directly to Wikitext. This assumption has been made based, in part, on arguments made here: https://hub.docker.com/r/orchitech/redmine-gfm 

 TODO: 
 * Find other links to projects, such as vanilla "Pandoc":https://pandoc.org/ instead of "Redmine Reformat":https://github.com/orchitech/redmine_reformat's use of Pandoc as is outlined above, projects that can help migrate the wiki content and compare them. them: 
 * See ** Look if it's possible to keep the history to make sure that smaller contributors don't get forgotten forgetten 
 * ** Contact the Archive team to backup the redmine's redmins wiki 
 * ** Make sure it gets archived completely on archive.org/web 
 * ** Make sure it gets archived in files that can be restored (but without non public information like password hashes, etc) 
 ** "CommonMark":https://en.wikipedia.org/wiki/CommonMark has emerged as one particularly credible effort to standardize Markdown. Figure out if we can use MediaWiki with CommonMark instead of the "wikitext":https://www.mediawiki.org/wiki/Wikitext. There is an RFC here about this topic: https://www.mediawiki.org/wiki/Requests_for_comment/Markdown The "comment section":https://www.mediawiki.org/wiki/Talk:Requests_for_comment/Markdown for this page may be helpful as well.