MediawikiMigration

TODO:

Installation:

Migration:

Usability

Archive

Rationale

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

The solution that has been choosen for that is the following:

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:

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:

Redmine wiki

Issues:

Mediawiki

Advantages: Issues:

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.

Formats

The Replicant Project's Redmine wiki uses Textile markup language, while MediaWiki uses the Wikitext markup language.

It looks like some Redmine developers have recently been working to make it easier to transition from Textile to both generic Markdown and a more standardized flavor of Markdown called CommonMark: 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 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

Interfacing with Wikidata

Wikidata has documetation that claims that1:

The access to Wikidata data is currently restricted to the Wikimedia projects, because of technical limitations. If you have your own instance of MediaWiki, you can't use Wikidata's data using these features. However, you can set up your own Wikibase instance and use data from there in the same way.

So here are some of the options we have:

We also don't know the size of the database dumps as they are compressed2:

latest-all.json.bz2 28-Dec-2022 16:28 79404778391
latest-all.json.gz 04-Jan-2023 11:23 120635974570

Though Replicant source code is already big (more than 400GiB) so depending on how much space it takes it might not be a big issue.

Though we might need to have the FSF to host it in order to enable other FSDG distributions to access it.

Here's a list of what other distro use:

Wiki or distro Status License
Dragora No wiki found
Dynebolics No wiki found
Guix Has unofficial space on Libreplanet GFDL 1.3+ with copyright assignment [6]
Hyperbola Dokuwiki10 CC-BY-SA 4.011
LibreCMC Fossil wiki12 CC-BY-SA 4.013
Libreplanet5 Mediawiki with statemets disabled. GFDL 1.3+ with copyright assignment [6]
Parabola Mediawiki with statemets disabled8. CC-BY-SA 4.09
ProteanOS Ikiwiki
PureOS No Wiki? Has traces of an old wiki.
Replicant Migration planned to Mediawiki. CC-BY-SA 3.07
Trisquel No Wiki?
Ututo No wiki found

1 https://www.wikidata.org/wiki/Wikidata:How_to_use_data_on_Wikimedia_projects#Can_I_access_Wikidata_data_from_my_wiki? Note that the '?' is part of the URL and that redmine has a bug with URLs ending with a '?'.

2 https://dumps.wikimedia.org/wikidatawiki/entities/

3 https://libreplanet.org/wiki/Special:Version

4 https://wiki.parabola.nu/Special:Version

5 https://libreplanet.org/wiki/Main_Page

6 Content is available under GNU Free Documentation License 1.3. By contributing to any page on this wiki, you agree to assign copyright for your contribution to the Free Software Foundation (see LibrePlanet:Copyrights for details). The Free Software Foundation promises to always use either a verbatim copying license or a free documentation license when publishing your contribution. We grant you back all your rights under copyright, including the rights to copy, modify, and redistribute your contributions. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!

7 https://creativecommons.org/licenses/by-sa/3.0/

8 https://wiki.parabola.nu/Main_Page

9 https://creativecommons.org/licenses/by-sa/4.0/

10 https://wiki.hyperbola.info/doku.php?id=en:start

11 http://creativecommons.org/licenses/by-sa/4.0/

12 https://librecmc.org/fossil/librecmc/wiki?name=home

13 https://creativecommons.org/licenses/by-sa/4.0/

References:

https://git.replicant.us/contrib/irelativism/wiki-migration-scripts/

Annexes

https://docs.bitnami.com/installer/how-to/configure-advanced-integration-git-redmine/
https://docs.bitnami.com/installer/apps/redmine/configuration/use-git/
https://www.redmine.org/projects/redmine/wiki/HowTo_configure_Redmine_for_advanced_git_integration
inspiration https://gist.github.com/tim-jansen/6263586
for usage parameters and variables use https://github.com/likema/redmine-exporter has reference
look into this for inspiration https://github.com/vile/redmine2confluence-wiki
inspiration http://stbuehler.de/blog/article/2011/06/04/exporting_redmine_wiki_pages.html