Embed code from the source in sphinx

Dridi Boukelmoune dridi at varni.sh
Tue Aug 11 10:07:43 CEST 2015


Hi,

I'd like to show code snippets (eg. struct definitions) in the
documentation, but also be future-proof. Instead of hard-pasting the
code and risk divergence over time, I'd like to tell sphinx to extract
a piece of code instead.

Initially asked on IRC, just in case someone would know  because my
research tells me that it can't be done. I have already seen struct
definitions in the docs so I have little to no hope... Someone who
knows better might be on holidays, so asking here instead.

Cheers,
Dridi



More information about the varnish-dev mailing list