ubiquity firefox addon
This is an interesting firefox-plugin, it provides a commandline. With a command like 'flux kvm' i can search this dokuwiki for the term 'kvm'.
- https://mozillalabs.com/ubiquity/writing-commands/ – get the plugin here
- ubiquity by default already does pretty much. This command-definition can be used to search in dokuwikis:
/* This is a simple ubiquity command to make a search in a dokuwiki */
CmdUtils.CreateCommand({
names: ["flux"],
icon: "http://fluxcoil.net/favicon.ico",
description: "Use search-function of a dokuwiki-installation from Ubiquity.",
help: "<flux> <searchterm>",
author: {name: "Christian Horn", email: "chorn@fluxcoil.net"},
license: "GPL",
homepage: "http://fluxcoil.net/",
arguments: [{role: 'object', nountype: noun_arb_text}],
preview: function preview(pblock, args) {
pblock.innerHTML = "Search for term <b>" + args.object.html + "</b>.";
},
execute: function execute(args) {
Utils.openUrlInBrowser("http://fluxcoil.net/doku.php/?do=search&id=" + args.object.text);
}
});
my dokuwiki notes
i use this software/plugins
- dokuwiki http://www.dokuwiki.org/dokuwiki
- the battlehorse theme
- sidebar plugin http://www.dokuwiki.org/template:sidebar
- indexmenu plugin http://www.dokuwiki.org/plugin:indexmenu
configuration notes
- by default new wikipages are just allowed to be indexed after 5 days, make it shorter:
# in conf/local.php: $conf['indexdelay'] = 60*60; //allow indexing after 1h
- creation of a sitemap here did just work when disabling the compression-setting:
# in conf/local.php:
$conf['sitemap'] = 1;
// setting off to make sitemap-generation work
$conf['compression'] = '0'; //compress old revisions: (0: off) ('gz': gnuzip) ('bz2': bzip)
- useful to create pages that do not appear in the menu on the left side but have to be directly linked:
# in conf/local.php: $conf['plugin']['indexmenu']['skip_file'] = '/(ni_|start|sidebar|home)/';