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

amazon web services - S3 and apache mod_proxy with basic authentication -

How to install ruby on rails -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -