Spaces:
Sleeping
Sleeping
Commit Β·
db1ecc9
1
Parent(s): a2a4ece
chore: build_readme_pdf.py outputs to ~/Desktop, not the repo
Browse filesThe PDF is a sharable artifact (email / Slack / AirDrop), not a repo asset.
Repo holds README.md (the source of truth, present on HF Space + GitHub);
the PDF gets regenerated to the Desktop where it's easy to grab and share.
Output path: ~/Desktop/Insurance-Sales-Bot-README.pdf
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tools/build_readme_pdf.py
CHANGED
|
@@ -20,7 +20,10 @@ from markdown_pdf import MarkdownPdf, Section
|
|
| 20 |
|
| 21 |
ROOT = Path(__file__).resolve().parent.parent
|
| 22 |
README_PATH = ROOT / "README.md"
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
def strip_yaml_frontmatter(text: str) -> str:
|
|
|
|
| 20 |
|
| 21 |
ROOT = Path(__file__).resolve().parent.parent
|
| 22 |
README_PATH = ROOT / "README.md"
|
| 23 |
+
# PDF is a sharable artifact, not a repo asset. Drop it on the Desktop so
|
| 24 |
+
# the user can email / Slack / AirDrop it without digging into ~/Developer/.
|
| 25 |
+
# HF Space also rejects binaries in the Space repo (Xet/LFS required).
|
| 26 |
+
OUT_PATH = Path.home() / "Desktop" / "Insurance-Sales-Bot-README.pdf"
|
| 27 |
|
| 28 |
|
| 29 |
def strip_yaml_frontmatter(text: str) -> str:
|