-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tim Callahan <tcal@google.com>
- Loading branch information
Showing
2 changed files
with
121 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% for block in blocks -%} | ||
|
||
{% if block.type == 'literal_block' %} | ||
|
||
{% if not block.start_group and not block.in_group %} | ||
.. code-block:: {% if 'bash' in block.classes %}bash{% endif %} | ||
|
||
{% for line in block.text -%} | ||
{{ line }} | ||
{% endfor %} | ||
|
||
{% elif block.start_group %} | ||
.. tabs:: | ||
|
||
.. group-tab:: {{ block.name }} | ||
|
||
.. code-block:: bash | ||
|
||
{% for line in block.text -%} | ||
{{ line }} | ||
{% endfor %} | ||
{% elif block.in_group %} | ||
.. group-tab:: {{ block.name }} | ||
|
||
.. code-block:: bash | ||
|
||
{% for line in block.text -%} | ||
{{ line }} | ||
{% endfor %} | ||
|
||
{% endif %} | ||
|
||
{% elif block.type == 'image' %} | ||
.. image:: {{ block.uri }} | ||
:align: {{ block.align }} | ||
:width: {{ block.width }} | ||
|
||
{% elif block.type == 'note' %} | ||
.. note:: | ||
|
||
{% for line in block.text -%} | ||
{{ line }} | ||
{% endfor %} | ||
|
||
|
||
{% else %} | ||
{{ block.text }} | ||
|
||
{% endif %} | ||
|
||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters