Introducing Simple - an Ena Theme
Simple is the default theme that comes with Ena. The following shows how different elements are styled by Simple.
Markup
Emphasis
This is *emphasized text*.
This is emphasized text.
Strong Emphasis
This is **strong text**.
This is strong text.
Inline Code
This is :code:`inline code`.
This is inline code
.
Hyperlinks
Hyperlinks look like this: https://en.wikipedia.org/wiki/ReStructuredText
Special Admonitions
All special admonitions supported by reStructuredText are styled, the following shows each of them, with corresponding reStructuredText code:
note
Note
This is note
.. note:: This is note
warning
Warning
This is warning
.. warning:: This is warning
caution
Caution!
This is caution
.. caution:: This is caution
attention
Attention!
This is attention
.. attention:: This is attention
danger
!DANGER!
This is danger
.. danger:: This is danger
error
Error
This is error
.. error:: This is error
hint
Hint
This is hint
.. hint:: This is hint
important
Important
This is important
.. important:: This is important
tip
Tip
This is tip
.. tip:: This is tip
admonition
This is admonition
Content here.
.. admonition:: This is admonition Content here.
Images
Images come in two flavors, image
and figure
:
image
In reStructuredText, an image
can be defined with image
directive:
.. image:: picture.png
It looks like this:
By default, images will be scaled to full width of the containing elements with
a border in red, if that is not what you want, add :class: as-is
to it:
.. image:: picture.png :class: as-is
Body Elements
code
Source code blocks can be defined by:
.. code:: c #include <stdio.h> int main(int argc, char *argv[]) { printf("%s\n", "Hello, world!"); (void)argc; (void)argv; return 0; }