Files
rip-help-system/view.bat
Sabo Sabev 711053b8bd Initial commit: working RIP/INEX_TM help processing pipeline
- help_processor.py: parses .docx/.html/.pdf/.doc/.txt, extracts images,
  classifies sections via Claude API, writes to SQL Server
- generate_html.py: builds interactive HTML viewer (Home/Editor/Search/Generator)
- save_keywords.py: applies keyword edits back to DB
- Prefix-scoped DB schema (RIP_help_files, RIP_help_sections) so multiple
  projects share the same database without collision
- BAT launchers per project (RIP_load.bat, INEX_TM_load.bat, ...) load
  credentials from gitignored .env via _load_env.bat
- Rich HTML preservation for .html sources (html_text column)
- Image extraction for all formats with MS Word / LibreOffice fallback for .doc

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 11:52:11 +03:00

22 lines
508 B
Batchfile

:@echo off
chcp 65001 > nul
call "%~dp0_load_env.bat" || exit /b 1
set PYTHONIOENCODING=utf-8
rem Optional: %1 = prefix filter (e.g. RIP, INEX_TM). Empty = show all.
if "%~1"=="" (
echo Generate help_viewer.html from DB ^(all prefixes^)
python generate_html.py
) else (
echo Generate help_viewer.html from DB ^(prefix=%~1^)
python generate_html.py --prefix=%~1
)
echo.
echo ok. browser should be open
echo.
echo to write changes in key words back into DB
echo python save_keywords.py
echo.
pause