Python製ドキュメンテーションビルダー、Sphinxの日本ユーザ会
only を使います。 only は引数の式が True の時に続くコンテンツを表示します。式はタグで書きます。タグは -t オプションか conf.py で指定します。特に出力形式(builder)は全てタグです。
only
True
-t
conf.py
この式では html and (latex or draft) のように and や or などの演算子を使えます。
html and (latex or draft)
and
or
.. only:: html or singlehtml 出力がhtmlかsinglehtmlの時だけこの内容が表示されます。
出力がhtmlかsinglehtmlの時だけこの内容が表示されます。
ifconfig拡張
注意や警告を書きたい
設定にしたがってコンテンツを表示する