Implemented dynamic loading of the Wiki in the online documentation.

This commit is contained in:
Ilya Lysenkov
2010-10-25 09:54:47 +00:00
parent f27a54be97
commit 0886177c5a
4 changed files with 30 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import pyparsing as pp
import StringIO
from qfile import QOpen
from string import Template
from random import random
# useful things for pyparsing
def returnList(x):
@@ -152,7 +153,7 @@ class SphinxWriter:
self.cur_module = self.render(c.params[1].str)
def wikiLink(self, name):
return '*Comments on* `wiki <http://opencv.willowgarage.com/wiki/documentation/%s/%s/%s>`__' % (self.language, self.cur_module, name)
return '`id=%s Comments from the Wiki <http://opencv.willowgarage.com/wiki/documentation/%s/%s/%s>`__' % (random(), self.language, self.cur_module, name)
def cmd_cvCppCross(self, c):
self.write(":func:`%s`" % str(c.params[0]))