Commit 8d55b0f
committed
Refactor generate_markdown_document function to include base_name parameter
The generate_markdown_document function now includes a new parameter called base_name. This parameter is used to specify the base name for the title of the markdown document. The function also checks if the input_path is a relative path and uses its basename as the base_name if it is. This change simplifies the function and improves its flexibility.
Refactor manage_output_directory function to include input_path parameter
The manage_output_directory function now includes a new parameter called input_path. This parameter is used to determine the base_name for the output file. If the input_path is a relative path, the function uses its basename as the base_name. This change enhances the functionality of the function and makes it more robust.
Update main function to pass base_name parameter to generate_markdown_document and manage_output_directory
The main function has been updated to pass the base_name parameter to both the generate_markdown_document and manage_output_directory functions. This ensures that the correct base_name is used for the title of the markdown document and the output file name. This change improves the accuracy and consistency of the generated markdown content.1 parent 3c9d5b1 commit 8d55b0f
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
458 | 460 | | |
459 | | - | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
| |||
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | | - | |
| 576 | + | |
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
580 | 581 | | |
581 | 582 | | |
| 583 | + | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
588 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
589 | 595 | | |
590 | 596 | | |
591 | 597 | | |
| |||
638 | 644 | | |
639 | 645 | | |
640 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
641 | 653 | | |
642 | 654 | | |
643 | | - | |
| 655 | + | |
644 | 656 | | |
645 | 657 | | |
646 | | - | |
647 | | - | |
| 658 | + | |
648 | 659 | | |
649 | 660 | | |
650 | 661 | | |
| |||
0 commit comments