added annotations about the status written to home md file

This commit is contained in:
Surferlul 2023-10-13 19:14:42 +02:00
parent c6234ec808
commit 9967d40862

View File

@ -74,7 +74,9 @@ def main() -> None:
with open(page, "w") as f: with open(page, "w") as f:
f.write(content) f.write(content)
if missing_any_svgs and home_md_file is not None: if missing_any_svgs:
if home_md_file is not None:
eprint(f"::notice::Writing error message to {home_md_file}")
with open(home_md_file, "a") as f: with open(home_md_file, "a") as f:
f.write("\n" + """ f.write("\n" + """
- <h1 style="color: red;">Some drawings were not loaded</h1> - <h1 style="color: red;">Some drawings were not loaded</h1>
@ -92,6 +94,9 @@ def main() -> None:
\t\t\t- Rename the file so the base names match \t\t\t- Rename the file so the base names match
""" """
) )
else:
eprint("::warning::home-md-file not set for logseq-publish-excalidraw-to-svg, won't write error message to "
"website")
if __name__ == "__main__": if __name__ == "__main__":