Skip to content
New issue

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

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

Already on GitHub? # to your account

Code a program to convert course content to the new platform #52

Open
NathanLovato opened this issue Jun 7, 2022 · 1 comment
Open
Assignees

Comments

@NathanLovato
Copy link
Contributor

NathanLovato commented Jun 7, 2022

  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
Copy link
Contributor Author

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

@razcore-rad razcore-rad self-assigned this Aug 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants