Hugoifier
chore: remove dead code (analyze_html.py) and unused dependency (beautifulsoup4) Closes #8
Commit
75aa4ac47cd6fba7b26e7b62edfe7533423901bd3253aee125ac7dcc827152c8
Parent
017d14d737a2a2c…
2 files changed
-1
-22
-1
| --- requirements.txt | ||
| +++ requirements.txt | ||
| @@ -1,5 +1,4 @@ | ||
| 1 | 1 | anthropic |
| 2 | 2 | openai |
| 3 | 3 | google-generativeai |
| 4 | 4 | pyyaml |
| 5 | -beautifulsoup4 | |
| 6 | 5 | |
| 7 | 6 | DELETED src/utils/analyze_html.py |
| --- requirements.txt | |
| +++ requirements.txt | |
| @@ -1,5 +1,4 @@ | |
| 1 | anthropic |
| 2 | openai |
| 3 | google-generativeai |
| 4 | pyyaml |
| 5 | beautifulsoup4 |
| 6 | |
| 7 | ELETED src/utils/analyze_html.py |
| --- requirements.txt | |
| +++ requirements.txt | |
| @@ -1,5 +1,4 @@ | |
| 1 | anthropic |
| 2 | openai |
| 3 | google-generativeai |
| 4 | pyyaml |
| 5 | |
| 6 | ELETED src/utils/analyze_html.py |
D
src/utils/analyze_html.py
-22
| --- a/src/utils/analyze_html.py | ||
| +++ b/src/utils/analyze_html.py | ||
| @@ -1,22 +0,0 @@ | ||
| 1 | -""" | |
| 2 | -Low-level HTML analysis utility. | |
| 3 | -For the CLI, use utils/analyze.py instead. | |
| 4 | -""" | |
| 5 | - | |
| 6 | -from config import call_ai | |
| 7 | - | |
| 8 | -SYSTEM = "You are an expert Hugo theme developer analyzing HTML files for conversion." | |
| 9 | - | |
| 10 | - | |
| 11 | -def analyze_html(html_content: str) -> str: | |
| 12 | - """Analyze an HTML string and suggest Hugo template tags and partials.""" | |
| 13 | - prompt = f"""Analyze this HTML and provide: | |
| 14 | -1. Reusable components to extract as partials (header, footer, nav, sidebar, etc.) | |
| 15 | -2. Hugo template tags to replace hardcoded content | |
| 16 | -3. Recommended Hugo partial splits | |
| 17 | -4. Content sections suitable for data/ YAML files | |
| 18 | - | |
| 19 | -HTML: | |
| 20 | -{html_content[:20000]}""" | |
| 21 | - | |
| 22 | - return call_ai(prompt, SYSTEM) |
| --- a/src/utils/analyze_html.py | |
| +++ b/src/utils/analyze_html.py | |
| @@ -1,22 +0,0 @@ | |
| 1 | """ |
| 2 | Low-level HTML analysis utility. |
| 3 | For the CLI, use utils/analyze.py instead. |
| 4 | """ |
| 5 | |
| 6 | from config import call_ai |
| 7 | |
| 8 | SYSTEM = "You are an expert Hugo theme developer analyzing HTML files for conversion." |
| 9 | |
| 10 | |
| 11 | def analyze_html(html_content: str) -> str: |
| 12 | """Analyze an HTML string and suggest Hugo template tags and partials.""" |
| 13 | prompt = f"""Analyze this HTML and provide: |
| 14 | 1. Reusable components to extract as partials (header, footer, nav, sidebar, etc.) |
| 15 | 2. Hugo template tags to replace hardcoded content |
| 16 | 3. Recommended Hugo partial splits |
| 17 | 4. Content sections suitable for data/ YAML files |
| 18 | |
| 19 | HTML: |
| 20 | {html_content[:20000]}""" |
| 21 | |
| 22 | return call_ai(prompt, SYSTEM) |
| --- a/src/utils/analyze_html.py | |
| +++ b/src/utils/analyze_html.py | |
| @@ -1,22 +0,0 @@ | |