Implemented dynamic loading of the Wiki in the online documentation.
This commit is contained in:
@@ -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]))
|
||||
|
Reference in New Issue
Block a user