MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / build_html

Method build_html

tensorflow/tools/docs/parser.py:1767–1779  ·  view source on GitHub ↗

Returns the Metadata block as an Html string.

(self)

Source from the content-addressed store, hash-verified

1765 self._content.append(item.short_name)
1766
1767 def build_html(self):
1768 """Returns the Metadata block as an Html string."""
1769 schema = 'http://developers.google.com/ReferenceObject'
1770 parts = ['<div itemscope itemtype="%s">' % schema]
1771
1772 parts.append('<meta itemprop="name" content="%s" />' % self.name)
1773 parts.append('<meta itemprop="path" content="%s" />' % self.version)
1774 for item in self._content:
1775 parts.append('<meta itemprop="property" content="%s"/>' % item)
1776
1777 parts.extend(['</div>', ''])
1778
1779 return '\n'.join(parts)

Callers 3

get_metadata_htmlMethod · 0.80
get_metadata_htmlMethod · 0.80
get_metadata_htmlMethod · 0.80

Calls 3

appendMethod · 0.45
extendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected