From 0295cce3d1a0852695121fe29d23fc728d991c43 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Tue, 28 Feb 2012 19:12:25 -0500 Subject: [PATCH] Rename stuff. --- generate-documentation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'] -- 2.7.4