X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=generate-documentation.py;h=2f91503500fee20986a72c4980a03b388b341255;hb=1a5dc2af0b98d6937cd49d48a863f83f38f0ec1f;hp=3e88088e6e510cf96b4a0a44c281e427cb8d4a51;hpb=35a3c487b50e297b4a01522ab208ed394cfd88e3;p=dygraphs.git
diff --git a/generate-documentation.py b/generate-documentation.py
index 3e88088..2f91503 100755
--- a/generate-documentation.py
+++ b/generate-documentation.py
@@ -1,12 +1,21 @@
#!/usr/bin/python
+
+# Generate docs/options.html
+
import json
import glob
import re
+import sys
+
+# Set this to the path to a test file to get debug output for just that test
+# file. Can be helpful to figure out why a test is not being shown for a
+# particular option.
+debug_tests = [] # [ 'tests/zoom.html' ]
# Pull options reference JSON out of dygraph.js
js = ''
in_json = False
-for line in file('dygraph.js'):
+for line in file('dygraph-options-reference.js'):
if '
%(name)s
+