Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/blog_automation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <DOC_ID>`
2. Run the script: `python doc_to_html_conversion.py <DOC_ID>`


6 changes: 3 additions & 3 deletions tools/blog_automation/doc_to_html_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---
Expand All @@ -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):
Expand Down