Bugfix #282. Use valueRange (if specified) instead of extremes during unzooming....
[dygraphs.git] / generate-documentation.py
index f0b7387..2dd5b98 100755 (executable)
@@ -1,4 +1,7 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
+# Generate docs/options.html
+
 import json
 import glob
 import re
@@ -12,7 +15,7 @@ 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 '<JSON>' in line:
     in_json = True
   elif '</JSON>' in line: