summaryrefslogtreecommitdiff
path: root/doc/development/tutorials/examples
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-02-11 22:13:07 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-02-11 22:13:07 +0900
commitf17ab57b6460a870111464684475a6b68080dba8 (patch)
tree63d43c175bdd4c80b19b59b6e8861b9d66cfe73e /doc/development/tutorials/examples
parentf11592eb3264e6ea26cb62e997b68249dc1e8ffa (diff)
downloadsphinx-git-f17ab57b6460a870111464684475a6b68080dba8.tar.gz
Fix #8860: doc: recipe directive crashes with AttributeError
The pre check in the `ReceipeDirective.add_target_and_index() was wrong. It checkes non-existing option "noindex", but it should check "contains" option instead.
Diffstat (limited to 'doc/development/tutorials/examples')
-rw-r--r--doc/development/tutorials/examples/recipe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/tutorials/examples/recipe.py b/doc/development/tutorials/examples/recipe.py
index c7317578b..1c3389847 100644
--- a/doc/development/tutorials/examples/recipe.py
+++ b/doc/development/tutorials/examples/recipe.py
@@ -24,7 +24,7 @@ class RecipeDirective(ObjectDescription):
def add_target_and_index(self, name_cls, sig, signode):
signode['ids'].append('recipe' + '-' + sig)
- if 'noindex' not in self.options:
+ if 'contains' not in self.options:
ingredients = [
x.strip() for x in self.options.get('contains').split(',')]