view resume.py @ 6:cf64f4740040

Put into virtualenv. Capture requirements file.
author Brian Neal <bgneal@gmail.com>
date Sun, 09 Feb 2014 14:02:51 -0600
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)