diff --git a/scripts/run_wiki.py b/scripts/run_wiki.py index 5d8fffa..cdd18af 100644 --- a/scripts/run_wiki.py +++ b/scripts/run_wiki.py @@ -18,11 +18,6 @@ from agent_as_a_judge.agent import JudgeAgent from agent_as_a_judge.config import AgentConfig -from agent_as_a_judge.module.ask import DevAsk -from agent_as_a_judge.module.code_search import DevCodeSearch -from agent_as_a_judge.module.read import DevRead -from agent_as_a_judge.module.graph import DevGraph -from agent_as_a_judge.llm.provider import LLM def download_github_repo(repo_url, target_dir): @@ -1134,12 +1129,8 @@ def print_directory_structure(path, max_depth=3, depth=0): def generate_html_page(documentation, output_dir, section=None): template_dir = Path(__file__).parent / "templates" / "html" - template_file = template_dir / "index.html" - try: - with open(template_file, "r") as f: - template = f.read() - + try: import jinja2 env = jinja2.Environment(loader=jinja2.FileSystemLoader(template_dir)) template = env.get_template("index.html")