Merge "Add language attribute to code samples"
This commit is contained in:
commit
1f70d9d8cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user