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

Upgrade php version of xampp not success -

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

Change font size on axis for excel chart with powershell -