X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=generate-documentation.py;h=613dec73940f7c2f11cb6d5fa625e28dd1c67209;hb=38dbac3e0b3c24486d3f548ae63dabd6e1d73bc3;hp=2f91503500fee20986a72c4980a03b388b341255;hpb=bbfb84f2a5e0fbb5259fab16f0785a5806c5bf8d;p=dygraphs.git diff --git a/generate-documentation.py b/generate-documentation.py index 2f91503..613dec7 100755 --- a/generate-documentation.py +++ b/generate-documentation.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Generate docs/options.html @@ -21,6 +21,8 @@ for line in file('dygraph-options-reference.js'): elif '' in line: in_json = False elif in_json: + if line.endswith("\\\n"): # hacked in line continuation support with trailing \. + line = line[:-2] js += line # TODO(danvk): better errors here. @@ -71,7 +73,7 @@ for nu, opt in docs.iteritems(): if label not in labels: labels.append(label) -print """ +print """ Dygraphs Options Reference @@ -80,6 +82,9 @@ print """ p.option { padding-left: 25px; } + div.parameters { + padding-left: 15px; + } #nav { position: fixed; } @@ -92,7 +97,7 @@ print """ """ print """ -