diff --git a/README.md b/README.md index 2959303..5c0b99d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- Docling + Docling

@@ -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

- - Docling - + Docling

diff --git a/docs/usage.md b/docs/usage.md index 3f9b679..5493c2e 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -27,10 +27,10 @@ To see all available options (export formats etc.) run `docling --help`.
CLI reference - Here are the available options as of this writing (for an up-to-date listing, run `docling --help`): +Here are the available options as of this writing (for an up-to-date listing, run `docling --help`): - ```console - $ docling --help +```console +$ docling --help Usage: docling [OPTIONS] source @@ -57,7 +57,7 @@ To see all available options (export formats etc.) run `docling --help`. │ --version Show version information. │ │ --help Show this message and exit. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ - ``` +```