Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog Migration - Automate Markdown blog migration #155

Open
3 tasks
nishant-nayak opened this issue Jun 11, 2024 · 0 comments
Open
3 tasks

Blog Migration - Automate Markdown blog migration #155

nishant-nayak opened this issue Jun 11, 2024 · 0 comments

Comments

@nishant-nayak
Copy link
Member

nishant-nayak commented Jun 11, 2024

Part 2 of Blog Content Migration. Ensure the following deliverables are met:

  • Create a script that can read a Markdown file and create an entry in the Post model (created in Blog Migration - Setup Django code #154)
  • Run this script for all blog posts in the blog repo
  • Dump all the loaded data into a JSON for loading on the production host

Note that the script must achieve the following:

  • Parse the metadata from the header of the blog post. This means capturing the title, date of publish, description, tags, categories and author info (also see authors.yml). Ensure that edge cases are covered (in case some blogs have incomplete metadata)
  • Code blocks, HTML blocks, etc. are handled correctly
  • Images referenced in the blogs need to be transferred to the Corpus static files directory. All the links in the markdown file need to be correctly replaced with their static tag link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant