Sphinx-Patchqueue is a sphinx extension for displaying and formatting file
evolution (captured as a patch queue or patch series) in a sphinx document,
for tutorials and other similar pieces of text using sequences of
alterations made to files.

It's known to work with both Quilt and Mercurial Queues patch series.