Skip to content

Commit d7d6af5

Browse files
authored
feat: fixed blog template and updated documentation (#560)
1 parent c1ec15c commit d7d6af5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/blog_automation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ Use this ID in your scripts when exporting the document.
7777

7878
## Run Automation
7979
1. Activate virtual environment: `source venv/bin/activate`
80-
2. Run the script: `python export_blog.py <DOC_ID>`
80+
2. Run the script: `python doc_to_html_conversion.py <DOC_ID>`
8181

8282

tools/blog_automation/doc_to_html_conversion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
date: [DATE]
1717
author_name: [AUTHOR]
1818
author_role: [AUTHOR ROLE]
19-
blurb_img: [IMG PATH]
20-
blurb_img_source: [IMG SOURCE (optional)]
19+
image: [IMG PATH]
20+
image_source: [IMG SOURCE (optional)]
2121
description: [BLOG DESCRIPTION]
2222
category: [CATEGORY]
2323
---
@@ -40,7 +40,7 @@ def _today_date_str():
4040

4141
def _create_blog_filename_with_date(doc_name, date_str):
4242
formatted_blog_title = doc_name.lower().replace(' ', '-').strip()
43-
filename = f"{date_str}-{formatted_blog_title}.html"
43+
filename = f"{date_str}-{formatted_blog_title}"
4444
return filename
4545

4646
def export_blog_as_html(document_id, date=None):

0 commit comments

Comments
 (0)