Skip to content

Commit 98592e6

Browse files
committed
Remove unused preview command
1 parent 59a1eee commit 98592e6

4 files changed

Lines changed: 0 additions & 589 deletions

File tree

docs/tutorials/using_cli.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The Parxy CLI lets you:
1111
| Command | Description |
1212
|------------------|-------------------------------------------------------------------------------------------------------------|
1313
| `parxy parse` | Extract text content from documents with customizable detail levels and output formats. Process files or folders with multiple drivers. |
14-
| `parxy preview` | Interactive document viewer with metadata, table of contents, and scrollable content preview |
1514
| `parxy markdown` | Convert documents to Markdown files, with support for multiple drivers and folder processing |
1615
| `parxy pdf:merge`| Merge multiple PDF files into one, with support for page ranges |
1716
| `parxy pdf:split`| Split a PDF into individual pages, with optional page range and single-file extraction |
@@ -133,47 +132,6 @@ Process all PDFs in a folder with two drivers, output as JSON, and save to a spe
133132
parxy parse /path/to/pdfs -d pymupdf -d llamaparse -m json -o output/
134133
```
135134

136-
## Previewing Documents
137-
138-
The `preview` command provides an interactive document viewer that displays:
139-
- Document metadata (title, author, creation date, etc.)
140-
- Table of contents extracted from headings
141-
- Document content rendered as markdown
142-
143-
This is useful for quickly inspecting a document's structure and content without creating output files.
144-
145-
### Basic Usage
146-
147-
```bash
148-
parxy preview document.pdf
149-
```
150-
151-
The preview is displayed in a scrollable three-panel layout.
152-
153-
### Options
154-
155-
Specify a driver:
156-
157-
```bash
158-
parxy preview document.pdf --driver llamaparse
159-
```
160-
161-
Adjust extraction level:
162-
163-
```bash
164-
parxy preview document.pdf --level line
165-
```
166-
167-
### Navigation
168-
169-
The preview uses your system's default pager (similar to `less` on Unix systems), allowing you to:
170-
- Scroll up and down
171-
- Search for text
172-
- Exit the preview
173-
174-
This is ideal for quick document inspection before running a full parsing operation.
175-
176-
177135
## Converting to Markdown
178136

179137
The `markdown` command converts documents to Markdown format, preserving structure such as headings and lists. It follows the same conventions as the `parse` command: output files are prefixed with the driver name and saved next to the source file by default.
@@ -407,7 +365,6 @@ With the CLI, you can use Parxy as a **standalone document parsing tool** — id
407365
| Command | Purpose |
408366
|------------------|--------------------------------------------------------------|
409367
| `parxy parse` | Extract text from documents with multiple formats & drivers |
410-
| `parxy preview` | Interactive document viewer with metadata and TOC |
411368
| `parxy markdown` | Generate Markdown files; accepts JSON results and supports `--page-separators` |
412369
| `parxy pdf:merge`| Merge multiple PDF files with page range support |
413370
| `parxy pdf:split`| Split PDF into individual pages; supports `--pages` and `--combine` |

src/parxy_cli/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from parxy_cli.console.console import Console
1212
from parxy_cli.commands.docker import app as docker_command
1313
from parxy_cli.commands.parse import app as parse_command
14-
from parxy_cli.commands.preview import app as preview_command
1514
from parxy_cli.commands.drivers import app as drivers_command
1615
from parxy_cli.commands.env import app as env_command
1716
from parxy_cli.commands.version import app as version_command
@@ -70,7 +69,6 @@ def main(
7069

7170
app.add_typer(docker_command)
7271
app.add_typer(parse_command)
73-
app.add_typer(preview_command)
7472
app.add_typer(drivers_command)
7573
app.add_typer(env_command)
7674
app.add_typer(version_command)

src/parxy_cli/commands/preview.py

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)