.. sectionauthor:: Mike Fitzpatrick .. index:: pair: ReStructuredText; guide .. _sec_ReStructuredTextStyleGuide: ############################ ReStructuredText Style Guide ############################ This page describes how reStructuredText (reST) is written for Data Lab documentation through examples. The :ref:`last section of this page documents our formatting conventions `. It is adopted from the style guide in the `Rubin/LSST DM Developer Guide `_ and licensed under a `Creative Commons Attribution 4.0 International License `_. For more general guides to writing reStructuredText, see Sphinx's `reStructuredText Primer `_ and the `docutils Quick reStructuredText guide `_. .. _rst-intro-sample: Sample ====== .. literalinclude:: ../ReStructuredTextSample/ReStructuredTextSample.rst :language: rst :lines: 2- .. lines field above omits :orphan: field from sample display :ref:`See this sample rendered `. .. _rst-inline-styles: Inline Text Styling =================== Italics ``*italic text*`` → *italic text*. Bold ``**bold text**`` → **bold text**. Monospace ````monospace text```` → ``monospace text``. When referring to code objects, it's better to use markup that links to the object's API documentation (see the :ref:`rst-code-link` section). Inline math ``:math:`\sqrt{16}``` → :math:`\sqrt{16}` (See also the :ref:`Math ` section). .. note:: Inline styles can't be nested For example, you *can't* write ``*see :ref:`this page