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