문제

Is there an environment for formatting exercises? Something like

.. exercise:: Count to 10

   Write down all the numbers from 1 to (including 10)

I.e. this is for an instructional documentation that challenges the reader to work through the material.

도움이 되었습니까?

해결책

You can add your custom semantics and style with admonition.

E.g. the example:

.. admonition:: description

        Here is some info for basic Plone troubleshooting, especially with add-on modules.

The resulting output will have admonition-description CSS class. Then you can then style with CSS, :after and :before pseudo-selectors e.g. if you want to add an exercise icon next to the text.

A random example file

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top