update default config to use the mediawiki module and extend the database setup example

parent 636b8895
......@@ -12,6 +12,8 @@ dico (2.7-1) UNRELEASED; urgency=medium
* Added myself to uploaders.
* Add multi-arch info for 'dico-doc'.
* Update standards version to 4.2.1.
* Update default config to use the mediawiki module and extend the
database setup example.
-- Marc Dequènes (Duck) <Duck@DuckCorp.org> Fri, 09 Nov 2018 23:06:40 +0900
......
dico-module-mediawiki for Debian
--------------------------------
* To use the mediawiki module, make sure that the python module is loaded in
/etc/dicod.conf, and add the following lines in /etc/dicod.conf:
* To use the mediawiki module, make sure that the python module is loaded in
/etc/dicod.conf (with the proper load-path), and add the following lines
in /etc/dicod.conf:
database {
name "<dbname>";
......@@ -21,6 +22,21 @@ EOT;
Here's an example:
database {
name "en-wikipedia";
handler "python init-script=mediawiki en.wikipedia.org";
mime-headers <<- EOT
Content-Type: text/x-wiki
Content-Transfer-Encoding: quoted-printable
X-Wiki-Language: en
EOT;
description "en.wikipedia.org";
info <<- EOT
English language Wikipedia, a collaborative project to produce a
free-content multilingual encyclopedia.
EOT;
}
database {
name "en-wiktionary";
handler "python load-path=/usr/share/dico init-script=mediawiki en.wiktionary.org";
......
......@@ -30,7 +30,7 @@ load-module dictorg {
// Uncomment the following to enable Guile interface:
/* load-module python {
command "python";
command "python load-path=/usr/share/dico/python";
}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment