Commit 8861ecff authored by Ilya Lysenkov's avatar Ilya Lysenkov

Fixed wiki links in flann in the online documentation

parent e0b40c26
...@@ -3,7 +3,7 @@ function insertIframe (elementId, iframeSrc) ...@@ -3,7 +3,7 @@ function insertIframe (elementId, iframeSrc)
var iframe; var iframe;
if (document.createElement && (iframe = document.createElement('iframe'))) if (document.createElement && (iframe = document.createElement('iframe')))
{ {
iframe.src = iframeSrc; iframe.src = unescape(iframeSrc);
iframe.width = "100%"; iframe.width = "100%";
iframe.height = "511px"; iframe.height = "511px";
var element = document.getElementById(elementId); var element = document.getElementById(elementId);
...@@ -11,7 +11,3 @@ function insertIframe (elementId, iframeSrc) ...@@ -11,7 +11,3 @@ function insertIframe (elementId, iframeSrc)
} }
} }
...@@ -8,6 +8,7 @@ import StringIO ...@@ -8,6 +8,7 @@ import StringIO
from qfile import QOpen from qfile import QOpen
from string import Template from string import Template
from random import random from random import random
import urllib
# useful things for pyparsing # useful things for pyparsing
def returnList(x): def returnList(x):
...@@ -153,7 +154,7 @@ class SphinxWriter: ...@@ -153,7 +154,7 @@ class SphinxWriter:
self.cur_module = self.render(c.params[1].str) self.cur_module = self.render(c.params[1].str)
def wikiLink(self, name): def wikiLink(self, name):
return '`id=%s Comments from the Wiki <http://opencv.willowgarage.com/wiki/documentation/%s/%s/%s>`__' % (random(), 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, urllib.quote(name) )
def cmd_cvCppCross(self, c): def cmd_cvCppCross(self, c):
self.write(":func:`%s`" % str(c.params[0])) self.write(":func:`%s`" % str(c.params[0]))
......
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