Parse URLs from the SUMMARY.md file.
(summary_file_path)
| 6 | import argparse |
| 7 | |
| 8 | def parse_summary(summary_file_path): |
| 9 | """Parse URLs from the SUMMARY.md file.""" |
| 10 | with open(summary_file_path, "r") as file: |
| 11 | for line in file: |
| 12 | if "](" in line: |
| 13 | url = line.split("](")[1].split(")")[0] |
| 14 | # Add .html extension if not the root URL |
| 15 | if url.endswith(".md"): |
| 16 | url = url[:-3] + ".html" |
| 17 | yield url |
| 18 | |
| 19 | def determine_priority(url_path, higher_priority_section): |
| 20 | """Determine the priority based on the URL path and specified higher priority section.""" |
no outgoing calls
no test coverage detected
searching dependent graphs…