Markdown makes sections and code blocks easy, but cross-referencing hard.
Code blocks are easy with triple back-ticks. Here's an example
def a():
return 2.0
Here's some python highlighted code.
class PostInsightCommand(PostToSlackCommand):
"""
Post a snapshot to slack.
Requires hook_url to be configured in app.metadata.
Text and image_title can also be configured in app.metadata to
customize this command.
"""
class Meta:
name = 'post-insight'
label = 'Post an insight'
icon = 'icon-lightbulb-o'
data_type = 'slice'
context = 'slice'
response_action = 'display'
This is a Orbit slice reference. It uses Markdown links and a full absolute path to the file. You can link directly to a section like this: Header background. This link will break if docs are re-organized.