comparison resume.py @ 1:b294d8923050

Updated resume to my liking. Added a makefile and a Python script to build a HTML fragment, suitable for inclusion in my blog, for example.
author Brian Neal <bgneal@gmail.com>
date Wed, 27 Apr 2011 20:41:00 -0500
parents
children
comparison
equal deleted inserted replaced
0:15311d39de92 1:b294d8923050
1 #!/usr/bin/python
2
3 import docutils.core
4
5 with open('resume.rst', 'r') as f:
6 content = f.read()
7
8 body = docutils.core.publish_parts(content, writer_name='html',
9 settings_overrides={
10 'doctitle_xform': False,
11 'initial_header_level': 2,
12 })['html_body']
13
14 with open('resume-fragment.html', 'w') as f:
15 f.write(body)