Showing
1 changed file
with
13 additions
and
2 deletions
| @@ -291,6 +291,8 @@ BettaFish/ | @@ -291,6 +291,8 @@ BettaFish/ | ||
| 291 | ├── docker-compose.yml # Docker multi-service orchestration config | 291 | ├── docker-compose.yml # Docker multi-service orchestration config |
| 292 | ├── Dockerfile # Docker image build file | 292 | ├── Dockerfile # Docker image build file |
| 293 | ├── requirements.txt # Python dependency list | 293 | ├── requirements.txt # Python dependency list |
| 294 | +├── regenerate_latest_html.py # Rebind latest chapters and render HTML | ||
| 295 | +├── regenerate_latest_md.py # Rebind latest chapters and render Markdown | ||
| 294 | ├── regenerate_latest_pdf.py # PDF regeneration utility script | 296 | ├── regenerate_latest_pdf.py # PDF regeneration utility script |
| 295 | ├── report_engine_only.py # Report Engine CLI version | 297 | ├── report_engine_only.py # Report Engine CLI version |
| 296 | ├── README.md # Chinese documentation | 298 | ├── README.md # Chinese documentation |
| @@ -495,7 +497,7 @@ python main.py --deep-sentiment --platforms xhs dy wb | @@ -495,7 +497,7 @@ python main.py --deep-sentiment --platforms xhs dy wb | ||
| 495 | 497 | ||
| 496 | #### 6.4 Command-line Report Generation Tool | 498 | #### 6.4 Command-line Report Generation Tool |
| 497 | 499 | ||
| 498 | -This tool bypasses the execution phase of all three analysis engines, directly loads their most recent log files, and generates a consolidated report without requiring the Web interface (while also skipping incremental file-validation steps). It is typically used when rapid retries are needed due to unsatisfactory report outputs, or when debugging the Report Engine. | 500 | +This tool bypasses the execution phase of all three analysis engines, directly loads their most recent log files, and generates a consolidated report without requiring the Web interface (while also skipping incremental file-validation steps). It will also generate a Markdown copy after the PDF by default (toggle via CLI flag). It is typically used when rapid retries are needed due to unsatisfactory report outputs, or when debugging the Report Engine. |
| 499 | 501 | ||
| 500 | ```bash | 502 | ```bash |
| 501 | # Basic usage (automatically extract topic from filename) | 503 | # Basic usage (automatically extract topic from filename) |
| @@ -507,6 +509,9 @@ python report_engine_only.py --query "Civil Engineering Industry Analysis" | @@ -507,6 +509,9 @@ python report_engine_only.py --query "Civil Engineering Industry Analysis" | ||
| 507 | # Skip PDF generation (even if system supports it) | 509 | # Skip PDF generation (even if system supports it) |
| 508 | python report_engine_only.py --skip-pdf | 510 | python report_engine_only.py --skip-pdf |
| 509 | 511 | ||
| 512 | +# Skip Markdown generation | ||
| 513 | +python report_engine_only.py --skip-markdown | ||
| 514 | + | ||
| 510 | # Show verbose logging | 515 | # Show verbose logging |
| 511 | python report_engine_only.py --verbose | 516 | python report_engine_only.py --verbose |
| 512 | 517 | ||
| @@ -523,7 +528,8 @@ python report_engine_only.py --help | @@ -523,7 +528,8 @@ python report_engine_only.py --help | ||
| 523 | 5. **Automatic File Saving**: | 528 | 5. **Automatic File Saving**: |
| 524 | - HTML reports saved to `final_reports/` directory | 529 | - HTML reports saved to `final_reports/` directory |
| 525 | - PDF reports (if dependencies available) saved to `final_reports/pdf/` directory | 530 | - PDF reports (if dependencies available) saved to `final_reports/pdf/` directory |
| 526 | - - File naming format: `final_report_{topic}_{timestamp}.html/pdf` | 531 | + - Markdown reports (disable with `--skip-markdown`) saved to `final_reports/md/` directory |
| 532 | + - File naming format: `final_report_{topic}_{timestamp}.html/pdf/md` | ||
| 527 | 533 | ||
| 528 | **Notes:** | 534 | **Notes:** |
| 529 | 535 | ||
| @@ -531,6 +537,11 @@ python report_engine_only.py --help | @@ -531,6 +537,11 @@ python report_engine_only.py --help | ||
| 531 | - The command-line tool is independent of the Web interface and does not interfere with each other | 537 | - The command-line tool is independent of the Web interface and does not interfere with each other |
| 532 | - PDF generation requires system dependencies, see "Install PDF Export System Dependencies" section above | 538 | - PDF generation requires system dependencies, see "Install PDF Export System Dependencies" section above |
| 533 | 539 | ||
| 540 | +**Quickly re-render the latest outputs:** | ||
| 541 | + | ||
| 542 | +- `regenerate_latest_html.py` / `regenerate_latest_md.py`: Re-stitch the latest chapter JSON from `CHAPTER_OUTPUT_DIR` into a Document IR and render to HTML or Markdown directly. | ||
| 543 | +- `regenerate_latest_pdf.py`: Read the newest IR under `final_reports/ir` and re-export a PDF with SVG vector charts. | ||
| 544 | + | ||
| 534 | ## ⚙️ Advanced Configuration (Deprecated: Configuration has been unified to the `.env` file in the project root directory, and other sub-agents automatically inherit the root directory configuration) | 545 | ## ⚙️ Advanced Configuration (Deprecated: Configuration has been unified to the `.env` file in the project root directory, and other sub-agents automatically inherit the root directory configuration) |
| 535 | 546 | ||
| 536 | ### Modify Key Parameters | 547 | ### Modify Key Parameters |
-
Please register or login to post a comment