From 4a53e9938e0426eb790deb9652c5d11a35df62ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C4=83zvan=20C=2E=20R=C4=83dulescu?= Date: Fri, 16 Sep 2022 18:43:42 +0300 Subject: [PATCH] feat(gdschool-preprocess-course): also preocess _index.md files --- product_packager.nimble | 2 +- src/preprocessgdschool.nim | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/product_packager.nimble b/product_packager.nimble index db08aee12e..4487e1cb21 100644 --- a/product_packager.nimble +++ b/product_packager.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.0" +version = "0.2.1" author = "razcore-rad" description = "Suite of utilities for formatting, linting and building GDQuest courses from Markdown files and Godot projects" license = "MIT" diff --git a/src/preprocessgdschool.nim b/src/preprocessgdschool.nim index d4ac54e4bc..b572af246c 100644 --- a/src/preprocessgdschool.nim +++ b/src/preprocessgdschool.nim @@ -17,7 +17,6 @@ import customlogger, types const - META_MDFILE = "_index.md" COURSE_DIR = "content" DIST_DIR = "dist" GODOT_PROJECT_DIRS = @["godot-project"] @@ -231,11 +230,7 @@ proc process(appSettings: AppSettingsBuildGDSchool) = if doProcess: createDir(fileOut.parentDir) info fmt"Creating output `{fileOut.parentDir}` directory..." - - if fileIn.endsWith(META_MDFILE): - copyFile(fileIn, fileOut) - else: - writeFile(fileOut, preprocess(fileIn, fileInContents)) + writeFile(fileOut, preprocess(fileIn, fileInContents)) else: info processingMsg