python - Conditional output in Sphinx Documentation -


i'm writing documentation sphinx , i'd print out block of text html documentation, not latex documentation. tells me should able sphinx.ext.ifconfig can't figure out how. know how this?

no extension required. use only directive. works this:

 .. only:: latex      stuff in here appears in latex output.  .. only:: html      stuff in block appears in html output. it's     useful use directive it:      .. raw:: html          it's embedding stuff, video. 

Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -