From: Robert Konigsberg Date: Wed, 29 Feb 2012 00:12:25 +0000 (-0500) Subject: Rename stuff. X-Git-Tag: v1.0.0~314^2~5 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0295cce3d1a0852695121fe29d23fc728d991c43;p=dygraphs.git Rename stuff. --- diff --git a/generate-documentation.py b/generate-documentation.py index 8dbc68f..ddaa68a 100755 --- a/generate-documentation.py +++ b/generate-documentation.py @@ -146,11 +146,11 @@ print """

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

""" -def de_tests(f): +def test_name(f): """Takes 'tests/demo.html' -> 'demo'""" return f.replace('tests/', '').replace('.html', '') -def de_gallery(f): +def gallery_name(f): """Takes 'gallery/demo.js' -> 'demo'""" return f.replace('gallery/', '').replace('.js', '') @@ -170,14 +170,14 @@ for label in sorted(labels): examples_html = 'NONE' else: examples_html = ' '.join( - '%s' % (f, de_tests(f)) for f in tests) + '%s' % (f, test_name(f)) for f in tests) gallery = opt['gallery'] if not gallery: gallery_html = 'NONE' else: gallery_html = ' '.join( - '%s' % (urlify_gallery(f), de_gallery(f)) for f in gallery) + '%s' % (urlify_gallery(f), gallery_name(f)) for f in gallery) if 'parameters' in opt: parameters = opt['parameters']