X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=generate-documentation.py;h=31781b914574538f27e2a44320f544aad6b6ec27;hb=64ca7a2e6437b9d050ad42e60b27475bc01efeb5;hp=d73fcc49f1d491fa0e048d24b0208534de6ec717;hpb=15c1e309939d7e3a5eb363f84547c1efd336c365;p=dygraphs.git diff --git a/generate-documentation.py b/generate-documentation.py index d73fcc4..31781b9 100755 --- a/generate-documentation.py +++ b/generate-documentation.py @@ -133,6 +133,8 @@ print """

Some options can be set on a per-axis and per-series basis. See the docs on per-axis and per-series options to learn how to do this. The options which may be set in this way are marked as such on this page.

+

For options which are functions (e.g. callbacks and formatters), the value of this is set to the Dygraph object.

+

And, without further ado, here's the complete list of options:

""" @@ -150,7 +152,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 +183,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