Skip to content

Commit

Permalink
chore: various minor docs fixes (#169)
Browse files Browse the repository at this point in the history
Signed-off-by: Panos Vagenas <[email protected]>
  • Loading branch information
vagenas authored Oct 22, 2024
1 parent fa5f94e commit b8d2286
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://github.com/ds4sd/docling">
<img loading="lazy" alt="Docling" src="docs/assets/docling_processing.png" width="100%"/>
<img loading="lazy" alt="Docling" src="https://github.com/DS4SD/docling/raw/main/docs/assets/docling_processing.png" width="100%"/>
</a>
</p>

Expand Down Expand Up @@ -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[...]"
Expand Down
9 changes: 3 additions & 6 deletions docs/examples/minimal.py
Original file line number Diff line number Diff line change
@@ -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 [...]"
4 changes: 1 addition & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Docling

<p align="center">
<a href="https://ds4sd.github.io/docling/">
<img loading="lazy" alt="Docling" src="assets/logo.png" width="150" />
</a>
<img loading="lazy" alt="Docling" src="assets/docling_processing.png" width="100%" />
</p>


Expand Down
8 changes: 4 additions & 4 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ To see all available options (export formats etc.) run `docling --help`.
<details>
<summary><b>CLI reference</b></summary>

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

Expand All @@ -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. │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```
```
</details>


Expand Down

0 comments on commit b8d2286

Please sign in to comment.