|
Candidate for Moving |
Created: 2005-10-06 by JaneWeideman
Priority: NeedsPriority
People: NeedsLead, NeedsSecond
Contributors: JaneWeideman
- Interested:
Status: BrainDump
Branch: UbuntuTrack
- Malone bug:
- Packages affected:
- Depends:
- Dependents:
- BoF sessions: none yet
Summary
For the German LoCoTeam i've written a MoinMoin exporter script.
You can try out the exporter function by via rsync:
rsync -rv rsync://ubuntuusers.de/ubuntu-de-wiki destination_directory
The online wiki version (for comparison) is located at wiki.ubuntuusers.de.
\sh contacted me with the whish to extend this script for all locoteam MoinMoin installations out there.
Implementation Problems
Currently the exporter script requires some special macros only available on the German and Italian MoinMoin installation. This macro implements a simple thumbnailer and caching tool. It uses the common attachment system but the current exporter only converts attachments included by this tag.
The next problem on the list is a better searchindex. The current version implements a local searchengine using AJAX and a searchindex. But the indexer don't know stopwords and only scans german text with umlauts.
The german locoteam also disabled CamelCase Links and has created all System-Pages from scratch. So RecentChanges has moved To Wiki/Letzte_Ă„nderungen and so on.
Some pages like RecentChanges are senseless in a local version. This should get replaced by static html pages, fetching the RSS Recent Changes Feed over AJAX. Pages like FindPage should get replaced by a static html JavaScript Seach page...
Pages where the default user (user All) has no access the parser quits this with "You don't have access to this page". I'm working on parsing the ACL rules for finding out if the parser has to convert this page.
Current Implementation
Parser
- fetches pagelist
- scans for attachments
- parsed pages
- sourround parsed pages with a template
- converts links to local pages
- copies linked attachments into a attachment folder
- adjust attachment links and references
- adjust links to template content
Overwrite Script
scans the raw_content directory and copies all files over the parsed files. This ensures that Pages Like "FindPage" get replace by static html file containing the search functions
- copy template related images and so on into a local img folder
Distributing
A good way would be a small GTK/Qt Application which helps the user to fetch the documentation and keeps it up to date. The german team does this with rsync and a documenation debian repository.
If this project gets approved it would be cool to distribute the Wiki Snapshots over a official Server. All the LoCoTeams have to do is to convert there pages with the exporter script and sync them with the official server via rsync.
Contact
For question and answers contact me via email or on freenode.
Rationale
Use cases
Scope
Design
Implementation
Code
Data preservation and migration
Outstanding issues