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

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -