From 90200443bcd92ef52e1b1f5cc32a5ee9d85f74f2 Mon Sep 17 00:00:00 2001 From: Jeremy Chen Date: Mon, 13 Oct 2025 18:30:02 +1100 Subject: [PATCH] docs: Remove deprecated call in custom_convert.py (#2447) Update custom_convert.py export_to_document_tokens is deprecated so change it to export_to_doctags Signed-off-by: Jeremy Chen --- docs/examples/custom_convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/custom_convert.py b/docs/examples/custom_convert.py index 895f00ea..85f39030 100644 --- a/docs/examples/custom_convert.py +++ b/docs/examples/custom_convert.py @@ -205,7 +205,7 @@ def main(): # Export Document Tags format: with (output_dir / f"{doc_filename}.doctags").open("w", encoding="utf-8") as fp: - fp.write(conv_result.document.export_to_document_tokens()) + fp.write(conv_result.document.export_to_doctags()) if __name__ == "__main__":