added annotations about the status written to home md file
This commit is contained in:
		
							parent
							
								
									c6234ec808
								
							
						
					
					
						commit
						9967d40862
					
				
							
								
								
									
										7
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								main.py
									
									
									
									
									
								
							@ -74,7 +74,9 @@ def main() -> None:
 | 
			
		||||
        with open(page, "w") as f:
 | 
			
		||||
            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:
 | 
			
		||||
                f.write("\n" + """
 | 
			
		||||
- <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
 | 
			
		||||
"""
 | 
			
		||||
                        )
 | 
			
		||||
        else:
 | 
			
		||||
            eprint("::warning::home-md-file not set for logseq-publish-excalidraw-to-svg, won't write error message to "
 | 
			
		||||
                   "website")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user