Refactor Docling final report output for clarity and consistency

- Updated the final report script to streamline the output for the Docling service by reorganizing the displayed information.
- Removed redundant lines and ensured that essential details such as API endpoints and user credentials are clearly presented.
This commit is contained in:
Yury Kossakovsky
2025-11-09 14:24:38 -07:00
parent 167b7e97b6
commit ba81e717e2

View File

@@ -225,25 +225,16 @@ if is_profile_active "docling"; then
echo
echo "================================= Docling ============================="
echo
echo "Host: ${DOCLING_HOSTNAME:-<hostname_not_set>}"
echo "User: ${DOCLING_USERNAME:-<not_set_in_env>}"
echo "Password: ${DOCLING_PASSWORD:-<not_set_in_env>}"
echo "API (external via Caddy): https://${DOCLING_HOSTNAME:-<hostname_not_set>}"
echo "API (internal): http://docling:5001"
echo ""
echo "Web UI: https://${DOCLING_HOSTNAME:-<hostname_not_set>}/ui"
echo "API Docs: https://${DOCLING_HOSTNAME:-<hostname_not_set>}/docs"
echo ""
echo "Configuration:"
echo " Docker Image: ${DOCLING_IMAGE:-ghcr.io/docling-project/docling-serve:cpu}"
echo ""
echo "Main API Endpoint:"
echo " POST /v1/convert/source"
echo " Body: {\"sources\": [{\"kind\": \"http\", \"url\": \"https://example.com/doc.pdf\"}]}"
echo "User: ${DOCLING_USERNAME:-<not_set_in_env>}"
echo "Password: ${DOCLING_PASSWORD:-<not_set_in_env>}"
echo ""
echo "Supported formats: PDF, DOCX, PPTX, XLSX, HTML, images"
echo "Output formats: Markdown, JSON, HTML"
echo "GitHub: https://github.com/docling-project/docling-serve"
echo ""
echo "API (external via Caddy): https://${DOCLING_HOSTNAME:-<hostname_not_set>}"
echo "API (internal): http://docling:5001"
fi
if is_profile_active "gotenberg"; then