MCPcopy Index your code
hub / github.com/mkdocs/mkdocs / run

Method run

mkdocs/tests/build_tests.py:880–887  ·  view source on GitHub ↗
(self, lines: list[str])

Source from the content-addressed store, hash-verified

878 self.base_path = base_path
879
880 def run(self, lines: list[str]) -> list[str]:
881 for i, line in enumerate(lines):
882 if m := re.search(r'^--8<-- "(.+)"$', line):
883 try:
884 lines[i] = Path(self.base_path, m[1]).read_text()
885 except OSError:
886 lines[i] = f"(Failed to read {m[1]!r})\n"
887 return lines
888
889
890class _TestExtension(markdown.extensions.Extension):

Callers 5

initializeMethod · 0.45
lunr.jsFile · 0.45
_render_inner_htmlFunction · 0.45
uFunction · 0.45
ltFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected