Mercurial > public > resume
view resume.py @ 2:472ce1a0728b
Added HTML and CSS.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 27 Apr 2011 20:43:21 -0500 |
parents | b294d8923050 |
children |
line wrap: on
line source
#!/usr/bin/python import docutils.core with open('resume.rst', 'r') as f: content = f.read() body = docutils.core.publish_parts(content, writer_name='html', settings_overrides={ 'doctitle_xform': False, 'initial_header_level': 2, })['html_body'] with open('resume-fragment.html', 'w') as f: f.write(body)