@@ -40,9 +40,6 @@ def _setup_paths(self):
4040 # Theme configuration
4141 self .theme_path = self .root_dir / 'gitfichas-mermaid-theme.json'
4242
43- # Puppeteer configuration
44- self .puppeteer_config_path = self .root_dir / 'puppeteer-config.json'
45-
4643 def _setup_directories (self ):
4744 """Create required directories if they don't exist."""
4845 self .images_dir .mkdir (parents = True , exist_ok = True )
@@ -95,7 +92,7 @@ def cleanup_temp_files(self):
9592
9693 def get_mermaid_cli_command (self , temp_file : Path , output_path : Path ) -> list :
9794 """Get the Mermaid CLI command arguments."""
98- cmd = [
95+ return [
9996 'npx' , '@mermaid-js/mermaid-cli' ,
10097 '-i' , str (temp_file ),
10198 '-o' , str (output_path ),
@@ -107,12 +104,6 @@ def get_mermaid_cli_command(self, temp_file: Path, output_path: Path) -> list:
107104 '--cssFile' , str (self .combined_css_path )
108105 ]
109106
110- # Add puppeteer config if it exists
111- if self .puppeteer_config_path .exists ():
112- cmd .extend (['--puppeteerConfigFile' , str (self .puppeteer_config_path )])
113-
114- return cmd
115-
116107 def get_image_path (self , front_matter : Dict [str , Any ], file_path : Path ) -> Path :
117108 """Determine the output image path based on front matter and file path."""
118109 number = front_matter .get ('number' , file_path .stem .split ('-' )[- 1 ])
0 commit comments