Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 09330e5

Browse files
committed
Fix: Show qnum in docs.
1 parent 85f3759 commit 09330e5

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

runestone/mchoice/assess.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,25 @@ def run(self):
8585

8686

8787
class QuestionNumber(RunestoneDirective):
88-
"""Set Parameters for Question Numbering
89-
.. qnum::
90-
'prefix': character prefix before the number
91-
'suffix': character prefix after the number
92-
'start': start numbering with this value
93-
94-
.. qnum::
95-
:prefix: turtle-
96-
:start: 10
88+
"""
89+
Set Parameters for Question Numbering:
90+
91+
.. code-block:: rst
92+
:linenos:
93+
94+
.. qnum::
95+
'prefix': character prefix before the number
96+
'suffix': character prefix after the number
97+
'start': start numbering with this value
98+
99+
For example:
100+
101+
.. code-block:: rst
102+
:linenos:
103+
104+
.. qnum::
105+
:prefix: turtle-
106+
:start: 10
97107
"""
98108

99109
required_arguments = 0

0 commit comments

Comments
 (0)