feat(project): add help search and detailed guides

This commit is contained in:
2026-10-03 09:41:09 +09:00
parent 7647e4b20f
commit cd0a509215
7 changed files with 648 additions and 58 deletions
+25
View File
@@ -0,0 +1,25 @@
"""실제 ERP 기본 템플릿으로 도움말을 렌더한다. DB·운영 사용자 데이터 미사용.
python tests/js/render_help.py -> tests/js/.out/help_render.html
"""
from pathlib import Path
import jinja2
ROOT = Path(__file__).resolve().parents[2]
env = jinja2.Environment(
loader=jinja2.ChoiceLoader([
jinja2.FileSystemLoader(ROOT / "app/modules/project/templates"),
jinja2.FileSystemLoader(ROOT / "app/templates"),
]),
autoescape=jinja2.select_autoescape(["html"]),
)
html = env.get_template("project/help.html").render(
user={"email": "reader@test.local", "name": "Reader", "is_super_admin": False},
is_admin=False, nav_items=[], force_sidebar_collapsed=True,
page_title="프로젝트 관리 도움말", page_subtitle="처음 쓰는 분을 위한 기능 안내",
)
out = ROOT / "tests/js/.out/help_render.html"
out.parent.mkdir(parents=True, exist_ok=True)
out.write_text(html, encoding="utf-8")
print("rendered:", out)