Directive with options should not used include list of options with values such as True or False #114
Labels
area: questionnaire
Related to the questionnaire directive
effort: days
Solving this issue could take days. Starting with the creation of a new branch to the merging
experience: moderate
required knowledge estimate
priority: low
type: feature
New feature or change to a feature
The questionnaires have some options that require the user to specify whether the value for some options is either True or False. However, If we really want to follow the syntax of reStructuredText and/or Sphinx, we must evaluate whether the options are added or not, and consequently convert the inclusion of those options to a True or False value.
The following example include the
:show-model:
and:reveal-model-at-max-submissions:
options. Booth require a boolean value.One example of the behaviour we should follow can be seen in the
toctree
directive. In the toctree directive If the user wants to hide the toctree, he/she only has to add the:hidden:
option (True value), but if the user wants to see the toctree he/she do not need to add the option at all (False value)We have some other directives in a-plus-rst-tools that have the same logic as the toctree, but for some reason the
:show-model:
and:reveal-model-at-max-submissions:
options and some others have this weird behaviour.The text was updated successfully, but these errors were encountered: