How to use Restructured Text in Juicebox Docs

Basic rules

  • Wrap lines at 80 characters
  • Full underlines for titles. The symbols you use define the levels.
  • EVERY section title must be unique.
  • Back ticks define a reference (either to a file or to another section heading.)
  • Double back ticks for inline code.

Section headings

The header levels are not predefined. Any text with a consistent underline or overline at least as long as the content will define a header level. You can use any of the following.

==============
header level 1
==============

header level 2
==============

header level 3
--------------

header level 4
^^^^^^^^^^^^^^

Code blocks

Here’s a block of code.

  • The only required element is language .. code-block:: {language}
  • Code must be valid in the language you’ve chosen, choose none if in doubt.
An example code-block with everything turned on.
1
2
3
4
5
# Comment line
import System
System.run_emphasis_line
# Long lines in code blocks create a auto horizontal scrollbar
System.exit!
class SharedBase(RecipeServiceBaseV3):
    """Shared stack logic is defined here."""

    def __init__(self, *args, **kwargs):
        super(SharedBase, self).__init__(*args, **kwargs)
        self.user_filter_table = None