*********************** :mod:`Sphinx` -- Sphinx *********************** .. module:: Sphinx :synopsis: Sphinx Memo. .. moduleauthor:: Marc Zonzon .. highlight:: rest .. index:: pair: role; sphinx pair: sphinx; in-line markup .. contents:: :local: :depth: 1 .. _sphinx_inline_markup: Sphinx Roles ============ .. contents:: :local: .. _sphinx_roles: Sphinx inline markup is down through interpreted text roles; they are written ``:rolename:`content`.``. There are four types of roles: - The :ref:`ReStructuredText Text Roles `, which are valid both for ReStructuredText and Sphinx. - The :ref:`Sphinx cross references Roles` which extend and are preferred to :ref:`ReStructuredText cross references` - The :sphrst:`markup roles` - The roles added by :sphinx:`Sphinx domains ` like the :ref:`Python roles ` referenced below. .. _sphinx_ref: .. _sphinx_cross_references: .. index:: pair: sphinx; cross-reference Location cross references ------------------------- sphinx ref: :sphrst:`Cross-referencing arbitrary locations ` which defines the sphinx role :sphrst:`ref `. We use:: :ref:`displayed text