X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=generate-documentation.py;h=2f91503500fee20986a72c4980a03b388b341255;hb=ccd9d7c2bf76882f57d29161fe69b0db53124f54;hp=3e88088e6e510cf96b4a0a44c281e427cb8d4a51;hpb=5af2de242af305c2d17d5316f52ea7316bad67f3;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
+