X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=generate-documentation.py;h=0d6760e5616cc52d19b9ec0af34140981fcb421c;hb=05f0c949e08dc94bb8cbaab4502a9e7c547c6d81;hp=f6d7d7903c6ec8036c62d2d8ee83610f66ec95b2;hpb=144034416d8119387dbdc3ce689d7b9fa4b2a0ee;p=dygraphs.git
diff --git a/generate-documentation.py b/generate-documentation.py
index f6d7d79..0d6760e 100755
--- a/generate-documentation.py
+++ b/generate-documentation.py
@@ -150,7 +150,7 @@ def urlify_gallery(f):
for label in sorted(labels):
- print '%s
\n' % (label, label)
+ print '
%s
\n' % (label, label)
for opt_name in sorted(docs.keys()):
opt = docs[opt_name]
@@ -181,7 +181,9 @@ for label in sorted(labels):
if not opt['description']: opt['description'] = '(missing)'
print """
- %(name)s
+
%(name)s
+
#
+
%(desc)s
Type: %(type)s%(parameters)s
Default: %(default)s
@@ -204,6 +206,7 @@ Some callbacks take a point argument. Its properties are:
xval/yval: The data coordinates of the point (with dates/times as millis since epoch)
canvasx/canvasy: The canvas coordinates at which the point is drawn.
name: The name of the data series to which the point belongs
+
idx: The row number of the point in the data set