MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / _validate_mermaid

Function _validate_mermaid

codewiki/mcp/tools/doc_writer.py:48–54  ·  view source on GitHub ↗

Run Mermaid validation and return the result string.

(file_path: str, relative_path: str)

Source from the content-addressed store, hash-verified

46
47
48async def _validate_mermaid(file_path: str, relative_path: str) -> str:
49 """Run Mermaid validation and return the result string."""
50 try:
51 from codewiki.src.be.utils import validate_mermaid_diagrams
52 return await validate_mermaid_diagrams(file_path, relative_path)
53 except Exception as e:
54 return f"Mermaid validation skipped: {e}"
55
56
57def _save_history(session: SessionState, doc_path: Path, content: str) -> None:

Callers 2

handle_write_doc_fileFunction · 0.85
handle_edit_doc_fileFunction · 0.85

Calls 1

Tested by

no test coverage detected