diff --git a/tools/blog_automation/README.md b/tools/blog_automation/README.md index 8c1727b5..426862a9 100644 --- a/tools/blog_automation/README.md +++ b/tools/blog_automation/README.md @@ -77,6 +77,6 @@ Use this ID in your scripts when exporting the document. ## Run Automation 1. Activate virtual environment: `source venv/bin/activate` -2. Run the script: `python export_blog.py ` +2. Run the script: `python doc_to_html_conversion.py ` diff --git a/tools/blog_automation/doc_to_html_conversion.py b/tools/blog_automation/doc_to_html_conversion.py index 24f60679..3d9cc987 100644 --- a/tools/blog_automation/doc_to_html_conversion.py +++ b/tools/blog_automation/doc_to_html_conversion.py @@ -16,8 +16,8 @@ date: [DATE] author_name: [AUTHOR] author_role: [AUTHOR ROLE] -blurb_img: [IMG PATH] -blurb_img_source: [IMG SOURCE (optional)] +image: [IMG PATH] +image_source: [IMG SOURCE (optional)] description: [BLOG DESCRIPTION] category: [CATEGORY] --- @@ -40,7 +40,7 @@ def _today_date_str(): def _create_blog_filename_with_date(doc_name, date_str): formatted_blog_title = doc_name.lower().replace(' ', '-').strip() - filename = f"{date_str}-{formatted_blog_title}.html" + filename = f"{date_str}-{formatted_blog_title}" return filename def export_blog_as_html(document_id, date=None):