Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
0886177c
Commit
0886177c
authored
Oct 25, 2010
by
Ilya Lysenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented dynamic loading of the Wiki in the online documentation.
parent
f27a54be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
insertIframe.js
doc/latex2sphinx/_static/insertIframe.js
+17
-0
layout.html
doc/latex2sphinx/_themes/blue/layout.html
+2
-0
buildall
doc/latex2sphinx/buildall
+9
-0
latex.py
doc/latex2sphinx/latex.py
+2
-1
No files found.
doc/latex2sphinx/_static/insertIframe.js
0 → 100644
View file @
0886177c
function
insertIframe
(
elementId
,
iframeSrc
)
{
var
iframe
;
if
(
document
.
createElement
&&
(
iframe
=
document
.
createElement
(
'iframe'
)))
{
iframe
.
src
=
iframeSrc
;
iframe
.
width
=
"100%"
;
iframe
.
height
=
"511px"
;
var
element
=
document
.
getElementById
(
elementId
);
element
.
parentNode
.
replaceChild
(
iframe
,
element
);
}
}
doc/latex2sphinx/_themes/blue/layout.html
View file @
0886177c
{% extends "basic/layout.html" %}
{% set script_files = script_files + [pathto("_static/insertIframe.js", 1)] %}
{% block document %}
<div
class=
"documentwrapper"
>
{%- if not embedded %}{% if not theme_nosidebar|tobool %}
...
...
doc/latex2sphinx/buildall
View file @
0886177c
...
...
@@ -12,4 +12,13 @@ do
mkdir
-p
$D
cp
conf.py
$D
TEXINPUTS
=
$PWD
: sphinx-build
-w
$D
/sphinx.errors
-D
"lang=
$D
"
-b
html
-d
_build/doctrees/
$D
$D
_build/html/
$D
#Insert javascript links to load the Wiki in a frame
for
file
in
`
ls
_build/html/
$D
/
*
.html
`
do
cat
$file
|
sed
"/Comments from the Wiki/s/href=
\"\(
.*
\)\"
>id=0.
\(
[0-9]*
\)
/href=
\"
javascript:void
\(
0
\)\"
onclick=
\"
insertIframe
\(
'
\2
', '
\1
'
\)\"
id=
\"\2\"
>/"
>
tmp.html
mv
'tmp.html'
"
$file
"
done
done
doc/latex2sphinx/latex.py
View file @
0886177c
...
...
@@ -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
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment