mkdocs-md-to-pdf 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mkdocs-md-to-pdf
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Convert Markdown files to PDF using MkDocs Material theme and Playwright
5
5
  Keywords: markdown,pdf,mkdocs,converter,documentation
6
6
  Author: Lode Rosseel
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mkdocs-md-to-pdf"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "Convert Markdown files to PDF using MkDocs Material theme and Playwright"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -37,7 +37,9 @@ def _create_temp_mkdocs_config(input_file: Path, temp_dir: Path) -> Path:
37
37
  for linked_file in linked_files:
38
38
  linked_file_path = input_file.parent / linked_file
39
39
  if linked_file_path.is_file():
40
- shutil.copy2(linked_file_path, temp_docs_dir)
40
+ dest = temp_docs_dir / linked_file
41
+ dest.parent.mkdir(parents=True, exist_ok=True)
42
+ shutil.copy2(linked_file_path, dest)
41
43
 
42
44
  config_content = template_content.replace("{{site_name}}", input_file.name).replace(
43
45
  "{{docs_dir}}", "docs"