projects
/
vuplus_bitbake
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/bb/fetch/git.py: always use english here
[vuplus_bitbake]
/
bin
/
bitdoc
diff --git
a/bin/bitdoc
b/bin/bitdoc
index
7c0c956
..
84d2ee2
100755
(executable)
--- a/
bin/bitdoc
+++ b/
bin/bitdoc
@@
-45,8
+45,8
@@
class HTMLFormatter:
one site for each key with links to the relations and groups.
index.html
one site for each key with links to the relations and groups.
index.html
- keys.html
- groups.html
+
all_
keys.html
+
all_
groups.html
groupNAME.html
keyNAME.html
"""
groupNAME.html
keyNAME.html
"""
@@
-75,8
+75,8
@@
class HTMLFormatter:
return """<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="g" href="index.html">Home</a></td>
return """<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="g" href="index.html">Home</a></td>
-<td><a accesskey="n" href="groups.html">Groups</a></td>
-<td><a accesskey="u" href="keys.html">Keys</a></td>
+<td><a accesskey="n" href="
all_
groups.html">Groups</a></td>
+<td><a accesskey="u" href="
all_
keys.html">Keys</a></td>
</tr></table>
"""
</tr></table>
"""
@@
-89,10
+89,11
@@
class HTMLFormatter:
return ""
txt = "<p><b>See also:</b><br>"
return ""
txt = "<p><b>See also:</b><br>"
+ txts = []
for it in item.related():
for it in item.related():
- txt
+= """<a href="key%s.html">%s</a>, """ % (it, it
)
+ txt
s.append("""<a href="key%(it)s.html">%(it)s</a>""" % vars()
)
- return txt
+ return txt
+ ",".join(txts)
def groups(self,item):
"""
def groups(self,item):
"""
@@
-103,11
+104,12
@@
class HTMLFormatter:
return ""
return ""
- txt = "<p><b>Seel also:</b><br>"
+ txt = "<p><b>See also:</b><br>"
+ txts = []
for group in item.groups():
for group in item.groups():
- txt
+= """<a href="group%s.html">%s</a>, """ % (group,group
)
+ txt
s.append( """<a href="group%s.html">%s</a> """ % (group,group)
)
- return txt
+ return txt
+ ",".join(txts)
def createKeySite(self,item):
def createKeySite(self,item):
@@
-125,23
+127,23
@@
class HTMLFormatter:
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
-<p
re class="synopsis"
>
+<p>
%s
%s
-</p
re
>
+</p>
</div>
<div class="refsynopsisdiv">
<h2>Related Keys</h2>
</div>
<div class="refsynopsisdiv">
<h2>Related Keys</h2>
-<p
re class="synopsis"
>
+<p>
%s
%s
-</p
re
>
+</p>
</div>
<div class="refsynopsisdiv">
<h2>Groups</h2>
</div>
<div class="refsynopsisdiv">
<h2>Groups</h2>
-<p
re class="synopsis"
>
+<p>
%s
%s
-</p
re
>
+</p>
</div>
</div>
@@
-181,8
+183,8
@@
class HTMLFormatter:
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
%s
<h2>Documentation Entrance</h2>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
%s
<h2>Documentation Entrance</h2>
-<a href="groups.html">All available groups</a><br>
-<a href="keys.html">All available keys</a><br>
+<a href="
all_
groups.html">All available groups</a><br>
+<a href="
all_
keys.html">All available keys</a><br>
</body>
""" % self.createNavigator()
</body>
""" % self.createNavigator()
@@
-206,13
+208,21
@@
class HTMLFormatter:
</body>
""" % (self.createNavigator(), keys)
</body>
""" % (self.createNavigator(), keys)
- def createGroupSite(self,
gr, items
):
+ def createGroupSite(self,
gr, items, _description = None
):
"""
Create a site for a group:
Group the name of the group, items contain the name of the keys
inside this group
"""
groups = ""
"""
Create a site for a group:
Group the name of the group, items contain the name of the keys
inside this group
"""
groups = ""
+ description = ""
+
+ # create a section with the group descriptions
+ if _description:
+ description += "<h2 Description of Grozp %s</h2>" % gr
+ description += _description
+
+ items.sort(lambda x,y:cmp(x.name(),y.name()))
for group in items:
groups += """<a href="key%s.html">%s</a><br>""" % (group.name(), group.name())
for group in items:
groups += """<a href="key%s.html">%s</a><br>""" % (group.name(), group.name())
@@
-221,6
+231,7
@@
class HTMLFormatter:
<link rel="stylesheet" href="style.css" type="text/css">
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
%s
<link rel="stylesheet" href="style.css" type="text/css">
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
%s
+%s
<div class="refsynopsisdiv">
<h2>Keys in Group %s</h2>
<pre class="synopsis">
<div class="refsynopsisdiv">
<h2>Keys in Group %s</h2>
<pre class="synopsis">
@@
-228,7
+239,7
@@
class HTMLFormatter:
</pre>
</div>
</body>
</pre>
</div>
</body>
-""" % (gr, self.createNavigator(), gr, groups)
+""" % (gr, self.createNavigator(),
description,
gr, groups)
@@
-508,10
+519,10
@@
def main():
f = file('index.html', 'w')
print >> f, html_slave.createIndex()
f = file('index.html', 'w')
print >> f, html_slave.createIndex()
- f = file('groups.html', 'w')
+ f = file('
all_
groups.html', 'w')
print >> f, html_slave.createGroupsSite(doc)
print >> f, html_slave.createGroupsSite(doc)
- f = file('keys.html', 'w')
+ f = file('
all_
keys.html', 'w')
print >> f, html_slave.createKeysSite(doc)
# now for each group create the site
print >> f, html_slave.createKeysSite(doc)
# now for each group create the site