Skip to content

Commit

Permalink
feat(gdschool-preprocess-course): also preocess _index.md files
Browse files Browse the repository at this point in the history
  • Loading branch information
razcore-rad committed Sep 16, 2022
1 parent 3ecc3a3 commit 4a53e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion product_packager.nimble
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
7 changes: 1 addition & 6 deletions src/preprocessgdschool.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import customlogger, types


const
META_MDFILE = "_index.md"
COURSE_DIR = "content"
DIST_DIR = "dist"
GODOT_PROJECT_DIRS = @["godot-project"]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a53e99

Please sign in to comment.