diff --git a/docs/examples/batch_convert.py b/docs/examples/batch_convert.py index 73498915..da1c701f 100644 --- a/docs/examples/batch_convert.py +++ b/docs/examples/batch_convert.py @@ -122,7 +122,7 @@ def main(): raises_on_error=False, # to let conversion run through all and examine results at the end ) success_count, partial_success_count, failure_count = export_documents( - conv_results, output_dir=Path("../../examples/scratch") + conv_results, output_dir=Path("scratch") ) end_time = time.time() - start_time diff --git a/docs/examples/custom_convert.py b/docs/examples/custom_convert.py index 67d58a6b..8c753396 100644 --- a/docs/examples/custom_convert.py +++ b/docs/examples/custom_convert.py @@ -113,7 +113,7 @@ def main(): _log.info(f"Document converted in {end_time:.2f} seconds.") ## Export results - output_dir = Path("../../examples/scratch") + output_dir = Path("scratch") output_dir.mkdir(parents=True, exist_ok=True) doc_filename = conv_result.input.file.stem diff --git a/docs/examples/export_figures.py b/docs/examples/export_figures.py index d6fed16d..1110b0f1 100644 --- a/docs/examples/export_figures.py +++ b/docs/examples/export_figures.py @@ -15,7 +15,7 @@ def main(): logging.basicConfig(level=logging.INFO) input_doc_path = Path("./tests/data/2206.01062.pdf") - output_dir = Path("../../examples/scratch") + output_dir = Path("scratch") # Important: For operating with page images, we must keep them, otherwise the DocumentConverter # will destroy them for cleaning up memory. diff --git a/docs/examples/export_multimodal.py b/docs/examples/export_multimodal.py index 3646aea3..72845f41 100644 --- a/docs/examples/export_multimodal.py +++ b/docs/examples/export_multimodal.py @@ -20,7 +20,7 @@ def main(): logging.basicConfig(level=logging.INFO) input_doc_path = Path("./tests/data/2206.01062.pdf") - output_dir = Path("../../examples/scratch") + output_dir = Path("scratch") # Important: For operating with page images, we must keep them, otherwise the DocumentConverter # will destroy them for cleaning up memory. diff --git a/docs/examples/export_tables.py b/docs/examples/export_tables.py index ff962e80..68b9ce47 100644 --- a/docs/examples/export_tables.py +++ b/docs/examples/export_tables.py @@ -13,7 +13,7 @@ def main(): logging.basicConfig(level=logging.INFO) input_doc_path = Path("./tests/data/2206.01062.pdf") - output_dir = Path("../../examples/scratch") + output_dir = Path("scratch") doc_converter = DocumentConverter() diff --git a/docs/examples/run_with_formats.py b/docs/examples/run_with_formats.py index 4ae7055c..1767980c 100644 --- a/docs/examples/run_with_formats.py +++ b/docs/examples/run_with_formats.py @@ -53,7 +53,7 @@ doc_converter = ( conv_results = doc_converter.convert_all(input_paths) for res in conv_results: - out_path = Path("../../examples/scratch") + out_path = Path("scratch") print( f"Document {res.input.file.name} converted." f"\nSaved markdown output to: {str(out_path)}" diff --git a/examples/custom_convert.py b/examples/custom_convert.py deleted file mode 120000 index dc4e853e..00000000 --- a/examples/custom_convert.py +++ /dev/null @@ -1 +0,0 @@ -../docs/examples/custom_convert.py \ No newline at end of file