I’ve been using Sphinx to auto-document some python code, but noticed that there isn’t a Textmate bundle solely for Sphinx. Not to worry though: there is a reStructuredText bundle which will give you some nice commands, and here is a ridiculously simple command to run ‘make html’ for some sphinx documentation:
#!/usr/bin/env python import os os.system('make html')
It’s just a few lines of python, that say to run ‘make html’ (most Textmate bundles are written in ruby, but python works too). All you then need to do is to assign this command a key binding, and voila, you can run the Sphinx makefile without leaving Textmate.
Here’s a screenshot for completeness: