Add a max-width for images.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 07 Jul 2012 00:00:59 -0400 |
parents |
fc54225e8b51 |
children |
(none) |
#!/usr/bin/env python
import sys, os, optparse
# Ugly hack so I can code in peace.
try:
from d.base import render_files
except ImportError:
sys.path.append(os.path.abspath(os.path.join(__file__, '..', '..')))
from d.base import render_files
if __name__ == '__main__':
# Option parser
parser = optparse.OptionParser(description='Markdown files to documentation. Run and get on with your life.')
parser.add_option('-s', dest='source', default='.', help='Documentation source', metavar='SOURCE')
parser.add_option('-t', dest='target', default='./build', help='Documentation output target', metavar='TARGET')
(options, args) = parser.parse_args()
# Render with arguments
render_files(options.source, options.target)