Skip to content

Commit 00dee54

Browse files
Copilotjtemporal
andcommitted
Revert changes to config_manager.py and .gitignore
Co-authored-by: jtemporal <6595551+jtemporal@users.noreply.github.com>
1 parent 8c86f76 commit 00dee54

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,3 @@ Gemfile.lock
4848
node_modules/
4949
package.json
5050
package-lock.json
51-
52-
### Puppeteer ###
53-
puppeteer-config.json
54-
55-
### Mermaid Generator ###
56-
combined-mermaid.css

scripts/config_manager.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)