Sphinxが追加したDoctreeノードクラス¶
ドメイン固有のオブジェクト記述のノード¶
-
class
sphinx.addnodes.desc(rawsource='', *children, **attributes)[ソース]¶ オブジェクト記述のノード.
このノードは,1つの定義しかない“定義リスト”に類似している.1つ以上のものが含まれています
desc_signature1つとdesc_contentそれがそうです。
-
class
sphinx.addnodes.desc_signature(rawsource='', text='', *children, **attributes)[ソース]¶ 対象署名のノード.
Sphinx定義リスト中の“Term”部分をカスタマイズする.
デフォルトの場合、署名は単行署名であるが、設定は
is_multiline = True複数行の署名を記述する場合は,以下の操作を実行してください.この場合,すべての子ノードが必要である.desc_signature_lineノードです。
-
class
sphinx.addnodes.desc_signature_line(rawsource='', text='', *children, **attributes)[ソース]¶ ノードは行中の複数行オブジェクト署名である.
それはただ
desc_signature使用is_multiline準備ができました。集add_permalink = True永久リンクを取得すべき経路である.
-
class
sphinx.addnodes.desc_addname(rawsource='', text='', *children, **attributes)[ソース]¶ その他の名前部分(モジュール名,クラス名)のノード.
-
class
sphinx.addnodes.desc_type(rawsource='', text='', *children, **attributes)[ソース]¶ タイプまたはオブジェクトタイプ名のノードを返します。
-
class
sphinx.addnodes.desc_returns(rawsource='', text='', *children, **attributes)[ソース]¶ ノードは“戻る”注釈を表します(Pythonではla->)。
-
class
sphinx.addnodes.desc_parameterlist(rawsource='', text='', *children, **attributes)[ソース]¶ 通常パラメータリストのノード.
-
class
sphinx.addnodes.desc_parameter(rawsource='', text='', *children, **attributes)[ソース]¶ ノードは単一のパラメータに使用される.
-
class
sphinx.addnodes.desc_optional(rawsource='', text='', *children, **attributes)[ソース]¶ ノードは、パラメータリストのオプション部分をマークするために使用される。
新警告式構造¶
他段落レベルノード¶
内部接続ノードを新規に新設する.¶
-
class
sphinx.addnodes.index(rawsource='', text='', *children, **attributes)[ソース]¶ インデックス項目のノード.
このノードは
index命令は属性を持っていますentriesそれがそうです。その値は5元グループからなるリストです(entrytype, entryname, target, ignored, key)それがそうです。エントリタイプ “単”“対”“双”“三”の一種である。
key 通常のインデックスページの分類文字(通常は単一文字)である。詳細については,別に参照されたい
glossary第2320号です
-
class
sphinx.addnodes.pending_xref(rawsource='', *children, **attributes)[ソース]¶ 交差引用のノードは,すべての文書に関する完全な情報がなければ,これらの交差引用を解析することはできない.
出力を書き込む前に,BuildEnvironmentでこれらのノードを解析する.RESOLVE_REFERENCES。
-
class
sphinx.addnodes.literal_emphasis(rawsource='', text='', *children, **attributes)[ソース]¶ 行動類似ノード emphasis しかし、他のテキストプロセッサ(例えば、HTML出力のためのSmartyants)は適用されない。
特殊ノード.¶
-
class
sphinx.addnodes.meta(rawsource='', *children, **attributes)[ソース]¶ Meta命令のノードであるdocutilsの標準メタノードと同じであるが,ピックアップ可能である.
-
class
sphinx.addnodes.highlightlang(rawsource='', *children, **attributes)[ソース]¶ 後続のコードブロックの強調表示言語および行番号オプションを設定するために挿入されます。
Extensionsで次のノードを生成する必要はないはずです。
-
class
sphinx.addnodes.start_of_file(rawsource='', *children, **attributes)[ソース]¶ ノードタグの新しいファイルの開始は,LaTeX生成器でのみ使用される.