← Về thư mục
skills/markitdown/scripts/convert_literature.py
- LiteratureRecord · class · L26-L37 — class LiteratureRecord
- humanize_filename_component · function · L40-L42 — def humanize_filename_component(value: str) -> str
- infer_metadata · function · L45-L54 — def infer_metadata(path: Path) -> tuple[str | None, str | None, str]
- digest_file · function · L57-L63 — def digest_file(path: Path) -> str
- yaml_scalar · function · L66-L68 — def yaml_scalar(value: str) -> str
- atomic_write_text · function · L71-L89 — def atomic_write_text(path: Path, content: str) -> None
- output_path_for · function · L92-L103 — def output_path_for( source: Path, input_dir: Path, output_dir: Path, year: str | None, organize_by_year: bool, ) -> Path
- render_document · function · L106-L132 — def render_document( markdown: str, *, title: str, author: str | None, year: str | None, source: str, source_sha256: str, converted_at: str, markitdown_version: str, ) -> str
- convert_paper · function · L135-L236 — def convert_paper( converter: MarkItDown, source: Path, input_dir: Path, output_dir: Path, *, organize_by_year: bool, overwrite: bool, allow_empty: bool, max_bytes: int, markitdown_version: str, ) -> LiteratureRecord
- escape_markdown · function · L239-L241 — def escape_markdown(value: str) -> str
- create_index · function · L244-L292 — def create_index(records: list[LiteratureRecord], output_dir: Path) -> None
- build_parser · function · L295-L336 — def build_parser() -> argparse.ArgumentParser
- main · function · L339-L401 — def main() -> int