From b8d2286dd168606da90cb6a1879c901eee328061 Mon Sep 17 00:00:00 2001 From: Panos Vagenas <35837085+vagenas@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:29:36 +0200 Subject: [PATCH] chore: various minor docs fixes (#169) Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com> --- README.md | 4 ++-- docs/examples/minimal.py | 9 +++------ docs/index.md | 4 +--- docs/usage.md | 8 ++++---- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 2959303..5c0b99d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
@@ -50,7 +50,7 @@ To convert individual documents, use `convert()`, for example: ```python from docling.document_converter import DocumentConverter -source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL +source = "https://arxiv.org/pdf/2408.09869" # document per local path or URL converter = DocumentConverter() result = converter.convert(source) print(result.document.export_to_markdown()) # output: "## Docling Technical Report[...]" diff --git a/docs/examples/minimal.py b/docs/examples/minimal.py index 709fd87..66bd2c8 100644 --- a/docs/examples/minimal.py +++ b/docs/examples/minimal.py @@ -1,10 +1,7 @@ from docling.document_converter import DocumentConverter -source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL +source = "https://arxiv.org/pdf/2408.09869" # document per local path or URL converter = DocumentConverter() result = converter.convert(source) -print( - result.document.export_to_markdown() -) # output: ## Docling Technical Report [...]" -# if the legacy output is needed, use this version -# print(result.legacy_document.export_to_markdown()) # output: ## Docling Technical Report [...]" +print(result.document.export_to_markdown()) +# output: ## Docling Technical Report [...]" diff --git a/docs/index.md b/docs/index.md index 146a5d4..9db06e3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,9 +1,7 @@ # Docling
-
-
-
+