diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/resume.py	Wed Apr 27 20:41:00 2011 -0500
@@ -0,0 +1,15 @@
+#!/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)