Skip to content

Commit

Permalink
fix example rendering when example contains a asdf_standard requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Feb 19, 2024
1 parent 4da23f2 commit 79f928b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_asdf/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,6 @@ def _process_examples(self, tree, filename):
desc_text = self._markdown_to_nodes(example[0] + ":", filename)
description = example_description(None, *desc_text)
node.append(description)
node.append(nodes.literal_block(text=example[1], language="yaml"))
node.append(nodes.literal_block(text=example[-1], language="yaml"))

Check warning on line 416 in sphinx_asdf/directives.py

View check run for this annotation

Codecov / codecov/patch

sphinx_asdf/directives.py#L416

Added line #L416 was not covered by tests
examples.append(node)
return examples

0 comments on commit 79f928b

Please sign in to comment.