docs: update api ref test (#4516)

This commit is contained in:
Vadym Barda
2025-05-02 13:58:29 -04:00
committed by GitHub
parent ee04c32bb3
commit df58a71567
2 changed files with 2 additions and 2 deletions
@@ -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)