diff --git a/doc/source/ext/resources.py b/doc/source/ext/resources.py index 3b59bb187..22263d712 100644 --- a/doc/source/ext/resources.py +++ b/doc/source/ext/resources.py @@ -124,7 +124,7 @@ resources: properties: %s''' % (self.resource_type, '\n '.join(props)) - block = nodes.literal_block('', template) + block = nodes.literal_block('', template, language="hot") section.append(block) def contribute_yaml_syntax(self, parent): @@ -146,7 +146,7 @@ Resources: Properties: %s''' % (self.resource_type, '\n '.join(props)) - block = nodes.literal_block('', template) + block = nodes.literal_block('', template, language='yaml') section.append(block) def contribute_json_syntax(self, parent): @@ -171,7 +171,7 @@ Resources: } } }''' % (self.resource_type, ',\n '.join(props)) - block = nodes.literal_block('', template) + block = nodes.literal_block('', template, language="json") section.append(block) @staticmethod