mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-28 18:09:53 +00:00
print filename being rendered
This commit is contained in:
parent
022bedb5b8
commit
da5aee0a49
@ -89,6 +89,7 @@ def main(args):
|
|||||||
|
|
||||||
print(f"{markdown_files=}")
|
print(f"{markdown_files=}")
|
||||||
for filename in markdown_files:
|
for filename in markdown_files:
|
||||||
|
print(f"{filename=}")
|
||||||
html = pypandoc.convert_file(filename, 'html', extra_args=[f'--template={args.template}'])
|
html = pypandoc.convert_file(filename, 'html', extra_args=[f'--template={args.template}'])
|
||||||
output_filename = os.path.splitext(re.sub(f"^{args.notes.name}", args.output_dir.name, filename))[0] + '.html'
|
output_filename = os.path.splitext(re.sub(f"^{args.notes.name}", args.output_dir.name, filename))[0] + '.html'
|
||||||
os.makedirs(os.path.dirname(output_filename), exist_ok=True)
|
os.makedirs(os.path.dirname(output_filename), exist_ok=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user