Mercurial > public > resume
annotate resume.py @ 8:437bd311924f tip
Removed linkedin link.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 19 Aug 2014 18:39:31 -0500 |
parents | b294d8923050 |
children |
rev | line source |
---|---|
bgneal@1 | 1 #!/usr/bin/python |
bgneal@1 | 2 |
bgneal@1 | 3 import docutils.core |
bgneal@1 | 4 |
bgneal@1 | 5 with open('resume.rst', 'r') as f: |
bgneal@1 | 6 content = f.read() |
bgneal@1 | 7 |
bgneal@1 | 8 body = docutils.core.publish_parts(content, writer_name='html', |
bgneal@1 | 9 settings_overrides={ |
bgneal@1 | 10 'doctitle_xform': False, |
bgneal@1 | 11 'initial_header_level': 2, |
bgneal@1 | 12 })['html_body'] |
bgneal@1 | 13 |
bgneal@1 | 14 with open('resume-fragment.html', 'w') as f: |
bgneal@1 | 15 f.write(body) |