Spaces:
Sleeping
Sleeping
| """Regenerate ALL AgroSense documents at once (manual, technical guide, SOP, | |
| campaigns and the content calendar) into docs/, as Word + PDF. | |
| pip install python-docx fpdf2 | |
| python scripts/build_docs.py | |
| """ | |
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parent)) | |
| import build_manual # noqa: E402 | |
| import build_tech_docs # noqa: E402 | |
| import build_gtm # noqa: E402 | |
| import build_campaign # noqa: E402 | |
| import build_fb_campaign # noqa: E402 | |
| import build_linkedin_campaign # noqa: E402 | |
| import build_calendar30 # noqa: E402 | |
| _BUILDERS = [ | |
| ("User Manual", build_manual.main), | |
| ("Technical Guide + SOP", build_tech_docs.main), | |
| ("Go-to-Market & Monetization Plan", build_gtm.main), | |
| ("Instagram Campaign", build_campaign.main), | |
| ("Facebook Campaign", build_fb_campaign.main), | |
| ("LinkedIn Campaign", build_linkedin_campaign.main), | |
| ("30-Day Content Calendar", build_calendar30.main), | |
| ] | |
| def main() -> int: | |
| for name, builder in _BUILDERS: | |
| print(f"[{name}]") | |
| builder() | |
| print(f"\nDone. {len(_BUILDERS)} document sets regenerated in docs/.") | |
| return 0 | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |