Merge "Add language attribute to code samples"

This commit is contained in:
Jenkins 2014-08-28 18:35:14 +00:00 committed by Gerrit Code Review
commit 1f70d9d8cb

View File

@ -124,7 +124,7 @@ resources:
properties: properties:
%s''' % (self.resource_type, '\n '.join(props)) %s''' % (self.resource_type, '\n '.join(props))
block = nodes.literal_block('', template) block = nodes.literal_block('', template, language="hot")
section.append(block) section.append(block)
def contribute_yaml_syntax(self, parent): def contribute_yaml_syntax(self, parent):
@ -146,7 +146,7 @@ Resources:
Properties: Properties:
%s''' % (self.resource_type, '\n '.join(props)) %s''' % (self.resource_type, '\n '.join(props))
block = nodes.literal_block('', template) block = nodes.literal_block('', template, language='yaml')
section.append(block) section.append(block)
def contribute_json_syntax(self, parent): def contribute_json_syntax(self, parent):
@ -171,7 +171,7 @@ Resources:
} }
} }
}''' % (self.resource_type, ',\n '.join(props)) }''' % (self.resource_type, ',\n '.join(props))
block = nodes.literal_block('', template) block = nodes.literal_block('', template, language="json")
section.append(block) section.append(block)
@staticmethod @staticmethod