Commit Graph

5 Commits

Author SHA1 Message Date
Andy Williams 4253b51b59 WIKI BUGFIX - don't use the cache if useCache says not to
This may not be the root cause but it fixes things in the meantime
2017-11-29 09:27:40 +00:00
Andy Williams 419fa515f2 Revert "Revert "WIKI CUSTOM - geshi - add custom code hilighter extensions""
This reverts commit a34d54426e.
2017-10-30 16:21:24 +00:00
Andy Williams a34d54426e Revert "WIKI CUSTOM - geshi - add custom code hilighter extensions"
This reverts commit c55c1d32bb.
2017-10-30 13:40:40 +00:00
Carsten Haitzler c55c1d32bb WIKI CUSTOM - geshi - add custom code hilighter extensions
name "WIKI CUSTOM" above to find it easy to identify custom patches to
dokuwiki beyond having raw as-per-upstream code. then "geshi" as to
what was modded. this mods geshi and adds a config var. documentation
here:

/* new config - patches to dokuwiki enabled this. this is a directory
 * realtive to 'datadir' config above where we store metadata right in the
 * wiki itself to holid linking and documentation for keywords in specific
 * languages like c, lua, cpp, js, python etc. you need the below directory
 * and then like
 * $dir/$language/keyword-link.txt
 * #dir/$language/keyword-list.txt
 *
 * where $dir is the below base dir and $language is the lang in a code
 * block like c, cpp, js etc. so for example you may have:
 *
 * docs/generated/c/keyword-link.txt
 * docs/generated/c/keyword-list.txt
 *
 * inside your "pages" dir for the wiki. the link file is simply a base url
 * pattern that allows you to direct where a detected keyword link is pointed
 * to such as:
 *
 * /docs/generated/c/keywords/{FNAMEL}
 *
 * this replaces {FNAMEL} with the keyword. so if ou have in the wiki there
 * a keywords directory and keyword.txt - this cam be the documentation for
 * that keyword. this is done to alllow auto-linking of code examples as
 * well as anything else code-related to appropriate documentation for a
 * project without people having to hand link in everything all the time,
 * much like what doxygen does, but in dokuwiki. right now it only works
 * inside code blocks syntax hilighted by geshi
 */
$conf['code_extn'] = 'docs/generated';

you might ewant to set:

/* max cache time for a wiki pagee - this is so that code keyword
 * hilighting works even if a page doesn't have a
 * ~~NOCACHE~~ directive in it. if it has this in it, then code keyword
 * extension hilighting is updated immediately
 */
$conf['cachetime'] = 3600;

(max page cache = 1h).
2015-04-14 16:05:09 +09:00
Carsten Haitzler 2f1c6521bf New dokuwiki site 2015-04-07 18:57:54 +09:00