product-packager icon indicating copy to clipboard operation
product-packager copied to clipboard

Code a program to convert course content to the new platform

Open NathanLovato opened this issue 2 years ago • 1 comments

  1. Convert relative image paths to absolute paths.

/courses/$COURSE_FOLDER/$CHAPTER_SLUG/images/$IMAGE_NAME

  1. Add Yaml frontmatter at the top of lessons like this:
---
title: Importing the project and placing the player character
slug: importing-the-project-and-placing-the-player-character
draft: false
free: false
---
  1. Add _index.md files inside of the chapter folders with front matter:
---
title: Assembling game
slug: assembling-game
---
  1. Extract nim course builder features

Add SVG icons without the {=html} mark Process include shortcodes

  1. Replace links with absolute links

E.g.

{{ link learn-to-code-how-to-install-godot How to download and run Godot }} -> How to download and run Godot

  1. Remove HTML comments

NathanLovato avatar Jun 07 '22 15:06 NathanLovato

There's a temporary python script in the repo to get the project going, but the idea's to make a self-contained executable with Nim.

See programs/convert_course_content_to_new_platform.py

NathanLovato avatar Jun 07 '22 15:06 NathanLovato