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

Class _GetMarkdownTitle

tensorflow/tools/docs/generate_lib.py:315–324  ·  view source on GitHub ↗

Extract the title from a .md file.

Source from the content-addressed store, hash-verified

313
314
315class _GetMarkdownTitle(py_guide_parser.PyGuideParser):
316 """Extract the title from a .md file."""
317
318 def __init__(self):
319 self.title = None
320 py_guide_parser.PyGuideParser.__init__(self)
321
322 def process_title(self, _, title):
323 if self.title is None: # only use the first title
324 self.title = title
325
326
327class _DocInfo(object):

Callers 1

build_doc_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected