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.

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:

../static/img/blog/simple/logo.png

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
../static/img/blog/simple/logo.png

figure

figure is an image with an optional caption and an optional legend:

.. figure:: picture.png

  This is the caption

  This is the legend.
../static/img/blog/simple/logo.png

The logo of xrefactor.com

I made it with GIMP.

:class: as-is can be used here as well:

../static/img/blog/simple/logo.png

The logo of xrefactor.com

I made it with GIMP.

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;
  }