added annotations about the status written to home md file
This commit is contained in:
		
							parent
							
								
									c6234ec808
								
							
						
					
					
						commit
						9967d40862
					
				
							
								
								
									
										13
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								main.py
									
									
									
									
									
								
							@ -74,9 +74,11 @@ 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:
 | 
				
			||||||
        with open(home_md_file, "a") as f:
 | 
					        if home_md_file is not None:
 | 
				
			||||||
            f.write("\n" + """
 | 
					            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>
 | 
					- <h1 style="color: red;">Some drawings were not loaded</h1>
 | 
				
			||||||
\t- ## How to fix as a Contributor
 | 
					\t- ## How to fix as a Contributor
 | 
				
			||||||
\t\t- drawings are located in <vault path>/draws
 | 
					\t\t- drawings are located in <vault path>/draws
 | 
				
			||||||
@ -91,7 +93,10 @@ def main() -> None:
 | 
				
			|||||||
\t\t\t- Click "SVG" and copy to <vault path>/assets/excalidraw_svgs
 | 
					\t\t\t- Click "SVG" and copy to <vault path>/assets/excalidraw_svgs
 | 
				
			||||||
\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__":
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user