Skip to content

Commit

Permalink
Merge pull request #90 from braingram/example_standard_def
Browse files Browse the repository at this point in the history
fix example rendering when example contains an asdf_standard requirement
  • Loading branch information
braingram committed Feb 23, 2024
2 parents 4da23f2 + 79f928b commit 20df236
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"))
examples.append(node)
return examples

0 comments on commit 20df236

Please sign in to comment.