copy_templates
¶
copy_templates(template_type, copy_templates_to)
¶
Copy built-in template directory to user location for customization.
Why
Users creating custom themes need starting templates to modify.
Parameters:
-
template_type(Literal['markdown', 'typst']) –Which template set to copy.
-
copy_templates_to(Path) –Destination directory path.
Source code in src/rendercv/cli/copy_templates.py
make_tree_writable(path)
¶
Add user-write permission to all files and directories in a tree.
Why
On immutable distributions like NixOS, package files are read-only. shutil.copytree preserves source permissions, so copied files remain read-only. Users need write access to customize templates.
Parameters:
-
path(Path) –Root directory to make writable.