mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 02:37:52 +02:00
docs: update api ref test (#4516)
This commit is contained in:
@@ -277,7 +277,7 @@ def update_markdown_with_imports(markdown: str, path: str) -> str:
|
||||
f'<a href="{imp["docs"]}">{imp["imported"]}</a>' for imp in imports
|
||||
)
|
||||
# Return the code block with prepended API reference links
|
||||
return f"{indent}<sup><i>API: {api_links}</i></sup>\n\n{original_code_block}"
|
||||
return f"{indent}<sup><i>API Reference: {api_links}</i></sup>\n\n{original_code_block}"
|
||||
|
||||
# Apply the replace_code_block function to all matches in the markdown
|
||||
updated_markdown = code_block_pattern.sub(replace_code_block, markdown)
|
||||
|
||||
@@ -14,7 +14,7 @@ from langgraph.types import interrupt
|
||||
"""
|
||||
|
||||
EXPECTED_MARKDOWN = """\
|
||||
API Reference: <a href="https://langchain-ai.github.io/langgraph/reference/types/#langgraph.types.interrupt">interrupt</a>
|
||||
<sup><i>API Reference: <a href="https://langchain-ai.github.io/langgraph/reference/types/#langgraph.types.interrupt">interrupt</a></i></sup>
|
||||
|
||||
```python
|
||||
from langgraph.types import interrupt
|
||||
|
||||
Reference in New Issue
Block a user