changeset 26:ce7cbf3e08e1 default tip

fix bug with local files, index.html, and manifest order
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 04 Aug 2011 18:43:12 -0700
parents 0ce6b501f62d
children
files document_it.py setup.py
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/document_it.py	Wed Aug 03 19:59:58 2011 -0700
+++ b/document_it.py	Thu Aug 04 18:43:12 2011 -0700
@@ -3,7 +3,7 @@
 """
 update MDN documentation from markdown
 
-see:
+for the MDN API see:
 http://developer.mindtouch.com/en/ref/MindTouch_API/POST%3Apages%2F%2F%7Bpageid%7D%2F%2Fcontents
 
 The manifest format is in the form:
@@ -221,6 +221,10 @@
             else:
                 os.makedirs(dirname)
 
+            # render to index.html if the directory already exists
+            if os.path.isdir(dest):
+                dest = os.path.join(dest, 'index.html')
+
             # render
             f = file(dest, 'w')
             f.write(render(src))
--- a/setup.py	Wed Aug 03 19:59:58 2011 -0700
+++ b/setup.py	Thu Aug 04 18:43:12 2011 -0700
@@ -7,7 +7,7 @@
 except IOError:
     description = None
 
-version = '0.1'
+version = '0.1.1'
 
 deps = ['Markdown']