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

Function _get_guides_markdown

tensorflow/tools/docs/parser.py:807–816  ·  view source on GitHub ↗
(duplicate_names, guide_index, relative_path)

Source from the content-addressed store, hash-verified

805
806
807def _get_guides_markdown(duplicate_names, guide_index, relative_path):
808 all_guides = []
809 for name in duplicate_names:
810 all_guides.extend(guide_index.get(name, []))
811 if not all_guides: return ''
812 prefix = '../' * (relative_path.count('/') + 3)
813 links = sorted(set([guide_ref.make_md_link(prefix)
814 for guide_ref in all_guides]))
815 return 'See the guide%s: %s\n\n' % (
816 's' if len(links) > 1 else '', ', '.join(links))
817
818
819def _get_defining_class(py_class, name):

Callers 1

docs_for_objectFunction · 0.85

Calls 5

make_md_linkMethod · 0.80
extendMethod · 0.45
getMethod · 0.45
countMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected